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
4f324de2
Commit
4f324de2
authored
Jan 20, 2017
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r244700
parent
f68fc405
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
gcc/ada/inline.adb
+2
-4
gcc/ada/sem_ch13.adb
+3
-3
gcc/ada/sem_ch4.adb
+9
-7
gcc/ada/sem_res.adb
+3
-3
No files found.
gcc/ada/inline.adb
View file @
4f324de2
...
...
@@ -3158,10 +3158,8 @@ package body Inline is
-- unconstrained type renaming a local variable of constrained
-- type, which is not expected by GNATprove.
elsif Etype (F) /= Etype (A)
and then not GNATprove_Mode
then
New_A := Unchecked_Convert_To (Etype (F), Relocate_Node (A));
elsif Etype (F) /= Etype (A) and then not GNATprove_Mode then
New_A := Unchecked_Convert_To (Etype (F), Relocate_Node (A));
Temp_Typ := Etype (F);
else
...
...
gcc/ada/sem_ch13.adb
View file @
4f324de2
...
...
@@ -1808,17 +1808,17 @@ package body Sem_Ch13 is
("aspect must name a discriminant of current type", Expr);
else
-- Discriminant type be an anonymous access type or an
-- anonymous access to subprogram.
-- Missing synchronized types???
Disc := First_Discriminant (E);
while Present (Disc) loop
if Chars (Expr) = Chars (Disc)
and then Ekind_In (Etype (Disc),
E_Anonymous_Access
_Type,
E_Anonymous_Access_Subprogram
_Type)
E_Anonymous_Access_Subprogram
_Type,
E_Anonymous_Access
_Type)
then
Set_Has_Implicit_Dereference (E);
Set_Has_Implicit_Dereference (Disc);
...
...
gcc/ada/sem_ch4.adb
View file @
4f324de2
...
...
@@ -913,8 +913,8 @@ package body Sem_Ch4 is
--
the
type
-
checking
is
similar
to
that
of
other
calls
.
procedure
Analyze_Call
(
N
:
Node_Id
)
is
Actuals
:
constant
List_Id
:=
Parameter_Associations
(
N
);
Loc
:
constant
Source_Ptr
:=
Sloc
(
N
);
Actuals
:
constant
List_Id
:=
Parameter_Associations
(
N
);
Nam
:
Node_Id
;
X
:
Interp_Index
;
It
:
Interp
;
...
...
@@ -1325,10 +1325,13 @@ package body Sem_Ch4 is
then
Rewrite
(
Name
(
N
),
Make_Explicit_Dereference
(
Loc
,
Prefix
=>
Make_Selected_Component
(
Loc
,
Prefix
=>
(
New_Occurrence_Of
(
Entity
(
Nam
),
Loc
)),
Selector_Name
=>
New_Occurrence_Of
(
It
.
Nam
,
Loc
))));
Prefix
=>
Make_Selected_Component
(
Loc
,
Prefix
=>
New_Occurrence_Of
(
Entity
(
Nam
),
Loc
),
Selector_Name
=>
New_Occurrence_Of
(
It
.
Nam
,
Loc
))));
Analyze
(
N
);
return
;
...
...
@@ -1342,8 +1345,7 @@ package body Sem_Ch4 is
Set_Etype
(
Nam
,
It
.
Typ
);
end
if
;
elsif
Nkind_In
(
Name
(
N
),
N_Selected_Component
,
N_Function_Call
)
elsif
Nkind_In
(
Name
(
N
),
N_Function_Call
,
N_Selected_Component
)
then
Remove_Interp
(
X
);
end
if
;
...
...
gcc/ada/sem_res.adb
View file @
4f324de2
...
...
@@ -2465,11 +2465,11 @@ package body Sem_Res is
-- with a name that is an explicit dereference, there is
-- nothing to be done at this point.
elsif Nkind_In (N, N_Explicit_Dereference,
N_Attribute_Reference,
elsif Nkind_In (N, N_Attribute_Reference,
N_And_Then,
N_
Indexed_Component
,
N_
Explicit_Dereference
,
N_Identifier,
N_Indexed_Component,
N_Or_Else,
N_Range,
N_Selected_Component,
...
...
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