[Bug lto/60720] New: clisp fails to build with -flto: internal compiler error: tree check: expected array_type, have record_type in array_ref_low_bound, at expr.c:6941
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 31 12:41:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60720
Bug ID: 60720
Summary: clisp fails to build with -flto: internal compiler
error: tree check: expected array_type, have
record_type in array_ref_low_bound, at expr.c:6941
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: lto
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Created attachment 32496
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32496&action=edit
testcase
compile with -flto:
> ./xgcc -B. regexi.m.i modules.i -flto
modules.h:4:316: warning: type of 'module__regexp__object_tab_initdata' does
not match original declaration
/home/abuild/rpmbuild/BUILD/clisp-2.49/modules/regexp/regexi.c:59:3: note:
previously declared here
modules.h:4:254: warning: type of 'module__regexp__subr_tab_initdata' does not
match original declaration
/home/abuild/rpmbuild/BUILD/clisp-2.49/modules/regexp/regexi.c:173:3: note:
previously declared here
modules.h:4:154: warning: type of 'module__regexp__object_tab' does not match
original declaration
/home/abuild/rpmbuild/BUILD/clisp-2.49/modules/regexp/regexi.c:42:3: note:
previously declared here
modules.h:4:63: warning: type of 'module__regexp__subr_tab' does not match
original declaration
/home/abuild/rpmbuild/BUILD/clisp-2.49/modules/regexp/regexi.c:153:35: note:
previously declared here
lto1: internal compiler error: tree check: expected array_type, have
record_type in array_ref_low_bound, at expr.c:6941
0xd8ac7f tree_check_failed(tree_node const*, char const*, int, char const*,
...)
/space/rguenther/src/svn/trunk/gcc/tree.c:9192
0x60b229 tree_check(tree_node*, char const*, int, char const*, tree_code)
/space/rguenther/src/svn/trunk/gcc/tree.h:2713
0x79d6ae array_ref_low_bound(tree_node*)
/space/rguenther/src/svn/trunk/gcc/expr.c:6941
0x79cf1e get_inner_reference(tree_node*, long*, long*, tree_node**,
machine_mode*, int*, int*, bool)
/space/rguenther/src/svn/trunk/gcc/expr.c:6791
0x79fe95 expand_expr_addr_expr_1
/space/rguenther/src/svn/trunk/gcc/expr.c:7689
0x7a0550 expand_expr_addr_expr
/space/rguenther/src/svn/trunk/gcc/expr.c:7783
0x7ab686 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/space/rguenther/src/svn/trunk/gcc/expr.c:10562
0x7a09ce expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
/space/rguenther/src/svn/trunk/gcc/expr.c:7950
0xdbe930 expand_expr
/space/rguenther/src/svn/trunk/gcc/expr.h:457
0xdcbeb3 output_constant
/space/rguenther/src/svn/trunk/gcc/varasm.c:4706
0xdccd4b output_constructor_regular_field
/space/rguenther/src/svn/trunk/gcc/varasm.c:4952
0xdcd711 output_constructor
/space/rguenther/src/svn/trunk/gcc/varasm.c:5231
0xdcc3fe output_constant
/space/rguenther/src/svn/trunk/gcc/varasm.c:4756
0xdccd4b output_constructor_regular_field
/space/rguenther/src/svn/trunk/gcc/varasm.c:4952
0xdcd711 output_constructor
/space/rguenther/src/svn/trunk/gcc/varasm.c:5231
0xdcc0d5 output_constant
/space/rguenther/src/svn/trunk/gcc/varasm.c:4728
0xdc3b00 assemble_variable_contents
/space/rguenther/src/svn/trunk/gcc/varasm.c:1954
0xdc43e9 assemble_variable(tree_node*, int, int, int)
/space/rguenther/src/svn/trunk/gcc/varasm.c:2139
0xdd5155 varpool_assemble_decl(varpool_node*)
/space/rguenther/src/svn/trunk/gcc/varpool.c:455
0x6cb6fb output_in_order
/space/rguenther/src/svn/trunk/gcc/cgraphunit.c:2010
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: ./xgcc returned 1 exit status
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status
More information about the Gcc-bugs
mailing list