[Bug middle-end/46949] [4.6 regression] ICE when weakref is used on a definition (internal compiler error: in function_and_variable_visibility, at ipa.c:904)
dnovillo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 2 18:29:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46949
--- Comment #4 from Diego Novillo <dnovillo at gcc dot gnu.org> 2011-02-02 17:57:21 UTC ---
Author: dnovillo
Date: Wed Feb 2 17:57:10 2011
New Revision: 169649
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169649
Log:
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
Added:
branches/google/integration/gcc/testsuite/gcc.dg/attr-weakref-4.c
Modified:
branches/google/integration/gcc/ChangeLog
branches/google/integration/gcc/cgraphunit.c
branches/google/integration/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list