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: unassig...@gcc.gnu.org

        ReportedBy: daniel.f.sta...@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

Reply via email to