Re: Fix ICE in ipa-cp when mixing -O0 and -O2 code in LTO

2019-11-12 Thread Jan Hubicka
> > this fixes second ICE seen during profiledbootstrap with Ada enabled. > > The problem is that Ada builds some object files with -O2 -O0 (not sure > > why) and these functions get flag_ipa_cp but !optimize. > > # Compile s-excdeb.o without optimization and with debug info to let the > # debu

Re: Fix ICE in ipa-cp when mixing -O0 and -O2 code in LTO

2019-11-12 Thread Eric Botcazou
> this fixes second ICE seen during profiledbootstrap with Ada enabled. > The problem is that Ada builds some object files with -O2 -O0 (not sure > why) and these functions get flag_ipa_cp but !optimize. # Compile s-excdeb.o without optimization and with debug info to let the # debugger set bre

Fix ICE in ipa-cp when mixing -O0 and -O2 code in LTO

2019-11-12 Thread Jan Hubicka
Hi, this fixes second ICE seen during profiledbootstrap with Ada enabled. The problem is that Ada builds some object files with -O2 -O0 (not sure why) and these functions get flag_ipa_cp but !optimize. Because of -O0 ipa-cp pass is not run at compile time and summaries are never produced. So In a