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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
So just to confirm.  You have a set of TUs TA that are built with
-fprofile-generate, lined into some application A and profile is generated for
those.
Then you have application B that re-uses object files from TA plus adds
TUs from a set TB, built without -fprofile-generate, and when linking those
together with LTO and -fprofile-use this ICEs.

But when compiling the TB TUs with -fno-profile-use but still using
-fprofile-use at link time(?) this avoids the ICE?

In principle there's nothing wrong with using -fprofile-use for TUs without
any training data.

If you can share libxxx.so.ltrans13.ltrans.o (the LTRANS IL) this might
be a reproducer people can work with if you are on an unpatched GCC 15.2
and for example on x86_64-linux.

Reply via email to