On Tue, Jul 15, 2025 at 09:02:09AM -0700, Andrew Pinski wrote:
> For aarch64, libgcc is built with -Werror, after the latest
> -Wunused-but-set* commit (r16-2258-g0eac9cfee8cb0b21d), a new warning
> showed up:
> ```
> ../../../gcc/libgcc/config/libbid/bid_binarydecimal.c: In function
> ‘__binary32_to_bid128’:
> ../../../gcc/libgcc/config/libbid/bid_binarydecimal.c:130:31: error:
> variable ‘c3’ set but not used [-Werror=unused-but-set-variable=]
>   130 | { unsigned long long c0,c1,c2,c3;                               \
>       |                               ^~
> ../../../gcc/libgcc/config/libbid/bid_binarydecimal.c:146842:5: note:
> in expansion of macro ‘__mul_10x256_to_256’
> 146842 |     __mul_10x256_to_256 (z.w[5], z.w[4], z.w[3], z.w[2],
> z.w[5], z.w[4],
>        |     ^~~~~~~~~~~~~~~~~~~
> ```
> 
> This fixes it by casting c3 to void after the last __mul_10x64 in
> __mul_10x256_to_256 macro to mark it as being "used".
> 
> 
> OK?
> 
> libgcc/config/libbid/ChangeLog:
> 
>       * bid_binarydecimal.c (__mul_10x256_to_256): Mark c3 as being
>       used.
> 
> Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Ok (just posted the same patch ;) ).

        Jakub

Reply via email to