[Bug c/31275] New: ICE During Gettext Build
msgl-check.c: In function 'plural_help': msgl-check.c:194: error: unrecognizable insn: (insn 41 40 42 4 msgl-check.c:179 (set (reg:SI 75) (const:SI (plus:SI (mem:SI (symbol_ref:SI ("#i.plural_table") ) [0 S4 A8]) (const_int 4 [0x4] -1 (nil) (nil)) msgl-check.c:194: internal compiler error: in extract_insn, at recog.c:2084 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. I get this when I try to cross compile gettext for mingw from linux. It is being compiled with this command line. /crosstools/crosscc/bin/i686-pc-mingw32-gcc -DLOCALEDIR="/crosstools/crosscc/share/locale" -DBISON_LOCALEDIR="" -DLOCALE_ALIAS_PATH="/crosstools/crosscc/share/locale" -DUSEJEXE=1 -DGETTEXTJEXEDIR="/crosstools/crosscc/lib/gettext" -DGETTEXTJAR="/crosstools/crosscc/share/gettext/gettext.jar" -DLIBDIR="/crosstools/crosscc/lib" -DGETTEXTDATADIR="/crosstools/crosscc/share/gettext" -DPROJECTSDIR="/crosstools/crosscc/share/gettext/projects" -DHAVE_CONFIG_H -c -I. -I.. -I../libgrep -I../libuniname -I../gnulib-lib -I../intl -I../../gettext-runtime/intl -I/crosstools/crosscc/include -g -O2 msgl-check.c -o msgl-check.o This is the output for i686-pc-mingw32-gcc -v Using built-in specs. Target: i686-pc-mingw32 Configured with: ../gcc-4.1.2/configure --prefix=/crosstools/crosscc --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-mingw32 --enable-shared --enable-threads --disable-nls --enable-c99 --enable-long-long --disable-multilib --enable-languages=c,c++,java,objc,obj-c++,fortran --enable-libgcj --enable-boehm-gc --with-gcj --enable-sjlj-exceptions Thread model: win32 gcc version 4.1.2 -- Summary: ICE During Gettext Build Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: arcangelpip at hotmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31275
[Bug c/31275] ICE During Gettext Build
--- Comment #1 from arcangelpip at hotmail dot com 2007-03-20 07:18 --- Created an attachment (id=13237) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13237&action=view) Preprocessed output from the file. Added the preprocessed output. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31275
[Bug c/31275] ICE During Gettext Build
--- Comment #3 from arcangelpip at hotmail dot com 2007-03-20 13:58 --- I just tried with the latest sources for 4.1 and it still ICE with that. Same place same message. It may work on 4.2 and 4.3 but it doesn't work for me on 4.1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31275
[Bug target/29826] __attribute__ dllimport makes optimization crash on cygwin
--- Comment #11 from arcangelpip at hotmail dot com 2007-04-05 13:21 --- I'm sorry to drag this back up again, but it happened again on 4.2. Again it is with the gettext package which seems to love me so much. Using built-in specs. Target: i686-pc-mingw32 Configured with: ../gcc-4.2/configure --prefix=/crosstools/gccwin --target=i686-pc-mingw32 --enable-shared --enable-threads --disable-multilib --disable-nls --enable-languages=c,c++,ada,fortran,objc,obj-c++ --enable-c99 --enable-long-long --enable-sjlj-exceptions --enable-libada --enable-boehm-gc Thread model: win32 gcc version 4.2.0 20070403 (prerelease) It ICEs with the following. make[4]: Entering directory `/mnt/hd2/build/gettextbuild/gettext-tools/src' /bin/sh ../libtool --tag=CC --mode=compile i686-pc-mingw32-gcc -DLOCALEDIR=\"/crosstools/gccwin/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/crosstools/gccwin/share/locale\" -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/crosstools/gccwin/lib/gettext\" -DGETTEXTJAR=\"/crosstools/gccwin/share/gettext/gettext.jar\" -DLIBDIR=\"/crosstools/gccwin/lib\" -DGETTEXTDATADIR=\"/crosstools/gccwin/share/gettext\" -DPROJECTSDIR=\"/crosstools/gccwin/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. -I../../../gettext-0.16.1/gettext-tools/src -I. -I../../../gettext-0.16.1/gettext-tools/src -I.. -I../../../gettext-0.16.1/gettext-tools -I../../../gettext-0.16.1/gettext-tools/libgrep -I../../../gettext-0.16.1/gettext-tools/libuniname -I../gnulib-lib -I../../../gettext-0.16.1/gettext-tools/gnulib-lib -I../intl -I../../../gettext-0.16.1/gettext-tools/../gettext-runtime/intl -I/crosstools/gccwin/include -g -O2 -c -o msgl-check.lo ../../../gettext-0.16.1/gettext-tools/src/msgl-check.c i686-pc-mingw32-gcc -DLOCALEDIR=\"/crosstools/gccwin/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/crosstools/gccwin/share/locale\" -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/crosstools/gccwin/lib/gettext\" -DGETTEXTJAR=\"/crosstools/gccwin/share/gettext/gettext.jar\" -DLIBDIR=\"/crosstools/gccwin/lib\" -DGETTEXTDATADIR=\"/crosstools/gccwin/share/gettext\" -DPROJECTSDIR=\"/crosstools/gccwin/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. -I../../../gettext-0.16.1/gettext-tools/src -I. -I../../../gettext-0.16.1/gettext-tools/src -I.. -I../../../gettext-0.16.1/gettext-tools -I../../../gettext-0.16.1/gettext-tools/libgrep -I../../../gettext-0.16.1/gettext-tools/libuniname -I../gnulib-lib -I../../../gettext-0.16.1/gettext-tools/gnulib-lib -I../intl -I../../../gettext-0.16.1/gettext-tools/../gettext-runtime/intl -I/crosstools/gccwin/include -g -O2 -c ../../../gettext-0.16.1/gettext-tools/src/msgl-check.c -DDLL_EXPORT -DPIC -o .libs/msgl-check.o ../../../gettext-0.16.1/gettext-tools/src/msgl-check.c: In function 'plural_help': ../../../gettext-0.16.1/gettext-tools/src/msgl-check.c:195: error: unrecognizable insn: (insn 40 39 41 6 ../../../gettext-0.16.1/gettext-tools/src/msgl-check.c:180 (set (reg:SI 76) (const:SI (plus:SI (mem:SI (symbol_ref:SI ("#i.plural_table") ) [0 S4 A8]) (const_int 4 [0x4] -1 (nil) (nil)) ../../../gettext-0.16.1/gettext-tools/src/msgl-check.c:195: internal compiler error: in extract_insn, at recog.c:2077 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. I configured gettext with ../gettext-0.16.1/configure --prefix=/crosstools/gccwin --build=i686-pc-linux-gnu --host=i686-pc-mingw32 --disable-java --disable-native-java --with-libiconv-prefix=/crosstools/gccwin --disable-threads --disable-openmp If I am doing anything wrong here I'm open to suggestions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29826
[Bug target/29826] __attribute__ dllimport makes optimization crash on cygwin
--- Comment #13 from arcangelpip at hotmail dot com 2007-04-18 14:34 --- I'm going to try again since it seems my last post was just ignored. The test case works fine on 4.2 but it still occurs under some circumstances. As I stated in my previous post Gettext is where it dies but I can compile the original test case with no problems. The compiler I am using is a linux to mingw cross compiler configured as I stated below. It was built from mondays source with a 4.2 bootstrap compiler and binutils 2.17. To reiterate, the simple testcase works fine, but I still have this bug appear while compiling gettext using the cross compiler targetted at mingw. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29826
[Bug tree-optimization/31636] New: ICE in GCC 4.2 with dllimport attribute returns
I know this is being reported again, but this seems to be occuring again after being fixed. This is the same bug that was reported in #29826 but it has now happened again in gcc-4.2. The test program is essentially the same as was given in the old version. # 1 "test.c" # 1 "" # 1 "" # 1 "test.c" struct s { const char *x1; const char *x2; }; extern __attribute__((dllimport)) struct s v[]; int z(); int f() { int i; for (i = 0; i < 2; i++) { z(v[i].x2); } return 0; } The error output which occurs is. test.c: In function 'f': test.c:19: error: unrecognizable insn: (insn 15 13 16 3 (set (reg/f:SI 64) (const:SI (plus:SI (mem:SI (symbol_ref:SI ("#i.v") ) [0 S4 A8]) (const_int 4 [0x4] -1 (nil) (nil)) test.c:19: internal compiler error: in extract_insn, at recog.c:2077 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. And my gcc information is. Using built-in specs. Target: i686-pc-mingw32 Configured with: ../gcc-4.2/configure --target=i686-pc-mingw32 --prefix=/crosstools/gccwin-4.2 --enable-shared --enable-threads --disable-nls --disable-multilib --enable-c99 --enable-long-long --enable-sjlj-exceptions --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --enable-libada --enable-boehm-gc Thread model: win32 gcc version 4.2.0 20070419 (prerelease) I have tried to report this using the old thread twice now, but it hasn't been replied to so I decided to start a new bug report for it, forgive me if I made a mistake. -- Summary: ICE in GCC 4.2 with dllimport attribute returns Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: arcangelpip at hotmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31636
[Bug target/31636] ICE in GCC 4.2 with dllimport attribute returns
--- Comment #1 from arcangelpip at hotmail dot com 2007-04-19 19:51 --- Forgot to mention, it works the same as before. If the optimisations are removed then it will compile, but if you have -O1 -O2 or -O3 in the command line then it will ICE. Also, if the dllimport is removed then it will work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31636
[Bug target/31636] ICE in GCC 4.2 with dllimport attribute returns
--- Comment #2 from arcangelpip at hotmail dot com 2007-04-19 19:55 --- Forgot to mention 2. -_-; memory is getting worse, I'm sure of it. Command line used. With the executable in the path. i686-pc-mingw32-gcc -c -O2 -o test.o test.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31636
[Bug target/29826] __attribute__ dllimport makes optimization crash on cygwin
--- Comment #15 from arcangelpip at hotmail dot com 2007-04-20 17:06 --- Don't you just hate idiots in these cases. (Yes, I am referring to myself here) Well, it's completely broken again on my system, look here. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31636 I apologise for being less than helpful here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29826
[Bug target/29826] __attribute__ dllimport makes optimization crash on cygwin
--- Comment #17 from arcangelpip at hotmail dot com 2007-04-23 20:51 --- Yup, that did it. Building the cross compiler with that patch fixed the test case ICE and the one I kept getting from gettext. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29826