public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
@ 2013-02-02 20:00 daniel.f.starke at freenet dot de
  2013-02-03 16:25 ` [Bug middle-end/56185] " daniel.f.starke at freenet dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: daniel.f.starke at freenet dot de @ 2013-02-02 20:00 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56185
           Summary: [4.7 Regression] ICE for Arithmetic exception with -O2
                    and -fgraphite
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.f.starke@freenet.de


I get an "internal compiler error: Arithmetic exception" for:
//////////////////////////////////////////////
#define ARRAY_SIZE 6

void bug(int var[ARRAY_SIZE]) {
    int i;

    for (i = 0; i < ARRAY_SIZE; i++) {
        var[i] = i;
    }
}
//////////////////////////////////////////////
if ARRAY_SIZE is >= 6 when compiling it with
x86_64-w64-mingw32-gcc -O2 -fgraphite -c
or
x86_64-w64-mingw32-gcc -O3 -fgraphite -c

Using built-in specs.
COLLECT_GCC=D:\Programme\msys\mingw64\bin\x86_64-w64-mingw32-gcc.exe
COLLECT_LTO_WRAPPER=d:/programme/msys/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.2/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../src/gcc-4.7.2/configure --enable-languages=c,c++
--disable-nls --disable-shared --enable-static --enable-lto --enable-libgomp
--with-dwarf2 --disable-win32-registry --enable-version-specific-runtime-libs
--prefix=/mingw64 --with-sysroot=/mingw64 --target=x86_64-w64-mingw32
--enable-targets=all --with-gmp=/usr/new-cross-gcc/lib/gmp-5.0.2
--with-mpfr=/usr/new-cross-gcc/lib/mpfr-2.4.2
--with-mpc=/usr/new-cross-gcc/lib/mpc-0.9
--with-ppl=/usr/new-cross-gcc/lib/ppl-0.11.2
--with-cloog=/usr/new-cross-gcc/lib/cloog-parma-0.16.1
--with-host-libstdcxx='-lstdc++ -lsupc++' --enable-cloog-backend=ppl
Thread model: win32
gcc version 4.7.2 (GCC)

Build with:
binutils-2.22
mingw-w64-v2.0.7


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
@ 2013-02-03 16:25 ` daniel.f.starke at freenet dot de
  2013-02-04  9:56 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: daniel.f.starke at freenet dot de @ 2013-02-03 16:25 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Daniel Starke <daniel.f.starke at freenet dot de> 2013-02-03 16:24:56 UTC ---
This issue does not appear with isl backend as in the configuration below.
However, I still need ppl to build gcc.

Using built-in specs.
COLLECT_GCC=D:\Programme\msys\mingw64\bin\x86_64-w64-mingw32-gcc.exe
COLLECT_LTO_WRAPPER=d:/programme/msys/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.2/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../src/gcc-4.7.2/configure --enable-languages=c,c++
--disable-nls --disable-shared --enable-static --enable-lto --enable-libgomp
--with-dwarf2 --disable-win32-registry --enable-version-specific-runtime-libs
--prefix=/mingw64 --with-sysroot=/mingw64 --target=x86_64-w64-mingw32
--enable-targets=all --with-gmp=/usr/new-cross-gcc/lib/gmp-5.0.2
--with-mpfr=/usr/new-cross-gcc/lib/mpfr-2.4.2
--with-mpc=/usr/new-cross-gcc/lib/mpc-0.9
--with-ppl=/usr/new-cross-gcc/lib/ppl-0.11.2
--with-cloog=/usr/new-cross-gcc/lib/cloog-0.18.0
--with-host-libstdcxx='-lstdc++ -lsupc++' --disable-cloog-version-check
--enable-cloog-backend=isl
Thread model: win32
gcc version 4.7.2 (GCC)


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
  2013-02-03 16:25 ` [Bug middle-end/56185] " daniel.f.starke at freenet dot de
@ 2013-02-04  9:56 ` rguenth at gcc dot gnu.org
  2013-02-05 19:43 ` daniel.f.starke at freenet dot de
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-04  9:56 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-02-04
   Target Milestone|---                         |4.7.3
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-04 09:56:12 UTC ---
The exception happens inside a library (ppl I suppose?).  I cannot reproduce
this on x86_64-linux with GCC 4.6, nor with GCC 4.7 (both using PPL 0.11.2
but cloog 0.15.10 as from the GCC infrastructure).  So I suppose the issue
might be related to the cloog version used.

You mark the bug as a regression - please fill out at least one
known-to-work version and the library versions used for bootstrapping it.


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
  2013-02-03 16:25 ` [Bug middle-end/56185] " daniel.f.starke at freenet dot de
  2013-02-04  9:56 ` rguenth at gcc dot gnu.org
@ 2013-02-05 19:43 ` daniel.f.starke at freenet dot de
  2013-02-06  9:59 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: daniel.f.starke at freenet dot de @ 2013-02-05 19:43 UTC (permalink / raw)
  To: gcc-bugs


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

Daniel Starke <daniel.f.starke at freenet dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.6.3

--- Comment #3 from Daniel Starke <daniel.f.starke at freenet dot de> 2013-02-05 19:43:05 UTC ---
Sorry, I forgot to fill out that field. Works fine with:

