[resending to the list, I think there might have been an error with the 
previous message]

Hi all,

This is a thinko in the logic for handling the default -flto-partition=
arguments. We should override it to balanced only if it stayed as default
up to that point. We should also be testing opts instead of opts_set here.

Bootstrapped and tested on aarch64-none-linux-gnu.

Ok for trunk? Sorry for the late patch, but I guess we want this in the GCC 15 
branch as well.
Thanks,
Kyrill

Signed-off-by: Kyrylo Tkachov <ktkac...@nvidia.com>

gcc/

        * opts.cc (finish_options): Check for == against LTO_PARTITION_DEFAULT
        before setting LTO_PARTITION_BALANCED.

Attachment: 0001-opts.cc-Fix-thinko-with-default-handling-of-flto-par.patch
Description: 0001-opts.cc-Fix-thinko-with-default-handling-of-flto-par.patch

Reply via email to