When I compile qt334 with the actual snapshot of gcc41 (20050730) I get an ICE 
when I enable autovectorisation.

Michael Cieslinski


gcc41i -c -O2 -fpeel-loops -ftree-vectorize -o bug.o bug.i
gcc41i: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


gcc41i -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.1-20050730/configure --prefix=/usr/local/gcc41i --
program-suffix=41i --with-arch=opteron --enable-languages=c,c++ --enable-
checking
Thread model: posix
gcc version 4.1.0 20050730 (experimental)


[EMAIL PROTECTED]:~/qt334-gcc41/qt-x11-free-3.3.4/plugins/src/imageformats/mng$ 
gdb -
-args /usr/local/gcc41i/libexec/gcc/x86_64-unknown-linux-gnu/4.1.0/cc1 -
fpreprocessed bug.i -quiet -dumpbase bug.i
-march=opteron -auxbase-strip bug.o -O2 -version -fpeel-loops -ftree-vectorize -
o /tmp/ccvyZWbO.s
GNU gdb Red Hat Linux (6.1post-1.20040607.33rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db 
library "/lib64/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/gcc41i/libexec/gcc/x86_64-unknown-linux-
gnu/4.1.0/cc1 -fpreprocessed bug.i -quiet -dumpbase bug.i -march=opteron -
auxbase-strip bug.o -O2 -version -fpeel-loops -ftree-vectorize -
o /tmp/ccvyZWbO.s
GNU C version 4.1.0 20050730 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.1.0 20050730 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: f2e6cd82d6f19fbf7b643aaa98865f04

Program received signal SIGSEGV, Segmentation fault.
0x00000000005d8d4d in operand_equal_for_comparison_p (arg0=0x2a95a44f00, 
arg1=0x2a959b8a50, other=0x2a95a44f00) at ../../gcc-4.1-20050730/gcc/fold-
const.c:2664
2664    {
(gdb) where
#0  0x00000000005d8d4d in operand_equal_for_comparison_p (arg0=0x2a95a44f00, 
arg1=0x2a959b8a50, other=0x2a95a44f00) at ../../gcc-4.1-20050730/gcc/fold-
const.c:2664
#1  0x00000000005da8b4 in fold_cond_expr_with_comparison (type=0x2a958f6c60, 
arg0=0x2a95592190, arg1=Variable "arg1" is not available.
) at ../../gcc-4.1-20050730/gcc/fold-const.c:4369
#2  0x00000000005bdbfd in fold_ternary (code=Variable "code" is not available.
) at ../../gcc-4.1-20050730/gcc/fold-const.c:9979
#3  0x00000000005be5e1 in fold_build3 (code=COND_EXPR, type=0x2a958f6c60, 
op0=0x2a95592190, op1=0x2a95a44f00, op2=0x2a959b8a50) at ../../gcc-4.1-
20050730/gcc/fold-const.c:10536
#4  0x00000000005bdbfd in fold_ternary (code=Variable "code" is not available.
) at ../../gcc-4.1-20050730/gcc/fold-const.c:9979
#5  0x00000000005be5e1 in fold_build3 (code=COND_EXPR, type=0x2a958f6c60, 
op0=0x2a95592190, op1=0x2a95a44f00, op2=0x2a959b8a50) at ../../gcc-4.1-
20050730/gcc/fold-const.c:10536
#6  0x00000000005bdbfd in fold_ternary (code=Variable "code" is not available.
) at ../../gcc-4.1-20050730/gcc/fold-const.c:9979
#7  0x00000000005be5e1 in fold_build3 (code=COND_EXPR, type=0x2a958f6c60, 
op0=0x2a95592190, op1=0x2a95a44f00, op2=0x2a959b8a50) at ../../gcc-4.1-
20050730/gcc/fold-const.c:10536
#8  0x00000000005bdbfd in fold_ternary (code=Variable "code" is not available.

and so on in an endless loop ...

-- 
           Summary: Segmentation fault in in fold_ternary, file fold-
                    const.c:9979
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: micis at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23179

Reply via email to