This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47193] New: [4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:857 with static var weakref'd to other weakref'd static var
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 6 Jan 2011 16:59:21 +0000
- Subject: [Bug tree-optimization/47193] New: [4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:857 with static var weakref'd to other weakref'd static var
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47193
Summary: [4.6 Regression] ICE: in
function_and_variable_visibility, at ipa.c:857 with
static var weakref'd to other weakref'd static var
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
CC: hubicka@gcc.gnu.org
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
----- testcase.c -----
static int i __attribute__ ((weakref ("j")));
static int j __attribute__ ((weakref ("k")));
----------------------
(reduced from gcc.dg/attr-weakref-1.c)
PR47190 was reduced from the same testcase, but ended in different ICE.
Compiler output:
$ gcc testcase.c
testcase.c:2:1: internal compiler error: in function_and_variable_visibility,
at ipa.c:857
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
(gdb) bt
#0 fancy_abort (file=0x11b8518
"/usr/portage/distfiles/svn-src/gcc/trunk/gcc/ipa.c", line=857,
function=0x11b86e0 "function_and_variable_visibility") at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/diagnostic.c:892
#1 0x0000000000b1c6b2 in function_and_variable_visibility (whole_program=0
'\000')
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/ipa.c:857
#2 0x0000000000b1c93d in whole_program_function_and_variable_visibility ()
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/ipa.c:1047
#3 0x00000000007f1e56 in execute_one_pass (pass=0x163cc60) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/passes.c:1553
#4 0x00000000007f258a in execute_ipa_pass_list (pass=0x163cc60)
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/passes.c:1920
#5 0x0000000000af9e04 in ipa_passes () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1759
#6 cgraph_optimize () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1794
#7 0x0000000000af9fda in cgraph_finalize_compilation_unit ()
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1042
#8 0x0000000000509d6c in c_write_global_declarations () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/c-decl.c:9843
#9 0x00000000008db9e6 in compile_file (argc=12, argv=0x7fffffffdae8)
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:591
#10 do_compile (argc=12, argv=0x7fffffffdae8) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:1874
#11 toplev_main (argc=12, argv=0x7fffffffdae8) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:1937
#12 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6
#13 0x00000000004f0955 in _start ()
Tested revisions:
r168535 - crash
r165699 - OK
4.5 r168062 - OK