aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-30 13:52:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-01 17:50:00 +0200
commit7a6f40d0452ec76e126c2612dcfa32f3c73e2315 (patch)
treeaf3db2942ee357b2f17971efcf7e8a5027e4c66b
parent424e46015762920b37e23670b7c518d9891348ed (diff)
downloadgcc-7a6f40d0452ec76e126c2612dcfa32f3c73e2315.zip
gcc-7a6f40d0452ec76e126c2612dcfa32f3c73e2315.tar.gz
gcc-7a6f40d0452ec76e126c2612dcfa32f3c73e2315.tar.bz2
Fix arm target build with inhibit_libc
Do not declare abort in "libgcc/unwind-arm-common.inc" since it is already provided by "tsystem.h". It fixes the following build error: In file included from libgcc/config/arm/unwind-arm.c:144: libgcc/unwind-arm-common.inc:55:24: error: macro "abort" passed 1 arguments, but takes just 0 55 | extern void abort (void); libgcc/ * unwind-arm-common.inc (abort): Remove.
-rw-r--r--libgcc/unwind-arm-common.inc4
1 files changed, 0 insertions, 4 deletions
diff --git a/libgcc/unwind-arm-common.inc b/libgcc/unwind-arm-common.inc
index c9b70c1..77ec02e 100644
--- a/libgcc/unwind-arm-common.inc
+++ b/libgcc/unwind-arm-common.inc
@@ -50,10 +50,6 @@
#define ARM_SIGCONTEXT_R0 0xc
#endif
-/* We add a prototype for abort here to avoid creating a dependency on
- target headers. */
-extern void abort (void);
-
/* Definitions for C++ runtime support routines. We make these weak
declarations to avoid pulling in libsupc++ unnecessarily. */
typedef unsigned char bool;