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
47c14114
Commit
47c14114
authored
Oct 10, 2014
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r216093
parent
9ceeaf9d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
54 deletions
+28
-54
gcc/ada/exp_aggr.adb
+0
-0
gcc/ada/exp_ch9.adb
+28
-54
No files found.
gcc/ada/exp_aggr.adb
View file @
47c14114
gcc/ada/exp_ch9.adb
View file @
47c14114
...
@@ -577,7 +577,6 @@ package body Exp_Ch9 is
...
@@ -577,7 +577,6 @@ package body Exp_Ch9 is
Expr :=
Expr :=
Make_Op_Add (Sloc,
Make_Op_Add (Sloc,
Left_Opnd => Num,
Left_Opnd => Num,
Right_Opnd =>
Right_Opnd =>
Actual_Family_Offset (
Actual_Family_Offset (
Make_Attribute_Reference (Sloc,
Make_Attribute_Reference (Sloc,
...
@@ -658,10 +657,8 @@ package body Exp_Ch9 is
...
@@ -658,10 +657,8 @@ package body Exp_Ch9 is
Left_Opnd => Expr,
Left_Opnd => Expr,
Right_Opnd =>
Right_Opnd =>
Make_Op_Add (Sloc,
Make_Op_Add (Sloc,
Left_Opnd =>
Left_Opnd => Actual_Family_Offset (Hi, Lo),
Actual_Family_Offset (Hi, Lo),
Right_Opnd => Make_Integer_Literal (Sloc, 1)));
Right_Opnd =>
Make_Integer_Literal (Sloc, 1)));
-- Other components are anonymous types to be ignored
-- Other components are anonymous types to be ignored
...
@@ -1294,8 +1291,7 @@ package body Exp_Ch9 is
...
@@ -1294,8 +1291,7 @@ package body Exp_Ch9 is
Type_Definition =>
Type_Definition =>
Make_Record_Definition (Loc,
Make_Record_Definition (Loc,
Component_List =>
Component_List =>
Make_Component_List (Loc,
Make_Component_List (Loc, Component_Items => Cdecls),
Component_Items => Cdecls),
Tagged_Present =>
Tagged_Present =>
Ada_Version >= Ada_2005 and then Is_Tagged_Type (Ctyp),
Ada_Version >= Ada_2005 and then Is_Tagged_Type (Ctyp),
Interface_List => Interface_List (N),
Interface_List => Interface_List (N),
...
@@ -1379,8 +1375,8 @@ package body Exp_Ch9 is
...
@@ -1379,8 +1375,8 @@ package body Exp_Ch9 is
Ecount :=
Ecount :=
Make_Op_Add (Loc,
Make_Op_Add (Loc,
Left_Opnd => Ecount,
Left_Opnd => Ecount,
Right_Opnd =>
Family_Size
Right_Opnd =>
(Loc, Hi, Lo, Concurrent_Type, Large));
Family_Size
(Loc, Hi, Lo, Concurrent_Type, Large));
end if;
end if;
Next_Entity (Ent);
Next_Entity (Ent);
...
@@ -2789,9 +2785,7 @@ package body Exp_Ch9 is
...
@@ -2789,9 +2785,7 @@ package body Exp_Ch9 is
--
interface
.
Operations
in
both
the
visible
and
private
parts
may
--
interface
.
Operations
in
both
the
visible
and
private
parts
may
--
implement
progenitor
operations
.
--
implement
progenitor
operations
.
if
Present
(
Interfaces
(
Rec_Typ
))
if
Present
(
Interfaces
(
Rec_Typ
))
and
then
Present
(
Def
)
then
and
then
Present
(
Def
)
then
Scan_Declarations
(
Visible_Declarations
(
Def
));
Scan_Declarations
(
Visible_Declarations
(
Def
));
Scan_Declarations
(
Private_Declarations
(
Def
));
Scan_Declarations
(
Private_Declarations
(
Def
));
end
if
;
end
if
;
...
@@ -5532,10 +5526,7 @@ package body Exp_Ch9 is
...
@@ -5532,10 +5526,7 @@ package body Exp_Ch9 is
begin
begin
Scop := Current_Scope;
Scop := Current_Scope;
while Present (Scop)
while Present (Scop) and then Scop /= Standard_Standard loop
and then Scop /= Standard_Standard
loop
if Scop = T then
if Scop = T then
return True;
return True;
...
@@ -5666,6 +5657,7 @@ package body Exp_Ch9 is
...
@@ -5666,6 +5657,7 @@ package body Exp_Ch9 is
begin
begin
Decl := First (Decls);
Decl := First (Decls);
while Present (Decl) and then not Comes_From_Source (Decl) loop
while Present (Decl) and then not Comes_From_Source (Decl) loop
-- Declaration for concurrent entity _object and its access type,
-- Declaration for concurrent entity _object and its access type,
-- along with the entry index subtype:
-- along with the entry index subtype:
-- type prot_typVP is access prot_typV;
-- type prot_typVP is access prot_typV;
...
@@ -5776,10 +5768,9 @@ package body Exp_Ch9 is
...
@@ -5776,10 +5768,9 @@ package body Exp_Ch9 is
Expr
:=
Expr
:=
Make_Op_Add
(
Sloc
,
Make_Op_Add
(
Sloc
,
Left_Opnd
=>
Num
,
Left_Opnd
=>
Num
,
Right_Opnd
=>
Right_Opnd
=>
Family_Offset
(
Family_Offset
Sloc
,
(
Sloc
,
Make_Attribute_Reference
(
Sloc
,
Make_Attribute_Reference
(
Sloc
,
Attribute_Name
=>
Name_Pos
,
Attribute_Name
=>
Name_Pos
,
Prefix
=>
New_Occurrence_Of
(
Base_Type
(
S
),
Sloc
),
Prefix
=>
New_Occurrence_Of
(
Base_Type
(
S
),
Sloc
),
...
@@ -5803,8 +5794,7 @@ package body Exp_Ch9 is
...
@@ -5803,8 +5794,7 @@ package body Exp_Ch9 is
Set_Intval
(
Num
,
Intval
(
Num
)
+
1
);
Set_Intval
(
Num
,
Intval
(
Num
)
+
1
);
elsif
Ekind
(
Prev
)
=
E_Entry_Family
then
elsif
Ekind
(
Prev
)
=
E_Entry_Family
then
S
:=
S
:=
Etype
(
Discrete_Subtype_Definition
(
Declaration_Node
(
Prev
)));
Etype
(
Discrete_Subtype_Definition
(
Declaration_Node
(
Prev
)));
Lo
:=
Type_Low_Bound
(
S
);
Lo
:=
Type_Low_Bound
(
S
);
Hi
:=
Type_High_Bound
(
S
);
Hi
:=
Type_High_Bound
(
S
);
...
@@ -5917,8 +5907,7 @@ package body Exp_Ch9 is
...
@@ -5917,8 +5907,7 @@ package body Exp_Ch9 is
--
skipped
if
the
trivial
accept
optimization
is
permitted
.
--
skipped
if
the
trivial
accept
optimization
is
permitted
.
if
not
Trivial_Accept_OK
if
not
Trivial_Accept_OK
and
then
and
then
(
No
(
Stats
)
or
else
Null_Statements
(
Statements
(
Stats
)))
(
No
(
Stats
)
or
else
Null_Statements
(
Statements
(
Stats
)))
then
then
Set_Handled_Statement_Sequence
(
N
,
Set_Handled_Statement_Sequence
(
N
,
Make_Handled_Sequence_Of_Statements
(
Loc
,
Make_Handled_Sequence_Of_Statements
(
Loc
,
...
@@ -10297,9 +10286,7 @@ package body Exp_Ch9 is
...
@@ -10297,9 +10286,7 @@ package body Exp_Ch9 is
--
The
procedure_or_entry_NAME
is
guaranteed
to
be
overridden
by
--
The
procedure_or_entry_NAME
is
guaranteed
to
be
overridden
by
--
an
entry
.
Create
a
call
to
predefined
primitive
_Disp_Requeue
.
--
an
entry
.
Create
a
call
to
predefined
primitive
_Disp_Requeue
.
if
Has_Impl
if
Has_Impl
and
then
Impl_Kind
=
Name_By_Entry
then
and
then
Impl_Kind
=
Name_By_Entry
then
Rewrite
(
N
,
Build_Dispatching_Requeue
);
Rewrite
(
N
,
Build_Dispatching_Requeue
);
Analyze
(
N
);
Analyze
(
N
);
Insert_After
(
N
,
Build_Skip_Statement
(
N
));
Insert_After
(
N
,
Build_Skip_Statement
(
N
));
...
@@ -11297,8 +11284,8 @@ package body Exp_Ch9 is
...
@@ -11297,8 +11284,8 @@ package body Exp_Ch9 is
-- Change the value for Accept_Modes. (Else_Mode -> Delay_Mode)
-- Change the value for Accept_Modes. (Else_Mode -> Delay_Mode)
Parms := Parameter_Associations (Select_Call);
Parms := Parameter_Associations (Select_Call);
Parm := First (Parms);
Parm := First (Parms);
while Present (Parm) and then Parm /= Select_Mode loop
while Present (Parm) and then Parm /= Select_Mode loop
Next (Parm);
Next (Parm);
end loop;
end loop;
...
@@ -11833,9 +11820,8 @@ package body Exp_Ch9 is
...
@@ -11833,9 +11820,8 @@ package body Exp_Ch9 is
-- Declare static stack (that is, created by the expander) if we are
-- Declare static stack (that is, created by the expander) if we are
-- using the Restricted run time on a bare board configuration.
-- using the Restricted run time on a bare board configuration.
if Restricted_Profile
if Restricted_Profile and then Preallocated_Stacks_On_Target then
and then Preallocated_Stacks_On_Target
then
-- First we need to extract the appropriate stack size
-- First we need to extract the appropriate stack size
Ent_Stack := Make_Defining_Identifier (Loc, Name_uStack);
Ent_Stack := Make_Defining_Identifier (Loc, Name_uStack);
...
@@ -11921,9 +11907,7 @@ package body Exp_Ch9 is
...
@@ -11921,9 +11907,7 @@ package body Exp_Ch9 is
-- Add the _Size component if a Storage_Size pragma is present
-- Add the _Size component if a Storage_Size pragma is present
if Present (Taskdef)
if Present (Taskdef) and then Has_Storage_Size_Pragma (Taskdef) then
and then Has_Storage_Size_Pragma (Taskdef)
then
Append_To (Cdecls,
Append_To (Cdecls,
Make_Component_Declaration (Loc,
Make_Component_Declaration (Loc,
Defining_Identifier =>
Defining_Identifier =>
...
@@ -12864,9 +12848,7 @@ package body Exp_Ch9 is
...
@@ -12864,9 +12848,7 @@ package body Exp_Ch9 is
if Is_Entity_Name (Bound)
if Is_Entity_Name (Bound)
and then Ekind (Entity (Bound)) = E_Discriminant
and then Ekind (Entity (Bound)) = E_Discriminant
then
then
if Is_Task_Type (Ttyp)
if Is_Task_Type (Ttyp) and then Has_Completion (Ttyp) then
and then Has_Completion (Ttyp)
then
B := Make_Identifier (Loc, Chars (Entity (Bound)));
B := Make_Identifier (Loc, Chars (Entity (Bound)));
Find_Direct_Name (B);
Find_Direct_Name (B);
...
@@ -12955,10 +12937,8 @@ package body Exp_Ch9 is
...
@@ -12955,10 +12937,8 @@ package body Exp_Ch9 is
Attribute_Name => Name_Max,
Attribute_Name => Name_Max,
Expressions => New_List (
Expressions => New_List (
Make_Op_Add (Loc,
Make_Op_Add (Loc,
Left_Opnd =>
Left_Opnd => Family_Offset (Loc, Hi, Lo, Ttyp, Cap),
Family_Offset (Loc, Hi, Lo, Ttyp, Cap),
Right_Opnd => Make_Integer_Literal (Loc, 1)),
Right_Opnd =>
Make_Integer_Literal (Loc, 1)),
Make_Integer_Literal (Loc, 0)));
Make_Integer_Literal (Loc, 0)));
end Family_Size;
end Family_Size;
...
@@ -13367,15 +13347,13 @@ package body Exp_Ch9 is
...
@@ -13367,15 +13347,13 @@ package body Exp_Ch9 is
-- Step 5: Add the declaration of the entry index and the associated
-- Step 5: Add the declaration of the entry index and the associated
-- type for barrier functions and entry families.
-- type for barrier functions and entry families.
if (Barrier and then Family)
if (Barrier and Family) or else Ekind (Spec_Id) = E_Entry_Family then
or else Ekind (Spec_Id) = E_Entry_Family
then
declare
declare
E : constant Entity_Id := Index_Object (Spec_Id);
E : constant Entity_Id := Index_Object (Spec_Id);
Index : constant Entity_Id :=
Index : constant Entity_Id :=
Defining_Identifier
(
Defining_Identifier
Entry_Index_Specification (
(Entry_Index_Specification
Entry_Body_Formal_Part (Body_Nod)));
(
Entry_Body_Formal_Part (Body_Nod)));
Index_Con : constant Entity_Id :=
Index_Con : constant Entity_Id :=
Make_Defining_Identifier (Loc, Chars (Index));
Make_Defining_Identifier (Loc, Chars (Index));
High : Node_Id;
High : Node_Id;
...
@@ -13455,8 +13433,7 @@ package body Exp_Ch9 is
...
@@ -13455,8 +13433,7 @@ package body Exp_Ch9 is
Make_Op_Add
(
Loc
,
Make_Op_Add
(
Loc
,
Left_Opnd
=>
Left_Opnd
=>
Make_Op_Subtract
(
Loc
,
Make_Op_Subtract
(
Loc
,
Left_Opnd
=>
Left_Opnd
=>
New_Occurrence_Of
(
E
,
Loc
),
New_Occurrence_Of
(
E
,
Loc
),
Right_Opnd
=>
Right_Opnd
=>
Entry_Index_Expression
(
Loc
,
Entry_Index_Expression
(
Loc
,
Defining_Identifier
(
Body_Nod
),
Defining_Identifier
(
Body_Nod
),
...
@@ -13684,6 +13661,7 @@ package body Exp_Ch9 is
...
@@ -13684,6 +13661,7 @@ package body Exp_Ch9 is
-- object.
-- object.
if not Uses_Lock_Free (Defining_Identifier (Pdec)) then
if not Uses_Lock_Free (Defining_Identifier (Pdec)) then
-- Object parameter. This is a pointer to the object of type
-- Object parameter. This is a pointer to the object of type
-- Protection used by the GNARL to control the protected object.
-- Protection used by the GNARL to control the protected object.
...
@@ -14091,9 +14069,7 @@ package body Exp_Ch9 is
...
@@ -14091,9 +14069,7 @@ package body Exp_Ch9 is
--
present
,
then
the
size
is
taken
from
the
_Size
field
of
the
--
present
,
then
the
size
is
taken
from
the
_Size
field
of
the
--
task
value
record
,
which
was
set
from
the
pragma
value
.
--
task
value
record
,
which
was
set
from
the
pragma
value
.
if
Present
(
Tdef
)
if
Present
(
Tdef
)
and
then
Has_Storage_Size_Pragma
(
Tdef
)
then
and
then
Has_Storage_Size_Pragma
(
Tdef
)
then
Append_To
(
Args
,
Append_To
(
Args
,
Make_Selected_Component
(
Loc
,
Make_Selected_Component
(
Loc
,
Prefix
=>
Make_Identifier
(
Loc
,
Name_uInit
),
Prefix
=>
Make_Identifier
(
Loc
,
Name_uInit
),
...
@@ -14145,9 +14121,7 @@ package body Exp_Ch9 is
...
@@ -14145,9 +14121,7 @@ package body Exp_Ch9 is
--
Case
where
pragma
Relative_Deadline
applies
:
use
given
value
--
Case
where
pragma
Relative_Deadline
applies
:
use
given
value
if
Present
(
Tdef
)
if
Present
(
Tdef
)
and
then
Has_Relative_Deadline_Pragma
(
Tdef
)
then
and
then
Has_Relative_Deadline_Pragma
(
Tdef
)
then
Append_To
(
Args
,
Append_To
(
Args
,
Make_Selected_Component
(
Loc
,
Make_Selected_Component
(
Loc
,
Prefix
=>
Make_Identifier
(
Loc
,
Name_uInit
),
Prefix
=>
Make_Identifier
(
Loc
,
Name_uInit
),
...
...
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