This is the mail archive of the gcc@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]

ICE: -flto and -g


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

Attachment: signature.asc
Description: This is a digitally signed message part.


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