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
0c8af82a
Commit
0c8af82a
authored
Dec 13, 2017
by
Eric Botcazou
Committed by
Eric Botcazou
Dec 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Initialize locus.
From-SVN: r255603
parent
692317f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/trans.c
+2
-1
No files found.
gcc/ada/ChangeLog
View file @
0c8af82a
2017
-
12
-
13
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
trans
.
c
(
Subprogram_Body_to_gnu
):
Initialize
locus
.
2017
-
12
-
13
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
trans
.
c
(
process_freeze_entity
):
Be
prepared
for
a
package
without
body
.
...
...
gcc/ada/gcc-interface/trans.c
View file @
0c8af82a
...
...
@@ -3773,7 +3773,8 @@ Subprogram_Body_to_gnu (Node_Id gnat_node)
}
/* Set the line number in the decl to correspond to that of the body. */
Sloc_to_locus
(
Sloc
(
gnat_node
),
&
locus
);
if
(
!
Sloc_to_locus
(
Sloc
(
gnat_node
),
&
locus
))
locus
=
input_location
;
DECL_SOURCE_LOCATION
(
gnu_subprog_decl
)
=
locus
;
/* If the body comes from an expression function, arrange it to be inlined
...
...
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