On Thu, Jan 29, 2026 at 09:49:40AM +0100, Richard Biener via Gcc wrote:
> On Wed, Jan 28, 2026 at 4:43 PM Qing Zhao via Gcc <[email protected]> wrote:
> > Does GCC provide any option to record optimization information, such as
> > inlining, loop transformation,
> > profiling consistency, etc into specific sections of binary code?
>
> No.
Well, inlining is recorded in debug info. And I don't see what benefit
woiuld be to encode the rest, without source information like that is not
really useful and with source around you can always recompile and look for
compiler dumps or opt info, debug info provides details how a particular
TU has been compiled (with what options etc.).
Jakub