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
53a5377a
Commit
53a5377a
authored
8 years ago
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor reformatting.
From-SVN: r244404
parent
a702c9b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
gcc/ada/exp_spark.adb
+16
-11
gcc/ada/osint-c.adb
+1
-0
No files found.
gcc/ada/exp_spark.adb
View file @
53a5377a
...
...
@@ -31,7 +31,7 @@ with Exp_Util; use Exp_Util;
with
Namet
;
use
Namet
;
with
Nlists
;
use
Nlists
;
with
Nmake
;
use
Nmake
;
with
Rtsfind
;
with
Rtsfind
;
use
Rtsfind
;
with
Sem_Res
;
use
Sem_Res
;
with
Sem_Util
;
use
Sem_Util
;
with
Sinfo
;
use
Sinfo
;
...
...
@@ -121,29 +121,34 @@ package body Exp_SPARK is
--------------------------------------
procedure
Expand_SPARK_Attribute_Reference
(
N
:
Node_Id
)
is
Aname
:
constant
Name_Id
:=
Attribute_Name
(
N
);
Aname
:
constant
Name_Id
:=
Attribute_Name
(
N
);
Attr_Id
:
constant
Attribute_Id
:=
Get_Attribute_Id
(
Aname
);
Expr
:
Node_Id
;
Call
:
Node_Id
;
Loc
:
constant
Source_Ptr
:=
Sloc
(
N
);
Call
:
Node_Id
;
Expr
:
Node_Id
;
begin
if
Attr_Id
=
Attribute_To_Address
then
--
Extract
argument
to
later
reanalyze
it
in
the
new
context
Expr
:=
First
(
Expressions
(
N
));
Nlists
.
Remove
(
Expr
);
Set_Etype
(
Expr
,
Empty
);
Set_Etype
(
Expr
,
Empty
);
Set_Analyzed
(
Expr
,
False
);
--
Create
the
call
and
insert
it
in
the
tree
Call
:=
Make_Function_Call
(
Sloc
(
N
),
Name
=>
New_Occurrence_Of
(
Rtsfind
.
RTE
(
Rtsfind
.
RE_To_Address
),
Sloc
(
N
)),
Parameter_Associations
=>
New_List
(
Expr
));
Call
:=
Make_Function_Call
(
Loc
,
Name
=>
New_Occurrence_Of
(
RTE
(
RE_To_Address
),
Loc
),
Parameter_Associations
=>
New_List
(
Expr
));
Set_Etype
(
Call
,
Etype
(
N
));
Rewrite
(
Old_Node
=>
N
,
New_Node
=>
Call
);
Rewrite
(
N
,
Call
);
--
Reanalyze
argument
and
call
in
the
new
context
...
...
This diff is collapsed.
Click to expand it.
gcc/ada/osint-c.adb
View file @
53a5377a
...
...
@@ -351,6 +351,7 @@ package body Osint.C is
--
Remove
trailing
NUL
that
comes
from
Set_File_Name
above
.
This
is
--
needed
for
consistency
with
names
that
come
from
Scan_ALI
and
thus
--
preventing
repeated
scanning
of
the
same
file
.
pragma
Assert
(
Name_Len
>
1
and
then
Name_Buffer
(
Name_Len
)
=
ASCII
.
NUL
);
Name_Len
:=
Name_Len
-
1
;
...
...
This diff is collapsed.
Click to expand it.
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