public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3294] Fix arm target build with inhibit_libc
@ 2021-09-01 15:51 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2021-09-01 15:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7a6f40d0452ec76e126c2612dcfa32f3c73e2315
commit r12-3294-g7a6f40d0452ec76e126c2612dcfa32f3c73e2315
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Mon Aug 30 13:52:11 2021 +0200
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.
Diff:
---
libgcc/unwind-arm-common.inc | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libgcc/unwind-arm-common.inc b/libgcc/unwind-arm-common.inc
index c9b70c10d4f..77ec02ec811 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-01 15:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 15:51 [gcc r12-3294] Fix arm target build with inhibit_libc Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).