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
e9e485f4
Commit
e9e485f4
authored
Jul 01, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(integrate_decl_tree): Set DECL_ABTRACT_ORIGIN before pushdecl call
for local variables. From-SVN: r10102
parent
a8259c76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
gcc/integrate.c
+11
-2
No files found.
gcc/integrate.c
View file @
e9e485f4
...
@@ -1991,14 +1991,23 @@ integrate_decl_tree (let, level, map)
...
@@ -1991,14 +1991,23 @@ integrate_decl_tree (let, level, map)
if
(
DECL_LANG_SPECIFIC
(
d
))
if
(
DECL_LANG_SPECIFIC
(
d
))
copy_lang_decl
(
d
);
copy_lang_decl
(
d
);
/* Must set DECL_ABSTRACT_ORIGIN here for local variables, to ensure
that we don't get -Wshadow warnings. But don't set it here if
pushdecl might return a duplicate decl, as that will result in
incorrect DWARF debug info. */
if
(
!
DECL_EXTERNAL
(
d
)
||
!
TREE_PUBLIC
(
d
))
/* Prevent warning for shadowing with these. */
DECL_ABSTRACT_ORIGIN
(
d
)
=
t
;
newd
=
pushdecl
(
d
);
newd
=
pushdecl
(
d
);
/* If the decl we get back is the copy of 't' that we started with,
/* If we didn't set DECL_ABSTRACT_ORIGIN above, then set it now.
Simpler to just set it always rather than checking.
If the decl we get back is the copy of 't' that we started with,
then set the DECL_ABSTRACT_ORIGIN. Otherwise, we must have a
then set the DECL_ABSTRACT_ORIGIN. Otherwise, we must have a
duplicate decl, and we got the older one back. In that case, setting
duplicate decl, and we got the older one back. In that case, setting
DECL_ABSTRACT_ORIGIN is not appropriate. */
DECL_ABSTRACT_ORIGIN is not appropriate. */
if
(
newd
==
d
)
if
(
newd
==
d
)
/* Prevent warning for shadowing with these. */
DECL_ABSTRACT_ORIGIN
(
d
)
=
t
;
DECL_ABSTRACT_ORIGIN
(
d
)
=
t
;
}
}
...
...
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