]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix arm target build with inhibit_libc
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 30 Aug 2021 11:52:11 +0000 (13:52 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 1 Sep 2021 15:50:00 +0000 (17:50 +0200)
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.

libgcc/unwind-arm-common.inc

index c9b70c10d4f5d793af2d08162ac565cc91294adf..77ec02ec811ecbaba3079428f79596d5708bf320 100644 (file)
 #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;