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
ce957867
Commit
ce957867
authored
Dec 05, 2012
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r194212
parent
06ad40d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
gcc/ada/exp_prag.adb
+9
-9
gcc/ada/sem_res.adb
+4
-2
No files found.
gcc/ada/exp_prag.adb
View file @
ce957867
...
@@ -844,15 +844,16 @@ package body Exp_Prag is
...
@@ -844,15 +844,16 @@ package body Exp_Prag is
--
end
loop
;
--
end
loop
;
procedure
Expand_Pragma_Loop_Variant
(
N
:
Node_Id
)
is
procedure
Expand_Pragma_Loop_Variant
(
N
:
Node_Id
)
is
Last_Var
:
constant
Node_Id
:=
Loc
:
constant
Source_Ptr
:=
Sloc
(
N
);
Last
(
Pragma_Argument_Associations
(
N
));
Loc
:
constant
Source_Ptr
:=
Sloc
(
N
);
Last_Var
:
constant
Node_Id
:=
Last
(
Pragma_Argument_Associations
(
N
));
Curr_Assign
:
List_Id
:=
No_List
;
Flag_Id
:
Entity_Id
:=
Empty
;
Curr_Assign
:
List_Id
:=
No_List
;
If_Stmt
:
Node_Id
:=
Empty
;
Flag_Id
:
Entity_Id
:=
Empty
;
If_Stmt
:
Node_Id
:=
Empty
;
Old_Assign
:
List_Id
:=
No_List
;
Loop_Scop
:
Entity_Id
;
Loop_Scop
:
Entity_Id
;
Loop_Stmt
:
Node_Id
;
Loop_Stmt
:
Node_Id
;
Old_Assign
:
List_Id
:=
No_List
;
Variant
:
Node_Id
;
Variant
:
Node_Id
;
procedure
Process_Variant
(
Variant
:
Node_Id
;
Is_Last
:
Boolean
);
procedure
Process_Variant
(
Variant
:
Node_Id
;
Is_Last
:
Boolean
);
...
@@ -883,7 +884,6 @@ package body Exp_Prag is
...
@@ -883,7 +884,6 @@ package body Exp_Prag is
begin
begin
if
Chars
(
Variant
)
=
Name_Increases
then
if
Chars
(
Variant
)
=
Name_Increases
then
return
Make_Op_Gt
(
Loc
,
Curr_Val
,
Old_Val
);
return
Make_Op_Gt
(
Loc
,
Curr_Val
,
Old_Val
);
else
pragma
Assert
(
Chars
(
Variant
)
=
Name_Decreases
);
else
pragma
Assert
(
Chars
(
Variant
)
=
Name_Decreases
);
return
Make_Op_Lt
(
Loc
,
Curr_Val
,
Old_Val
);
return
Make_Op_Lt
(
Loc
,
Curr_Val
,
Old_Val
);
end
if
;
end
if
;
...
@@ -959,7 +959,7 @@ package body Exp_Prag is
...
@@ -959,7 +959,7 @@ package body Exp_Prag is
--
Generate
:
--
Generate
:
--
Old
:
<
type
of
Expr
>;
--
Old
:
<
type
of
Expr
>;
Old_Id
:=
Make_Temporary
(
Loc
,
'P'
);
Old_Id
:=
Make_Temporary
(
Loc
,
'P'
);
Insert_Action
(
Loop_Stmt
,
Insert_Action
(
Loop_Stmt
,
Make_Object_Declaration
(
Loop_Loc
,
Make_Object_Declaration
(
Loop_Loc
,
...
...
gcc/ada/sem_res.adb
View file @
ce957867
...
@@ -9552,13 +9552,15 @@ package body Sem_Res is
...
@@ -9552,13 +9552,15 @@ package body Sem_Res is
--
Skip
these
type
conversion
checks
if
universal
fixed
operands
--
Skip
these
type
conversion
checks
if
universal
fixed
operands
--
operands
involved
,
since
range
checks
are
handled
separately
for
--
operands
involved
,
since
range
checks
are
handled
separately
for
--
these
cases
(
in
the
appropriate
Expand
routines
in
unit
Exp_Fixd
).
--
these
cases
(
in
the
appropriate
Expand
routines
in
unit
Exp_Fixd
).
--
Also
skip
type
conversion
checks
in
formal
verification
mode
,
as
the
--
formal
verification
backend
deals
directly
with
these
checks
.
if
Nkind
(
N
)
=
N_Type_Conversion
if
Nkind
(
N
)
=
N_Type_Conversion
and
then
not
Is_Generic_Type
(
Root_Type
(
Target_Typ
))
and
then
not
Is_Generic_Type
(
Root_Type
(
Target_Typ
))
and
then
Target_Typ
/=
Universal_Fixed
and
then
Target_Typ
/=
Universal_Fixed
and
then
Operand_Typ
/=
Universal_Fixed
and
then
Operand_Typ
/=
Universal_Fixed
--
Also
skip
type
conversion
checks
in
formal
verification
mode
,
as
--
the
formal
verification
backend
deals
directly
with
these
checks
.
and
then
not
Alfa_Mode
and
then
not
Alfa_Mode
then
then
Apply_Type_Conversion_Checks
(
N
);
Apply_Type_Conversion_Checks
(
N
);
...
...
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