On Wed, Apr 21, 2010 at 9:03 PM, Adrian von Bidder <avbid...@fortytwo.ch> wrote: > Heyho! > > I strongly suspect that mixing -flto and -g might not be a well supported > option right now ... > > Still I also suspect an ICE is not supposed to happen. (I was trying to > recompile Debian's KDE packages with -flto; the packaging by default uses -g - > O2)
Indeed LTO and -g are very experimental (especially for C++ code). Richard. > gcc Debian package 4.5.0-2 on amd64 (x86-64) > > +++ > $ gcc-4.5 --version > gcc-4.5 (Debian 4.5.0-2) 4.5.1 20100419 (prerelease) > Copyright (C) 2010 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > $ /usr/bin/g++-4.5 -O0 -g -flto -o kfinddialog.o -c kfinddialog.ii > ../../kdeui/findreplace/kfinddialog.cpp: In member function ‘RegExpAction’: > ../../kdeui/findreplace/kfinddialog.cpp:445:9: internal compiler error: tree > check: expected class ‘type’, have ‘declaration’ (function_decl) in > gen_type_die_with_usage, at dwarf2out.c:18962 > +++ > > Omitting either -flto or -g allows compiling successfully. > > kfinddialog.ii at http://fortytwo.ch/~avbidder/kfinddialog.ii.gz since it's > 170k even compressed. Sorry, I don't know enough C++ to even begin to reduce > it; also, seeing as the Debian package seems to be built from a prerelease I'm > not sure if this report is interesting. > > cheers > -- vbi > > -- > I have opinions of my own - strong opinions - but I don't always agree > with them. > -- George W. Bush >