public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64
@ 2010-12-08  3:32 howarth at nitro dot med.uc.edu
  2010-12-08  3:33 ` [Bug middle-end/46845] " howarth at nitro dot med.uc.edu
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2010-12-08  3:32 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: howarth@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)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/46845] -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64
  2010-12-08  3:32 [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64 howarth at nitro dot med.uc.edu
@ 2010-12-08  3:33 ` howarth at nitro dot med.uc.edu
  2010-12-08  3:39 ` howarth at nitro dot med.uc.edu
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2010-12-08  3:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jack Howarth <howarth at nitro dot med.uc.edu> 2010-12-08 03:33:33 UTC ---
Using built-in specs.
COLLECT_GCC=gcc-4
COLLECT_LTO_WRAPPER=/sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.5.0/4.6.0/lto-wrapper
Target: x86_64-apple-darwin10.5.0
Configured with: ../gcc-4.6-20101207/configure --prefix=/sw
--prefix=/sw/lib/gcc4.6 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.6/info
--enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw
--with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--program-suffix=-fsf-4.6 --enable-checking=yes --enable-cloog-backend=isl
Thread model: posix
gcc version 4.6.0 20101207 (experimental) (GCC)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/46845] -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64
  2010-12-08  3:32 [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64 howarth at nitro dot med.uc.edu
  2010-12-08  3:33 ` [Bug middle-end/46845] " howarth at nitro dot med.uc.edu
@ 2010-12-08  3:39 ` howarth at nitro dot med.uc.edu
  2010-12-08  6:26 ` spop at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2010-12-08  3:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jack Howarth <howarth at nitro dot med.uc.edu> 2010-12-08 03:39:46 UTC ---
This same ICE also appears in...

FAIL: gcc.target/i386/pr21101.c (internal compiler error)
FAIL: gcc.target/i386/pr21101.c (test for excess errors)
FAIL: gcc.target/i386/sse2-mmx.c (internal compiler error)
FAIL: gcc.target/i386/sse2-mmx.c (test for excess errors)
WARNING: gcc.target/i386/sse2-mmx.c compilation failed to produce executable
FAIL: gcc.target/i386/sse2-vec-6.c (internal compiler error)
FAIL: gcc.target/i386/sse2-vec-6.c (test for excess errors)
WARNING: gcc.target/i386/sse2-vec-6.c compilation failed to produce executable
FAIL: gcc.target/i386/sse4_1-insertps-1.c (internal compiler error)
FAIL: gcc.target/i386/sse4_1-insertps-1.c (test for excess errors)
WARNING: gcc.target/i386/sse4_1-insertps-1.c compilation failed to produce
executable
FAIL: gcc.target/i386/sse4_1-movntdqa.c (internal compiler error)
FAIL: gcc.target/i386/sse4_1-movntdqa.c (test for excess errors)
WARNING: gcc.target/i386/sse4_1-movntdqa.c compilation failed to produce
executable
FAIL: gcc.target/i386/sse4_1-mpsadbw.c (internal compiler error)
FAIL: gcc.target/i386/sse4_1-mpsadbw.c (test for excess errors)
WARNING: gcc.target/i386/sse4_1-mpsadbw.c compilation failed to produce
executable
FAIL: gcc.target/i386/sse4_1-pinsrd.c (internal compiler error)
FAIL: gcc.target/i386/sse4_1-pinsrd.c (test for excess errors)
WARNING: gcc.target/i386/sse4_1-pinsrd.c compilation failed to produce
executable
FAIL: gcc.target/i386/sse4_1-ptest-3.c (internal compiler error)
FAIL: gcc.target/i386/sse4_1-ptest-3.c (test for excess errors)
WARNING: gcc.target/i386/sse4_1-ptest-3.c compilation failed to produce
executable

