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
d3ece023
Commit
d3ece023
authored
Aug 16, 2009
by
Jason Merrill
Committed by
Jason Merrill
Aug 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl2.c (finish_static_data_member_decl): Don't set TREE_USED.
From-SVN: r150806
parent
b49bd379
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
gcc/cp/ChangeLog
+2
-0
gcc/cp/decl2.c
+1
-4
No files found.
gcc/cp/ChangeLog
View file @
d3ece023
2009-08-15 Jason Merrill <jason@redhat.com>
* decl2.c (finish_static_data_member_decl): Don't set TREE_USED.
* decl2.c (mark_used): It's ok to synthesize for default args now.
2009-08-10 Jason Merrill <jason@redhat.com>
...
...
gcc/cp/decl2.c
View file @
d3ece023
...
...
@@ -746,10 +746,7 @@ finish_static_data_member_decl (tree decl,
}
init
=
NULL_TREE
;
}
/* Force the compiler to know when an uninitialized static const
member is being used. */
if
(
CP_TYPE_CONST_P
(
TREE_TYPE
(
decl
))
&&
init
==
0
)
TREE_USED
(
decl
)
=
1
;
DECL_INITIAL
(
decl
)
=
init
;
DECL_IN_AGGR_P
(
decl
)
=
1
;
...
...
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