Using built-in specs.
COLLECT_GCC=D:\Programme\msys\mingw64\bin\x86_64-w64-mingw32-gcc.exe
COLLECT_LTO_WRAPPER=d:/programme/msys/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.6.3/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../src/gcc-4.6.3/configure --enable-languages=c,c++
--disable-nls --disable-shared --enable-static --enable-lto --enable-libgomp
--with-dwarf2 --disable-win32-registry --enable-version-specific-runtime-libs
--prefix=/mingw64 --with-sysroot=/mingw64 --target=x86_64-w64-mingw32
--enable-targets=all --with-gmp=/usr/new-cross-gcc/lib/gmp-5.0.2
--with-mpfr=/usr/new-cross-gcc/lib/mpfr-2.4.2
--with-mpc=/usr/new-cross-gcc/lib/mpc-0.9
--with-ppl=/usr/new-cross-gcc/lib/ppl-0.11.2
--with-cloog=/usr/new-cross-gcc/lib/cloog-parma-0.16.1
--with-host-libstdcxx='-lstdc++ -lsupc++' --enable-cloog-backend=ppl
Thread model: win32
gcc version 4.6.3 (GCC)

This is a cross compiler, thus I can not bootstrap it. The versions of the used
libraries are in the configure string. Or do you need the base of the build
system used to create that cross compiler?


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
                   ` (2 preceding siblings ...)
  2013-02-05 19:43 ` daniel.f.starke at freenet dot de
@ 2013-02-06  9:59 ` rguenth at gcc dot gnu.org
  2013-02-07  6:44 ` daniel.f.starke at freenet dot de
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-06  9:59 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-06 09:58:47 UTC ---
Ok, so this eventually points at cloog issues.  Still needs someone to
investigate where it traps using a debugger.  Can you post a backtrace maybe?


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
                   ` (3 preceding siblings ...)
  2013-02-06  9:59 ` rguenth at gcc dot gnu.org
@ 2013-02-07  6:44 ` daniel.f.starke at freenet dot de
  2013-02-13 21:09 ` daniel.f.starke at freenet dot de
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: daniel.f.starke at freenet dot de @ 2013-02-07  6:44 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Daniel Starke <daniel.f.starke at freenet dot de> 2013-02-07 06:43:35 UTC ---
The arithmetic exception is caught by gcc, thus not triggered in gdb. I tried a
couple of things with gdb but could not find the point at which it happens. I
will try to create a gcc variant with checking enabled. Maybe this will give
some hints about the origin of this bug.


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
                   ` (4 preceding siblings ...)
  2013-02-07  6:44 ` daniel.f.starke at freenet dot de
@ 2013-02-13 21:09 ` daniel.f.starke at freenet dot de
  2013-04-11  7:59 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: daniel.f.starke at freenet dot de @ 2013-02-13 21:09 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Daniel Starke <daniel.f.starke at freenet dot de> 2013-02-13 21:08:40 UTC ---
This issue does not occur with checking enabled. See below a working
configuration.

COLLECT_GCC=D:\Programme\msys\mingw64\bin\x86_64-w64-mingw32-gcc.exe
COLLECT_LTO_WRAPPER=d:/programme/msys/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.2/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../src/gcc-4.7.2/configure --enable-languages=c,c++
--disable-nls --disable-shared --enable-static --enable-lto --enable-libgomp
--with-dwarf2 --disable-win32-registry --enable-version-specific-runtime-libs
--prefix=/mingw64 --with-sysroot=/mingw64 --target=x86_64-w64-mingw32
--enable-targets=all --enable-checking=all
--with-gmp=/usr/new-cross-gcc/lib/gmp-5.0.2
--with-mpfr=/usr/new-cross-gcc/lib/mpfr-2.4.2
--with-mpc=/usr/new-cross-gcc/lib/mpc-0.9
--with-ppl=/usr/new-cross-gcc/lib/ppl-0.11.2
--with-cloog=/usr/new-cross-gcc/lib/cloog-parma-0.16.1
--with-host-libstdcxx='-lstdc++ -lsupc++' --enable-cloog-backend=ppl
Thread model: win32
gcc version 4.7.2 (GCC)


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
                   ` (5 preceding siblings ...)
  2013-02-13 21:09 ` daniel.f.starke at freenet dot de
@ 2013-04-11  7:59 ` rguenth at gcc dot gnu.org
  2014-01-17 12:34 ` rguenth at gcc dot gnu.org
  2014-06-12 13:24 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-11  7:59 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.3                       |4.7.4

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-11 07:58:59 UTC ---
GCC 4.7.3 is being released, adjusting target milestone.


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
                   ` (6 preceding siblings ...)
  2013-04-11  7:59 ` rguenth at gcc dot gnu.org
@ 2014-01-17 12:34 ` rguenth at gcc dot gnu.org
  2014-06-12 13:24 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-01-17 12:34 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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

* [Bug middle-end/56185] [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite
  2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
                   ` (7 preceding siblings ...)
  2014-01-17 12:34 ` rguenth at gcc dot gnu.org
@ 2014-06-12 13:24 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56185

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|4.7.4                       |4.8.0
      Known to fail|                            |4.7.4

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Assuming fixed in 4.8.0.


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

end of thread, other threads:[~2014-06-12 13:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-02 20:00 [Bug middle-end/56185] New: [4.7 Regression] ICE for Arithmetic exception with -O2 and -fgraphite daniel.f.starke at freenet dot de
2013-02-03 16:25 ` [Bug middle-end/56185] " daniel.f.starke at freenet dot de
2013-02-04  9:56 ` rguenth at gcc dot gnu.org
2013-02-05 19:43 ` daniel.f.starke at freenet dot de
2013-02-06  9:59 ` rguenth at gcc dot gnu.org
2013-02-07  6:44 ` daniel.f.starke at freenet dot de
2013-02-13 21:09 ` daniel.f.starke at freenet dot de
2013-04-11  7:59 ` rguenth at gcc dot gnu.org
2014-01-17 12:34 ` rguenth at gcc dot gnu.org
2014-06-12 13:24 ` rguenth 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).