> On 24 Apr 2025, at 12:09, Jakub Jelinek <ja...@redhat.com> wrote:
> 
> On Thu, Apr 24, 2025 at 09:54:09AM +0000, Kyrylo Tkachov wrote:
>>> I'd have expected instead of the LTO_PARTITION_DEFAULT checks one should be
>>> testing !opts_set->x_flag_lto_partition (i.e. -flto-partition=balanced
>>> should be the default, but when not specified explicitly, it would really
>>> match that
>>>      error ("%<-fipa-reorder-for-locality%> is incompatible with"           
>>>                                                                             
>>>                            
>>>             " an explicit %qs option", "-flto-partition");                  
>>>                                                                             
>>>                            
>>> error wording (right now -fipa-reorder-for-locality -flto-partition=default
>>> is explicit, yet no error is emittetd).
>> 
>> Yes, I think I was confused about the use of opts_set. This is overly 
>> convoluted.
>> So something like this?
> 
> Yes, though I'd also remove the trailing comma after
>   LTO_PARTITION_CACHE = 5

Right, ok to commit this to trunk and GCC 15 branch once bootstrap is 
successful?
Thanks,
Kyrill


> 
>> Checked manually that the required error is given, the default selected 
>> partitioning is balanced, and an explicit -flto-partition=max selects it 
>> properly.
>> Running a full bootstrap cycle now.
> 
> Jakub
> 

Attachment: 0001-opts.cc-Simplify-handling-of-explicit-flto-partition.patch
Description: 0001-opts.cc-Simplify-handling-of-explicit-flto-partition.patch

Reply via email to