This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
- 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 14:04:39 +0000
- Subject: [Bug tree-optimization/47190] New: [4.5/4.6 Regression] ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47190
Summary: [4.5/4.6 Regression] ICE: in
function_and_variable_visibility, at ipa.c:934 with
static weakref variable
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
This might be a known problem, but bugzilla search didn't return any results
----- testcase.c -----
static int i __attribute__ ((weakref));
----------------------
Compiler output:
$ gcc testcase.c
testcase.c:1:1: internal compiler error: in function_and_variable_visibility,
at ipa.c:934
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=934,
function=0x11b86e0 "function_and_variable_visibility") at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/diagnostic.c:892
#1 0x0000000000b1c477 in function_and_variable_visibility (whole_program=0
'\000')
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/ipa.c:933
#2 0x00000000007f1e56 in execute_one_pass (pass=0x163cd00) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/passes.c:1553
#3 0x00000000007f258a in execute_ipa_pass_list (pass=0x163cd00)
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/passes.c:1920
#4 0x0000000000af9d81 in ipa_passes () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1722
#5 cgraph_optimize () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1794
#6 0x0000000000af9fda in cgraph_finalize_compilation_unit ()
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/cgraphunit.c:1042
#7 0x0000000000509d6c in c_write_global_declarations () at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/c-decl.c:9843
#8 0x00000000008db9e6 in compile_file (argc=12, argv=0x7fffffffdaf8)
at /usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:591
#9 do_compile (argc=12, argv=0x7fffffffdaf8) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:1874
#10 toplev_main (argc=12, argv=0x7fffffffdaf8) at
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/toplev.c:1937
#11 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6
#12 0x00000000004f0955 in _start ()
Tested revisions:
r168535 - crash
4.5 r168062 - crash
4.4 r168062 - OK