http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48846
Summary: Many -O2 -flto testsuite failures with -m32 -mavx
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Currently, many tests fail with -O2 -flto -m32 -mavx, for example
gcc.c-torture/execute/pr38151.c:
~/gcc-build/gcc/xgcc -B ~/gcc-build/gcc -O2 -flto -mavx -m32 pr38151.c
In file included from :0:0:
pr38151.c: In function ‘check2848va’:
pr38151.c:17:1: internal compiler error: Segmentation fault
Please submit a full bug report,
[pr38151.o obtained from -save-temps]
gdb --args ~/gcc-build/gcc/lto1 pr38151.o
Program received signal SIGSEGV, Segmentation fault.
is_gimple_min_invariant (t=0x0) at ../../gcc-svn/trunk/gcc/gimple.c:2814
2814 if (TREE_CODE (t) == ADDR_EXPR)
(gdb) bt
#0 is_gimple_min_invariant (t=0x0) at ../../gcc-svn/trunk/gcc/gimple.c:2814
#1 0x0000000000653c4d in gimplify_compound_lval (expr_p=0x7fffffffdd28,
pre_p=0x7fffffffddb8, post_p=0x7fffffffdc40, fallback=1)
at ../../gcc-svn/trunk/gcc/gimplify.c:2053
#2 0x000000000064ffbb in gimplify_expr (expr_p=0x7fffffffdd28,
pre_p=0x7fffffffddb8, post_p=0x7fffffffdc40,
gimple_test_f=0x639bb0 <is_gimple_val>, fallback=1)
at ../../gcc-svn/trunk/gcc/gimplify.c:6717
#3 0x0000000000662f0b in force_gimple_operand_1 (expr=0x7ffff202d780,
stmts=0x7fffffffddb8, gimple_test_f=0x639bb0 <is_gimple_val>, var=0x0)
at ../../gcc-svn/trunk/gcc/gimplify.c:8162
#4 0x0000000000663083 in force_gimple_operand_gsi_1 (gsi=0x7fffffffde60,
expr=Unhandled dwarf expression opcode 0xf3
) at ../../gcc-svn/trunk/gcc/gimplify.c:8202
#5 0x00000000007b1aac in expand_complex_move ()
at ../../gcc-svn/trunk/gcc/tree-complex.c:810
#6 expand_complex_operations_1 ()
at ../../gcc-svn/trunk/gcc/tree-complex.c:1459
#7 tree_lower_complex () at ../../gcc-svn/trunk/gcc/tree-complex.c:1600
#8 tree_lower_complex () at ../../gcc-svn/trunk/gcc/tree-complex.c:1566