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
e3de253f
Commit
e3de253f
authored
Jun 22, 2016
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r237700
parent
d13ecc2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
gcc/ada/freeze.adb
+17
-20
No files found.
gcc/ada/freeze.adb
View file @
e3de253f
...
...
@@ -1392,11 +1392,11 @@ package body Freeze is
procedure
Check_Inherited_Conditions
(
R
:
Entity_Id
)
is
Prim_Ops
:
constant
Elist_Id
:=
Primitive_Operations
(
R
);
A_Post
:
Node_Id
;
A_Pre
:
Node_Id
;
Op_Node
:
Elmt_Id
;
Prim
:
Entity_Id
;
Par_Prim
:
Entity_Id
;
A_Pre
:
Node_Id
;
A_Post
:
Node_Id
;
Prim
:
Entity_Id
;
begin
Op_Node
:=
First_Elmt
(
Prim_Ops
);
...
...
@@ -1405,31 +1405,31 @@ package body Freeze is
--
In
SPARK
mode
this
is
where
we
can
collect
the
inherited
--
conditions
,
because
we
do
not
create
the
Check
pragmas
that
--
normally
convey
the
the
modified
classwide
conditions
on
--
o
verriding
o
perations
.
--
normally
convey
the
modified
classwide
conditions
on
overriding
--
operations
.
if
SPARK_Mode
=
On
and
then
Comes_From_Source
(
Prim
)
and
then
Present
(
Overridden_Operation
(
Prim
))
and
then
Comes_From_Source
(
Prim
)
and
then
Present
(
Overridden_Operation
(
Prim
))
then
Collect_Inherited_Class_Wide_Conditions
(
Prim
);
end
if
;
--
In
normal
mode
,
we
examine
inherited
operations
to
check
--
whether
they
require
a
wrapper
to
handle
inherited
conditions
--
that
call
other
primitives
.
--
In
normal
mode
,
we
examine
inherited
operations
to
check
whether
--
they
require
a
wrapper
to
handle
inherited
conditions
that
call
--
other
primitives
.
--
Wrapper
construction
TBD
.
if
not
Comes_From_Source
(
Prim
)
and
then
Present
(
Alias
(
Prim
))
then
if
not
Comes_From_Source
(
Prim
)
and
then
Present
(
Alias
(
Prim
))
then
Par_Prim
:=
Alias
(
Prim
);
A_Pre
:=
Find_Aspect
(
Par_Prim
,
Aspect_Pre
);
A_Pre
:=
Find_Aspect
(
Par_Prim
,
Aspect_Pre
);
if
Present
(
A_Pre
)
and
then
Class_Present
(
A_Pre
)
then
Build_Classwide_Expression
(
Expression
(
A_Pre
),
Prim
);
end
if
;
A_Post
:=
Find_Aspect
(
Par_Prim
,
Aspect_Post
);
if
Present
(
A_Post
)
and
then
Class_Present
(
A_Post
)
then
Build_Classwide_Expression
(
Expression
(
A_Post
),
Prim
);
end
if
;
...
...
@@ -1710,14 +1710,11 @@ package body Freeze is
and
then
not
Is_Frozen
(
E
)
then
Push_Scope
(
E
);
Install_Visible_Declarations
(
E
);
Install_Private_Declarations
(
E
);
Freeze_All
(
First_Entity
(
E
),
After
);
--
Analyze_Pending_Bodies
(
Visible_Declarations
(
E
));
--
Analyze_Pending_Bodies
(
Private_Declarations
(
E
));
End_Package_Scope
(
E
);
if
Is_Generic_Instance
(
E
)
...
...
@@ -1728,8 +1725,8 @@ package body Freeze is
end
if
;
elsif
Ekind
(
E
)
in
Task_Kind
and
then
Nkind_In
(
Parent
(
E
),
N_
Task_Type
_Declaration
,
N_
Single_Task
_Declaration
)
and
then
Nkind_In
(
Parent
(
E
),
N_
Single_Task
_Declaration
,
N_
Task_Type
_Declaration
)
then
Push_Scope
(
E
);
Freeze_All
(
First_Entity
(
E
),
After
);
...
...
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