diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-19 23:56:52 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-19 23:56:52 +0000 |
commit | 8e857c4151f8f0aae992f9b5f22ee5b4c1cc1c73 (patch) | |
tree | d7d5f6d00208bddb323b80ac27eed3ded29bed4a /gcc/fold-const.c | |
parent | 20a52496a54ae8916e2bfc4d38aec95bb3592242 (diff) | |
download | gcc-8e857c4151f8f0aae992f9b5f22ee5b4c1cc1c73.tar.gz |
PR c++/61825
* c-family/c-common.c (handle_alias_ifunc_attribute): Check
that visibility change is possible
(handle_weakref_attribute): Likewise.
* cgraph.h (symtab_node): Add method get_create and
field refuse_visibility_changes.
(symtab_node::get_create): New method.
* fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
* varasm.c (mark_weak): Verify that visibility change is
possible.
* gcc.dg/tree-ssa/nonzero-1.c: Require error to be output.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215409 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index f7bf5254e18..5cfc6461a4b 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -15850,7 +15850,7 @@ tree_single_nonzero_warnv_p (tree t, bool *strict_overflow_p) { struct symtab_node *symbol; - symbol = symtab_node::get (base); + symbol = symtab_node::get_create (base); if (symbol) return symbol->nonzero_address (); else |