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

--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Matthias Klose from comment #0)
> seen with trunk 20240101, building the poedit package with -flto.
> 
> hints where to start the reduction are appreciated.
> 

First, take the link command and see if you can prune any objects and still get
the ICE (you can automate this with cvise but it's often not worth bothering,
but see https://wiki.gentoo.org/wiki/GCC_ICE_reporting_guide#LTO_example for an
example)

Once you identify the relevant objects, check if any of them are archives, and
expand them with e.g. 'ar x', replacing them in the link line.

You can then try to replace them with preprocessed versions and LTO those, and
see if it still fails.

Reply via email to