aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Khrustalev <yury.khrustalev@arm.com>2024-11-29 11:09:23 +0000
committerYury Khrustalev <yury.khrustalev@arm.com>2024-11-29 16:30:51 +0000
commitf3ee8bc1cb19a3a173b1caba01de9adfd93157ec (patch)
tree06084053b2defabd26caba61358ca47a4bd65318
parentf42fd8e9335354f986d69b92ab66be07cc31bc7a (diff)
downloadgcc-f3ee8bc1cb19a3a173b1caba01de9adfd93157ec.zip
gcc-f3ee8bc1cb19a3a173b1caba01de9adfd93157ec.tar.gz
gcc-f3ee8bc1cb19a3a173b1caba01de9adfd93157ec.tar.bz2
aarch64: Fix build failure due to missing header
Including the "arm_acle.h" header in aarch64-unwind.h requires stdint.h to be present and it may not be available during the first stage of cross-compilation of GCC. When cross-building GCC for the aarch64-none-linux-gnu target (on any supporting host) using the 3-stage bootstrap build process when we build native compiler from source, libgcc fails to compile due to missing header that has not been installed yet. This could be worked around but it's better to fix the issue. libgcc/ChangeLog: * config/aarch64/aarch64-unwind.h (_CHKFEAT_GCS): Add.
-rw-r--r--libgcc/config/aarch64/aarch64-unwind.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgcc/config/aarch64/aarch64-unwind.h b/libgcc/config/aarch64/aarch64-unwind.h
index 85468f96..d11753a 100644
--- a/libgcc/config/aarch64/aarch64-unwind.h
+++ b/libgcc/config/aarch64/aarch64-unwind.h
@@ -29,7 +29,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "ansidecl.h"
#include <stdbool.h>
-#include <arm_acle.h>
#define AARCH64_DWARF_REGNUM_RA_STATE 34
#define AARCH64_DWARF_RA_STATE_MASK 0x1
@@ -180,7 +179,7 @@ aarch64_demangle_return_addr (struct _Unwind_Context *context,
}
/* GCS enable flag for chkfeat instruction. */
-
+#define _CHKFEAT_GCS 1
/* SME runtime function local to libgcc, streaming compatible
and preserves more registers than the base PCS requires, but
we don't rely on that here. */