Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
4fcf700c
Commit
4fcf700c
authored
Jan 19, 2017
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting and code cleanup.
From-SVN: r244621
parent
0929d66b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
gcc/ada/sem_util.adb
+20
-17
No files found.
gcc/ada/sem_util.adb
View file @
4fcf700c
...
@@ -8073,24 +8073,25 @@ package body Sem_Util is
...
@@ -8073,24 +8073,25 @@ package body Sem_Util is
H
:
out
Node_Id
;
H
:
out
Node_Id
;
Use_Full_View
:
Boolean
:=
False
)
Use_Full_View
:
Boolean
:=
False
)
is
is
function
Scalar_Range_Of_Right_View
return
Node_Id
;
function
Scalar_Range_Of_Type
(
Typ
:
Entity_Id
)
return
Node_Id
;
--
Call
Scalar_Range
with
argument
determined
by
Use_Full_View
--
Obtain
the
scalar
range
of
type
Typ
.
If
flag
Use_Full_View
is
set
and
--
parameter
.
--
Typ
qualifies
,
the
scalar
range
is
obtained
from
the
full
view
of
the
--
type
.
--------------------------
------
--------------------------
--
Scalar_Range_Of_
Right_View
--
--
Scalar_Range_Of_
Type
--
--------------------------
------
--------------------------
function
Scalar_Range_Of_
Right_View
return
Node_Id
is
function
Scalar_Range_Of_
Type
(
Typ
:
Entity_Id
)
return
Node_Id
is
E
:
Entity_Id
:=
Entity
(
N
)
;
T
:
Entity_Id
:=
Typ
;
begin
begin
if
Use_Full_View
and
then
Present
(
Full_View
(
E
))
then
if
Use_Full_View
and
then
Present
(
Full_View
(
T
))
then
E
:=
Full_View
(
E
);
T
:=
Full_View
(
T
);
end
if
;
end
if
;
return
Scalar_Range
(
E
);
return
Scalar_Range
(
T
);
end
Scalar_Range_Of_
Right_View
;
end
Scalar_Range_Of_
Type
;
--
Local
variables
--
Local
variables
...
@@ -8118,16 +8119,18 @@ package body Sem_Util is
...
@@ -8118,16 +8119,18 @@ package body Sem_Util is
end
if
;
end
if
;
elsif
Is_Entity_Name
(
N
)
and
then
Is_Type
(
Entity
(
N
))
then
elsif
Is_Entity_Name
(
N
)
and
then
Is_Type
(
Entity
(
N
))
then
if
Error_Posted
(
Scalar_Range_Of_Right_View
)
then
Rng
:=
Scalar_Range_Of_Type
(
Entity
(
N
));
if
Error_Posted
(
Rng
)
then
L
:=
Error
;
L
:=
Error
;
H
:=
Error
;
H
:=
Error
;
elsif
Nkind
(
Scalar_Range_Of_Right_View
)
=
N_Subtype_Indication
then
elsif
Nkind
(
Rng
)
=
N_Subtype_Indication
then
Get_Index_Bounds
(
Scalar_Range_Of_Right_View
,
L
,
H
);
Get_Index_Bounds
(
Rng
,
L
,
H
);
else
else
L
:=
Low_Bound
(
Scalar_Range_Of_Right_View
);
L
:=
Low_Bound
(
Rng
);
H
:=
High_Bound
(
Scalar_Range_Of_Right_View
);
H
:=
High_Bound
(
Rng
);
end
if
;
end
if
;
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment