The SPEC CPU2000 test 176.gcc fails to build on powerpc64-linux with "-O2
-ftree-vectorize -maltivec" for both -m32 and -m64.  A regression hunt using a
minimized testcase (to be attached) identified this patch:

    http://gcc.gnu.org/viewcvs?view=rev&rev=112621

    r112621 | spop | 2006-04-02 04:27:40 +0000 (Sun, 02 Apr 2006)

Output compiling the minimized testcase:

elm3b145% /opt/gcc-nightly/trunk-20060425/bin/gcc -O2 -ftree-vectorize
-maltivec -c recog.c
recog.c: In function ‘constrain_operands’:
recog.c:18: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This segfaults in fold_convert in fold-const.c because argument "type" is 0.


-- 
           Summary: segfault in fold_convert with -ftree-vectorize -maltivec
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc-linux


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

Reply via email to