public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/54752] New: lto-wrapper: internal compiler error in convert_move at expr.c:327
@ 2012-09-29 14:06 leith at leithalweapon dot geek.nz
2012-10-01 10:13 ` [Bug lto/54752] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: leith at leithalweapon dot geek.nz @ 2012-09-29 14:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54752
Bug #: 54752
Summary: lto-wrapper: internal compiler error in convert_move
at expr.c:327
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: leith@leithalweapon.geek.nz
Created attachment 28300
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28300
Output of -save-temps
When I compile latest pngquant with LTO I get the error:
In file included from :19:0:
mediancut.c: In function 'adjust_histogram.isra.2':
mediancut.c:403:13: internal compiler error: in convert_move, at expr.c:327
lto-wrapper: C:\MinGW\bin\gcc.exe returned 1 exit status
Happens with both stock MinGW 4.7.0 (current release from website) and latest
4.7.2 from MinGW-builds website.
Complete output:
$ gcc -v -save-temps pngquant.o rwpng.o pam.o mediancut.o blur.o mempool.o
viter.o nearest.o -L../libpng -L../zlib -lpng -lz -lm -flto -o pngquant
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../mingw-sources/gcc-4.7.2/configure
--host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32
--prefix=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32
--with-sysroot=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32
--enable-shared --enable-static --enable-targets=all --enable-multilib
--enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes
--enable-threads=posix --enable-libgomp --enable-lto --enable-graphite
--enable-cloog-backend=isl --enable-checking=release
--enable-fully-dynamic-string --enable-version-specific-runtime-libs
--enable-sjlj-exceptions --disable-ppl-version-check
--disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug
--disable-bootstrap --disable-rpath --disable-win32-registry --disable-nls
--disable-werror --disable-symvers --with-gnu-as --with-gnu-ld
--with-tune=generic --with-host-libstdcxx='-static -lstdc++' --with-libiconv
--with-gmp=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-mpfr=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-mpc=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-ppl=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-cloog=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-pkgversion='Built by MinGW-builds project'
--with-bugurl=http://sourceforge.net/projects/mingwbuilds/ CFLAGS='-O2 -pipe
-fomit-frame-pointer
-I/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32/include'
CXXFLAGS='-O2 -pipe -fomit-frame-pointer' CPPFLAGS= LDFLAGS='-pipe -s
-L/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32/lib
-L/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32/bin'
Thread model: posix
gcc version 4.7.2 (Built by MinGW-builds project)
COMPILER_PATH=c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/
LIBRARY_PATH=c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-L../libpng' '-L../zlib' '-flto' '-o'
'pngquant.exe' '-mtune=generic' '-march=pentiumpro'
c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/collect2.exe -plugin
c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/liblto_plugin-0.dll
-plugin-opt=c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/lto-wrapper.exe
-plugin-opt=-fresolution=-lm.res -plugin-opt=-pass-through=-lmingw32
-plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex
-plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread
-plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32
-plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32
-plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32
-plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex
-plugin-opt=-pass-through=-lmsvcrt -flto
--sysroot=D:/msys/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32 -m
i386pe -Bdynamic -o pngquant.exe
c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib/crt2.o
c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/crtbegin.o -L../libpng -L../zlib
-Lc:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2 -Lc:/mingw/bin/../lib/gcc
-Lc:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib
-Lc:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../lib
-Lc:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib
-Lc:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../.. pngquant.o rwpng.o
pam.o mediancut.o blur.o mempool.o viter.o nearest.o -lpng -lz -lm -lmingw32
-lgcc_eh -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32
-luser32 -lkernel32 -liconv -lmingw32 -lgcc_eh -lgcc -lmoldname -lmingwex
-lmsvcrt c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/crtend.o
C:\MinGW\bin\gcc.exe @C:\Users\LEITHB~1\AppData\Local\Temp\ccYg1XXh.args
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
Target: i686-w64-mingw32
Configured with: ../../mingw-sources/gcc-4.7.2/configure
--host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32
--prefix=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32
--with-sysroot=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32
--enable-shared --enable-static --enable-targets=all --enable-multilib
--enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes
--enable-threads=posix --enable-libgomp --enable-lto --enable-graphite
--enable-cloog-backend=isl --enable-checking=release
--enable-fully-dynamic-string --enable-version-specific-runtime-libs
--enable-sjlj-exceptions --disable-ppl-version-check
--disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug
--disable-bootstrap --disable-rpath --disable-win32-registry --disable-nls
--disable-werror --disable-symvers --with-gnu-as --with-gnu-ld
--with-tune=generic --with-host-libstdcxx='-static -lstdc++' --with-libiconv
--with-gmp=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-mpfr=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-mpc=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-ppl=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-cloog=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-pkgversion='Built by MinGW-builds project'
--with-bugurl=http://sourceforge.net/projects/mingwbuilds/ CFLAGS='-O2 -pipe
-fomit-frame-pointer
-I/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32/include'
CXXFLAGS='-O2 -pipe -fomit-frame-pointer' CPPFLAGS= LDFLAGS='-pipe -s
-L/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32/lib
-L/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32/bin'
Thread model: posix
gcc version 4.7.2 (Built by MinGW-builds project)
COLLECT_GCC_OPTIONS='-c' '-march=barcelona' '-v' '-save-temps' '-L../libpng'
'-L../zlib' '-mtune=generic' '-march=pentiumpro' '-dumpdir' './' '-dumpbase'
'pngquant.exe.wpa' '-fltrans-output-list=pngquant.exe.ltrans.out' '-fwpa'
'-fresolution=-lm.res'
c:/mingw/lib/gcc/../../libexec/gcc/i686-w64-mingw32/4.7.2/lto1.exe -quiet
-dumpdir ./ -dumpbase pngquant.exe.wpa -march=barcelona -mtune=generic
-march=pentiumpro -auxbase pngquant -version
-fltrans-output-list=pngquant.exe.ltrans.out -fwpa -fresolution=-lm.res
@C:\Users\LEITHB~1\AppData\Local\Temp\ccGBRXjl
GNU GIMPLE (Built by MinGW-builds project) version 4.7.2 (i686-w64-mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1, MPC
version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (Built by MinGW-builds project) version 4.7.2 (i686-w64-mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1, MPC
version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COMPILER_PATH=c:/mingw/lib/gcc/../../libexec/gcc/i686-w64-mingw32/4.7.2/;c:/mingw/lib/gcc/../../libexec/gcc/;c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/;c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/
LIBRARY_PATH=c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib/../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../lib/../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/;c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../
COLLECT_GCC_OPTIONS='-c' '-march=barcelona' '-v' '-save-temps' '-L../libpng'
'-L../zlib' '-mtune=generic' '-march=pentiumpro' '-dumpdir' './' '-dumpbase'
'pngquant.exe.wpa' '-fltrans-output-list=pngquant.exe.ltrans.out' '-fwpa'
'-fresolution=-lm.res'
[Leaving LTRANS C:\Users\LEITHB~1\AppData\Local\Temp\ccYg1XXh.args]
[Leaving LTRANS pngquant.exe.ltrans.out]
C:\MinGW\bin\gcc.exe @C:\Users\LEITHB~1\AppData\Local\Temp\ccEaqrnI.args
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
Target: i686-w64-mingw32
Configured with: ../../mingw-sources/gcc-4.7.2/configure
--host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32
--prefix=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32
--with-sysroot=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32
--enable-shared --enable-static --enable-targets=all --enable-multilib
--enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes
--enable-threads=posix --enable-libgomp --enable-lto --enable-graphite
--enable-cloog-backend=isl --enable-checking=release
--enable-fully-dynamic-string --enable-version-specific-runtime-libs
--enable-sjlj-exceptions --disable-ppl-version-check
--disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug
--disable-bootstrap --disable-rpath --disable-win32-registry --disable-nls
--disable-werror --disable-symvers --with-gnu-as --with-gnu-ld
--with-tune=generic --with-host-libstdcxx='-static -lstdc++' --with-libiconv
--with-gmp=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-mpfr=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-mpc=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-ppl=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-cloog=/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32
--with-pkgversion='Built by MinGW-builds project'
--with-bugurl=http://sourceforge.net/projects/mingwbuilds/ CFLAGS='-O2 -pipe
-fomit-frame-pointer
-I/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32/include'
CXXFLAGS='-O2 -pipe -fomit-frame-pointer' CPPFLAGS= LDFLAGS='-pipe -s
-L/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-libs-x32/lib
-L/home/nixman/gcc-4.7.2-buildroot/mingw-gcc-4.7.2-sjlj-x32/bin'
Thread model: posix
gcc version 4.7.2 (Built by MinGW-builds project)
COLLECT_GCC_OPTIONS='-c' '-march=barcelona' '-v' '-save-temps' '-L../libpng'
'-L../zlib' '-mtune=generic' '-march=pentiumpro' '-dumpdir' './' '-dumpbase'
'pngquant.exe.ltrans0' '-fltrans' '-o' 'pngquant.exe.ltrans0.ltrans.o'
c:/mingw/lib/gcc/../../libexec/gcc/i686-w64-mingw32/4.7.2/lto1.exe -quiet
-dumpdir ./ -dumpbase pngquant.exe.ltrans0 -march=barcelona -mtune=generic
-march=pentiumpro -auxbase-strip pngquant.exe.ltrans0.ltrans.o -version
-fltrans @C:\Users\LEITHB~1\AppData\Local\Temp\ccEw6eDq -o
pngquant.exe.ltrans0.s
GNU GIMPLE (Built by MinGW-builds project) version 4.7.2 (i686-w64-mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1, MPC
version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (Built by MinGW-builds project) version 4.7.2 (i686-w64-mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1, MPC
version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
In file included from :19:0:
mediancut.c: In function 'adjust_histogram.isra.2':
mediancut.c:403:13: internal compiler error: in convert_move, at expr.c:327
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://sourceforge.net/projects/mingwbuilds/> for instructions.
lto-wrapper: C:\MinGW\bin\gcc.exe returned 1 exit status
[Leaving LTRANS C:\Users\LEITHB~1\AppData\Local\Temp\ccEaqrnI.args]
[Leaving LTRANS pngquant.exe.ltrans0.o]
[Leaving LTRANS pngquant.exe.ltrans1.o]
[Leaving LTRANS pngquant.exe.ltrans2.o]
[Leaving LTRANS pngquant.exe.ltrans3.o]
[Leaving LTRANS pngquant.exe.ltrans4.o]
c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe:
lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/54752] lto-wrapper: internal compiler error in convert_move at expr.c:327
2012-09-29 14:06 [Bug lto/54752] New: lto-wrapper: internal compiler error in convert_move at expr.c:327 leith at leithalweapon dot geek.nz
@ 2012-10-01 10:13 ` rguenth at gcc dot gnu.org
2012-10-01 10:40 ` leith at leithalweapon dot geek.nz
2012-10-01 12:46 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-01 10:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54752
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2012-10-01
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-10-01 10:13:14 UTC ---
If you compiled the *.o files with optimization also enable optimization at
link-time.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/54752] lto-wrapper: internal compiler error in convert_move at expr.c:327
2012-09-29 14:06 [Bug lto/54752] New: lto-wrapper: internal compiler error in convert_move at expr.c:327 leith at leithalweapon dot geek.nz
2012-10-01 10:13 ` [Bug lto/54752] " rguenth at gcc dot gnu.org
@ 2012-10-01 10:40 ` leith at leithalweapon dot geek.nz
2012-10-01 12:46 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: leith at leithalweapon dot geek.nz @ 2012-10-01 10:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54752
--- Comment #2 from Leith Bade <leith at leithalweapon dot geek.nz> 2012-10-01 10:40:18 UTC ---
Yes that did fix the problem.
Still it would be nice if the compiler said that rather than just crash with a
cryptic error.
Perhaps the linker should check that the same optimisations are being used for
both compiling and linking. It could then print a useful error message to that
effect.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/54752] lto-wrapper: internal compiler error in convert_move at expr.c:327
2012-09-29 14:06 [Bug lto/54752] New: lto-wrapper: internal compiler error in convert_move at expr.c:327 leith at leithalweapon dot geek.nz
2012-10-01 10:13 ` [Bug lto/54752] " rguenth at gcc dot gnu.org
2012-10-01 10:40 ` leith at leithalweapon dot geek.nz
@ 2012-10-01 12:46 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-01 12:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54752
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |i686-w64-mingw32
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-10-01 12:46:27 UTC ---
(In reply to comment #2)
> Yes that did fix the problem.
>
> Still it would be nice if the compiler said that rather than just crash with a
> cryptic error.
Even it is usually not what you intend (linking without optimization) it is
a feature and thus your report is a real bug - I just went for the easy
workaround ;)
> Perhaps the linker should check that the same optimisations are being used for
> both compiling and linking. It could then print a useful error message to that
> effect.
There is already a bug about LTO option handling - short summary: it's not
that easy ;)
I don't see that anyone will take your LTRANS binaries and do anything
useful with them ... we'd have prefered a reduced set of preprocessed input
sources and a way to reproduce the issue with partial linking (not sure
if that works on mingw ... heh).
Thus,
gcc -c *.i $flags -flto
gcc *.o -r -nostdlibs -flto
crashing the same way (then reduce to the set of preprocessed files that
are required to make it crash). Preferably then reducing the remaining
files.
But I see you got the desired workaround, so let's move on. Closing as
WORKSFORME.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-01 12:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-29 14:06 [Bug lto/54752] New: lto-wrapper: internal compiler error in convert_move at expr.c:327 leith at leithalweapon dot geek.nz
2012-10-01 10:13 ` [Bug lto/54752] " rguenth at gcc dot gnu.org
2012-10-01 10:40 ` leith at leithalweapon dot geek.nz
2012-10-01 12:46 ` 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).