diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2025-07-15 08:56:31 -0700 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2025-07-15 09:08:20 -0700 |
commit | f307ab8b18c7b5623344b01f24af593594319196 (patch) | |
tree | c79c49c0ba12c853073ecc5c4d5348108988b494 /libstdc++-v3/testsuite/std | |
parent | e28494e08092c4096a015563c0ba0494ce1edf81 (diff) | |
download | gcc-f307ab8b18c7b5623344b01f24af593594319196.zip gcc-f307ab8b18c7b5623344b01f24af593594319196.tar.gz gcc-f307ab8b18c7b5623344b01f24af593594319196.tar.bz2 |
libgcc: Fix aarch64 build
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".
libgcc/config/libbid/ChangeLog:
* bid_binarydecimal.c (__mul_10x256_to_256): Mark c3 as being
used.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'libstdc++-v3/testsuite/std')
0 files changed, 0 insertions, 0 deletions