summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Orazov <v.orazov@partner.samsung.com>2024-10-17 19:28:14 +0300
committerDongkyun Son <dongkyun.s@samsung.com>2024-10-22 20:40:52 +0900
commitfd674a5c5740cd054c4aca906df7c320bf13fb59 (patch)
tree84ac3ddfecd424dee367e200b3edf73e86401ca7
parent57fbac0248205aeb8ba739df8e3c2072c587569b (diff)
downloadgcc-sandbox/dkson95/configure.tar.gz
gcc-sandbox/dkson95/configure.tar.bz2
gcc-sandbox/dkson95/configure.zip
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.h2
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>)