diff options
author | Vitalii Orazov <v.orazov@partner.samsung.com> | 2024-10-17 19:28:14 +0300 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2024-10-22 20:40:52 +0900 |
commit | fd674a5c5740cd054c4aca906df7c320bf13fb59 (patch) | |
tree | 84ac3ddfecd424dee367e200b3edf73e86401ca7 | |
parent | 57fbac0248205aeb8ba739df8e3c2072c587569b (diff) | |
download | gcc-sandbox/dkson95/configure.tar.gz gcc-sandbox/dkson95/configure.tar.bz2 gcc-sandbox/dkson95/configure.zip |
libatomic: build with ILP32 throws shift-count-overflow erroraccepted/tizen/base/toolchain/20241022.235618sandbox/dkson95/configureaccepted/tizen_base_toolchain
in the gcc macros HWCAP2_LSE128 is set using a UL cast, # define HWCAP2_LSE128 (1UL << 47).
When we compile for ILP32, UnsignedLong is 32 bits and this error occurs:
host-config.h:37:30: error: left shift count >= width of type [-Werror=shift-count-overflow]
37 | # define HWCAP2_LSE128 (1UL << 47)
* libatomic/config/linux/aarch64/host-config.h: explicit 64-bit type specify (ULL) for HWCAP2_LSE128.
Change-Id: Ie4b83202aa4c17c72a9e418500cd069686c8aaee
-rw-r--r-- | libatomic/config/linux/aarch64/host-config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libatomic/config/linux/aarch64/host-config.h b/libatomic/config/linux/aarch64/host-config.h index e1a699948f4..5ddbff9c60f 100644 --- a/libatomic/config/linux/aarch64/host-config.h +++ b/libatomic/config/linux/aarch64/host-config.h @@ -34,7 +34,7 @@ # define HWCAP_USCAT (1 << 25) #endif #ifndef HWCAP2_LSE128 -# define HWCAP2_LSE128 (1UL << 47) +# define HWCAP2_LSE128 (1ULL << 47) #endif #if __has_include(<sys/ifunc.h>) |