[Bug regression/50999] [4.7 Regression]: g++.dg/lto/20081109 execute -O2 -flto -flto-partition=1to1 -fno-use-linker-plugin

hp at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 7 21:28:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50999

--- Comment #3 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-11-07 21:24:59 UTC ---
(In reply to comment #2)
> Created attachment 25734 [details]
> proposed patch
> 
> Hm, on x86_64 the EH table is not empty (look at g++.dg/lto/20081109_1.C,
> the usual symtom is that the LTOed unit for that file does not contain
> info to unwind from the throw - can you confirm that?).  The key is that
> lto_init_eh() has to be called for that unit - previously we saved
> flag_exceptions but now we only save explicit -fexceptions (thus, you
> can verify if explicitly adding that option to the compile command line
> fixes the issue).
> 
> Does the attached patch help?  It tries to start to address the (yet unsolved)
> issue of preserving lang-dependent options.

I'll throw this patch to a test session - but I thought you mentioned you have
access to powerpc-linux, wouldn't it be more productive for you to debug there?



More information about the Gcc-bugs mailing list