https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110963

--- Comment #6 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 10 Aug 2023, theodort at inf dot ethz.ch wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110963
> 
> --- Comment #5 from Theodoros Theodoridis <theodort at inf dot ethz.ch> ---
> (In reply to Richard Biener from comment #4)
> > Alternatively you can put __attribute__((hot)) on 'main' which we otherwise
> > consider cold.  Maybe that's a good idea for future DCE regression searches?
> 
> 
> Thanks for the feedback. IIRC, I have reported at least one more case where
> renaming 'main' would make the issue go away. So if adding 
> __attribute__((hot))
> makes sense, then I'll include it when searching.

I think it makes sense, it properly distinguishes -Os from -O2 where
otherwise those would behave too similar.

Reply via email to