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

           Summary: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at
                    -m32/-m64
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: howa...@nitro.med.uc.edu


Current gcc trunk with http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00629.html
and

Index: opts.c
===================================================================
--- opts.c      (revision 167318)
+++ opts.c      (working copy)
@@ -462,6 +462,9 @@
     { OPT_LEVELS_1_PLUS, OPT_fcombine_stack_adjustments, NULL, 1 },

     /* -O2 optimizations.  */
+#ifdef HAVE_cloog
+    { OPT_LEVELS_2_PLUS, OPT_fgraphite_identity, NULL, 1 },
+#endif
     { OPT_LEVELS_2_PLUS, OPT_finline_small_functions, NULL, 1 },
     { OPT_LEVELS_2_PLUS, OPT_findirect_inlining, NULL, 1 },
     { OPT_LEVELS_2_PLUS, OPT_fpartial_inlining, NULL, 1 },

causes the regressions...

FAIL: gcc.dg/pr43300.c (internal compiler error)
FAIL: gcc.dg/pr43300.c (test for excess errors)

which are of the form...

Executing on host: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20101207/gcc/testsuite/gcc.dg/pr43300.c
  -Os -w -Wno-psabi -S  -m32 -o pr43300.s    (timeout = 300)
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20101207/gcc/testsuite/gcc.dg/pr43300.c:
In function 'foo':
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20101207/gcc/testsuite/gcc.dg/pr43300.c:8:1:
internal compiler error: in rename_uses, at sese.c:534

on x86_64-apple-darwin10 for both -m32 and -m64. This backtraces as...


gdb /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/cc1
GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010)
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-apple-darwin"...Reading symbols for shared
libraries ............ done

(gdb) break fancy_abort
Breakpoint 1 at 0x10039fa0b: file ../../gcc-4.6-20101207/gcc/diagnostic.c, line
893.
(gdb) r  -v -imultilib i386 -iprefix
/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin10.5.0/4.6.0/
-isystem /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/include -isystem
/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/include-fixed
-D__DYNAMIC__
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20101207/gcc/testsuite/gcc.dg/pr43300.c
-fPIC -quiet -dumpbase pr43300.c -mmacosx-version-min=10.6.5 -m32 -mtune=core2
-auxbase-strip pr43300.s -Os -Wno-psabi -w -version -o pr43300.s
Starting program: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/cc1 -v
-imultilib i386 -iprefix
/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin10.5.0/4.6.0/
-isystem /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/include -isystem
/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/include-fixed
-D__DYNAMIC__
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20101207/gcc/testsuite/gcc.dg/pr43300.c
-fPIC -quiet -dumpbase pr43300.c -mmacosx-version-min=10.6.5 -m32 -mtune=core2
-auxbase-strip pr43300.s -Os -Wno-psabi -w -version -o pr43300.s
Reading symbols for shared libraries .+++++++++++....... done
GNU C (GCC) version 4.6.0 20101207 (experimental) (x86_64-apple-darwin10.5.0)
    compiled by GNU C version 4.6.0 20101207 (experimental), GMP version 4.3.2,
MPFR version 2.4.2-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
"/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin10.5.0/4.6.0/include"
ignoring nonexistent directory
"/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin10.5.0/4.6.0/include-fixed"
ignoring nonexistent directory
"/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin10.5.0/4.6.0/../../../../x86_64-apple-darwin10.5.0/include"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.5.0/4.6.0/../../../../x86_64-apple-darwin10.5.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/include
 /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/include-fixed
 /sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.5.0/4.6.0/include
 /sw/lib/gcc4.6/include
 /sw/lib/gcc4.6/lib/gcc/x86_64-apple-darwin10.5.0/4.6.0/include-fixed
 /usr/include
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
GNU C (GCC) version 4.6.0 20101207 (experimental) (x86_64-apple-darwin10.5.0)
    compiled by GNU C version 4.6.0 20101207 (experimental), GMP version 4.3.2,
MPFR version 2.4.2-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 4ae3019162114484961a68f26162a36c

Breakpoint 1, fancy_abort (file=0x1009a76c8
"../../gcc-4.6-20101207/gcc/sese.c", line=534, function=0x100a51534
"rename_uses") at ../../gcc-4.6-20101207/gcc/diagnostic.c:893
893      internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) bt
#0  fancy_abort (file=0x1009a76c8 "../../gcc-4.6-20101207/gcc/sese.c",
line=534, function=0x100a51534 "rename_uses") at
../../gcc-4.6-20101207/gcc/diagnostic.c:893
#1  0x000000010065f103 in copy_bb_and_scalar_dependences (bb=<value temporarily
unavailable, due to optimizations>, region=0x141b26ce0, next_e=<value
temporarily unavailable, due to optimizations>, iv_map=0x141b27ec0) at
../../gcc-4.6-20101207/gcc/sese.c:534
(gdb)

Reply via email to