[PATCH v4] assert: Refactor assert/assert_perror

Yury Khrustalev yury.khrustalev@arm.com
Thu Oct 2 08:53:37 GMT 2025


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.

Thanks,
Yury



More information about the Libc-alpha mailing list