[PATCH v4] assert: Refactor assert/assert_perror
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Thu Oct 2 11:59:59 GMT 2025
On 02/10/25 05:53, Yury Khrustalev wrote:
> On Wed, Oct 01, 2025 at 03:01:12PM -0300, Adhemerval Zanella Netto wrote:
>>
>> On 26/09/25 07:44, Yury Khrustalev wrote:
>>>
>>> This change causes compilation error when compiling with -Og:
>>>
>>> ...
>>>
>> Right, I haven't see it because this is not an usual compiler option.
>>
>>> ...
>>
>>> I think this should also have __attribute__ ((__always_inline__)) to
>>> make use of __builtin_va_arg_pack_len() valid for all optimisation
>>> levels.
>>
>> It seems reasonable, although I think we will need to fix other issues
>> to fully enable -Og support. With gcc 15.1 I am seeing some build issues
>> with -Werror:
>
> -Og is the optimisation option recommended by GCC manual when you cannot
> use -O0 (as in the case of Glibc). It would be good to have it fixed
> before addressing other issues that indeed can be worked around with
> -Wno-error. Current state makes debugging difficult.
Yes, but usually to 'support' an optimization mode we focus on default
configuration option (no --disable-werror). Similar to recent -Os fixes.
In any case, I think we should fix it. I will try to take a look at this.
More information about the Libc-alpha
mailing list