re PR middle-end/46949 (ICE when weakref is used on a definition (internal compiler...
authorJan Hubicka <jh@suse.cz>
Thu, 27 Jan 2011 16:16:34 +0000 (17:16 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 27 Jan 2011 16:16:34 +0000 (16:16 +0000)
commit779d4b91eb824eb36824dee52bbcfdfe173b2753
tree784a1770f374d75d4f9b660d04cb6a474b323f3e
parente80b21edaebbc271cc2b3f996f51694c3c9bafe6
re PR middle-end/46949 (ICE when weakref is used on a definition (internal compiler error: in function_and_variable_visibility, at ipa.c:904))

PR middle-end/46949
* cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
(process_function_and_variable_attributes): Check defined weakrefs.
* gcc.dg/attr-weakref-4.c: New testcase

From-SVN: r169332
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-weakref-4.c [new file with mode: 0644]