at both -m32 and -m64.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/46845] -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64
  2010-12-08  3:32 [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64 howarth at nitro dot med.uc.edu
  2010-12-08  3:33 ` [Bug middle-end/46845] " howarth at nitro dot med.uc.edu
  2010-12-08  3:39 ` howarth at nitro dot med.uc.edu
@ 2010-12-08  6:26 ` spop at gcc dot gnu.org
  2010-12-08 14:12 ` howarth at nitro dot med.uc.edu
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu.org @ 2010-12-08  6:26 UTC (permalink / raw)
  To: gcc-bugs

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

Sebastian Pop <spop at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2010.12.08 06:26:31
         AssignedTo|unassigned at gcc dot       |spop at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #3 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-08 06:26:31 UTC ---
Mine.
This ICE occurs on trunk without extra patches.
When I read the first comment, I thought that it was due to the patch that I
posted.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/46845] -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64
  2010-12-08  3:32 [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64 howarth at nitro dot med.uc.edu
                   ` (2 preceding siblings ...)
  2010-12-08  6:26 ` spop at gcc dot gnu.org
@ 2010-12-08 14:12 ` howarth at nitro dot med.uc.edu
  2010-12-14  7:30 ` spop at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2010-12-08 14:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jack Howarth <howarth at nitro dot med.uc.edu> 2010-12-08 14:12:31 UTC ---
Sorry for the confusion. I meant to show that your latest patch didn't fix this
issue (which actually has been present in gcc trunk for some time now...
http://gcc.gnu.org/ml/gcc-testresults/2010-08/msg00666.html).


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/46845] -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64
  2010-12-08  3:32 [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64 howarth at nitro dot med.uc.edu
                   ` (3 preceding siblings ...)
  2010-12-08 14:12 ` howarth at nitro dot med.uc.edu
@ 2010-12-14  7:30 ` spop at gcc dot gnu.org
  2010-12-15  5:07 ` spop at gcc dot gnu.org
  2010-12-15  5:09 ` spop at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu.org @ 2010-12-14  7:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-14 07:30:07 UTC ---
Patch
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg01062.html


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/46845] -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64
  2010-12-08  3:32 [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64 howarth at nitro dot med.uc.edu
                   ` (4 preceding siblings ...)
  2010-12-14  7:30 ` spop at gcc dot gnu.org
@ 2010-12-15  5:07 ` spop at gcc dot gnu.org
  2010-12-15  5:09 ` spop at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu.org @ 2010-12-15  5:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-15 05:04:52 UTC ---
Author: spop
Date: Wed Dec 15 05:04:50 2010
New Revision: 167844

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167844
Log:
Fix PR46845: handle scop parameters before scev analysis.

2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>

    PR tree-optimization/46845
    * sese.c (scalar_evolution_in_region): Handle scop parameters
    before scev analysis.

    * gcc.dg/graphite/id-pr46845.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/id-pr46845.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/sese.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/46845] -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64
  2010-12-08  3:32 [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64 howarth at nitro dot med.uc.edu
                   ` (5 preceding siblings ...)
  2010-12-15  5:07 ` spop at gcc dot gnu.org
@ 2010-12-15  5:09 ` spop at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu.org @ 2010-12-15  5:09 UTC (permalink / raw)
  To: gcc-bugs

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

Sebastian Pop <spop at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-15 05:08:57 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-12-15  5:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-08  3:32 [Bug middle-end/46845] New: -fgraphite-identity causes ICE in gcc.dg/pr43300.c at -m32/-m64 howarth at nitro dot med.uc.edu
2010-12-08  3:33 ` [Bug middle-end/46845] " howarth at nitro dot med.uc.edu
2010-12-08  3:39 ` howarth at nitro dot med.uc.edu
2010-12-08  6:26 ` spop at gcc dot gnu.org
2010-12-08 14:12 ` howarth at nitro dot med.uc.edu
2010-12-14  7:30 ` spop at gcc dot gnu.org
2010-12-15  5:07 ` spop at gcc dot gnu.org
2010-12-15  5:09 ` spop at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).