Testing the mingw64-i686* packages found at
ftp://ftp.cygwinports.org/pub/cygwinports/temp/MinGW (Cygwin cross
compiler, see[*]), I have obtained an ICE:
$ cat ICE_test.cpp
void foo(char const* upattern, int color)
{
static short bitmap_data[8];
for (int i = 0; i < 8; i++)
{
bitmap_data[i] = (unsigned char)~upattern[i];
}
}
$ mingw32-g++ -O3 -c ICE_test.cpp
ICE_test.cpp: In function ‘void foo(const char*, int)’:
ICE_test.cpp:1:6: internal compiler error: in vectorizable_store, at
tree-vect-stmts.c:3157
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Using '-O0/-O1/-O2' in place of '-O3' option, works just fine!
Useful informations
-------------------
I have done a very personal installation of the cited packages: I have
unpacked them in /tmp, renamed usr to mingw-w64 and moved this to
/usr/local. Then I have created the link mingw32-g++ ->
/usr/local/mingw-w64/bin/i686-w64-mingw32-g++.exe. So:
$ mingw32-g++ -v
Using built-in specs.
COLLECT_GCC=mingw32-g++
COLLECT_LTO_WRAPPER=/usr/local/mingw-w64/bin/../lib/gcc/i686-w64-mingw32/4.5.1/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with:
/usr/src/ports/devel/mingw64-i686-gcc/mingw64-i686-gcc-4.5.20100708-1/src/gcc-4.5-20100708/configure
--srcdir=/usr/src/ports/devel/mingw64-i686-gcc/mingw64-i686-gcc-4.5.20100708-1/src/gcc-4.5-20100708
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --datarootdir=/usr/share
--docdir=/usr/share/doc/mingw64-i686-gcc --build=i686-pc-cygwin
--host=i686-pc-cygwin --target=i686-w64-mingw32
--with-sysroot=/usr/i686-w64-mingw32/sys-root --disable-multilib
--enable-libgomp --enable-lto
--enable-languages=c,c++,fortran,objc,obj-c++
--enable-fully-dynamic-strings --enable-sjlj-exceptions
--enable-version-specific-runtime-libs --with-dwarf2
Thread model: win32
gcc version 4.5.1 20100708 (prerelease) (GCC)
The CPU is AMD Athlon 64 DC. The system is Cygwin 1.75 on WinXP 32.
Ciao,
Angelo.
---
[*] http://cygwin.com/ml/cygwin-apps/2010-07/msg00134.html