symtab.c (symtab_node::equal_address_to): New function.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 7 Dec 2014 07:35:11 +0000 (08:35 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 7 Dec 2014 07:35:11 +0000 (07:35 +0000)
commit3cb251b77933671acc8717ede172be28d839927f
tree94cb96a4a951949b96e031fdf5a464a3bdc185de
parent8c8d3b4c128996f8188d76a0fe61e79b8304f0a8
symtab.c (symtab_node::equal_address_to): New function.

* symtab.c (symtab_node::equal_address_to): New function.
* cgraph.h (symtab_node::equal_address_to): Declare.
* fold-const.c (fold_comparison, fold_binary_loc): Use it.

* c-family/c-common.c: Refuse weaks for symbols that can not change
visibility.

* gcc.dg/addr_equal-1.c: New testcase.

From-SVN: r218462
gcc/ChangeLog
gcc/c-family/c-common.c
gcc/cgraph.h
gcc/fold-const.c
gcc/symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/addr_equal-1.c [new file with mode: 0644]