Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
a54e3bf0
Commit
a54e3bf0
authored
10 years ago
by
Arnaud Charlet
Browse files
Options
Downloads
Patches
Plain Diff
Code clean up.
From-SVN: r211462
parent
43bebb10
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gcc/ada/sem_ch12.adb
+18
-2
18 additions, 2 deletions
gcc/ada/sem_ch12.adb
with
18 additions
and
2 deletions
gcc/ada/sem_ch12.adb
+
18
−
2
View file @
a54e3bf0
...
@@ -1776,6 +1776,22 @@ package body Sem_Ch12 is
...
@@ -1776,6 +1776,22 @@ package body Sem_Ch12 is
Delta_Val : constant Ureal := Ureal_1;
Delta_Val : constant Ureal := Ureal_1;
Digs_Val : constant Uint := Uint_6;
Digs_Val : constant Uint := Uint_6;
function Make_Dummy_Bound return Node_Id;
-- Return a properly typed universal real literal to use as a bound
----------------------
-- Make_Dummy_Bound --
----------------------
function Make_Dummy_Bound return Node_Id is
Bound : constant Node_Id := Make_Real_Literal (Loc, Ureal_1);
begin
Set_Etype (Bound, Universal_Real);
return Bound;
end Make_Dummy_Bound;
-- Start of processing for Analyze_Formal_Decimal_Fixed_Point_Type
begin
begin
Enter_Name (T);
Enter_Name (T);
...
@@ -1788,8 +1804,8 @@ package body Sem_Ch12 is
...
@@ -1788,8 +1804,8 @@ package body Sem_Ch12 is
Set_Small_Value (Base, Delta_Val);
Set_Small_Value (Base, Delta_Val);
Set_Scalar_Range (Base,
Set_Scalar_Range (Base,
Make_Range (Loc,
Make_Range (Loc,
Low_Bound => Make_
Real_Literal (Loc, Ureal_1)
,
Low_Bound => Make_
Dummy_Bound
,
High_Bound => Make_
Real_Literal (Loc, Ureal_1)
));
High_Bound => Make_
Dummy_Bound
));
Set_Is_Generic_Type (Base);
Set_Is_Generic_Type (Base);
Set_Parent (Base, Parent (Def));
Set_Parent (Base, Parent (Def));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment