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
32341663
Commit
32341663
authored
Aug 01, 2017
by
Jason Merrill
Committed by
Jason Merrill
Aug 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (declare_global_var): Set DECL_CONTEXT.
From-SVN: r250786
parent
636730ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+1
-0
No files found.
gcc/cp/ChangeLog
View file @
32341663
2017-07-31 Jason Merrill <jason@redhat.com>
* decl.c (declare_global_var): Set DECL_CONTEXT.
2017-07-31 Jan Hubicka <hubicka@ucw.cz>
Martin Liska <mliska@suse.cz>
...
...
gcc/cp/decl.c
View file @
32341663
...
...
@@ -7583,6 +7583,7 @@ declare_global_var (tree name, tree type)
TREE_PUBLIC
(
decl
)
=
1
;
DECL_EXTERNAL
(
decl
)
=
1
;
DECL_ARTIFICIAL
(
decl
)
=
1
;
DECL_CONTEXT
(
decl
)
=
FROB_CONTEXT
(
global_namespace
);
/* If the user has explicitly declared this variable (perhaps
because the code we are compiling is part of a low-level runtime
library), then it is possible that our declaration will be merged
...
...
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