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) 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
signature.asc
Description: This is a digitally signed message part.