This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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") <var_decl
0x402449f8 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 <URL: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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]