Re: [PATCH] Use __builtin_trap() for abort() if inhibit_libc

2023-07-21 Thread Andrew Pinski via Gcc-patches
On Tue, Aug 17, 2021 at 1:43 AM Sebastian Huber wrote: > > abort() is used in gcc_assert() and gcc_unreachable() which is used by target > libraries such as libgcov.a. This patch changes the abort() definition under > certain conditions. If inhibit_libc is defined and abort is not already >

Re: [PATCH] Use __builtin_trap() for abort() if inhibit_libc

2021-08-30 Thread Sebastian Huber
On 30/08/2021 13:44, Richard Biener wrote: On Mon, Aug 30, 2021 at 12:55 PM Sebastian Huber wrote: Hello Christophe, it seems there are a couple of more abort() declarations: libgcc/unwind-arm-common.inc:extern void abort (void); libgcc/config/c6x/pr-support.c:extern void abort (void);

Re: [PATCH] Use __builtin_trap() for abort() if inhibit_libc

2021-08-30 Thread Richard Biener via Gcc-patches
On Mon, Aug 30, 2021 at 12:55 PM Sebastian Huber wrote: > > Hello Christophe, > > it seems there are a couple of more abort() declarations: > > libgcc/unwind-arm-common.inc:extern void abort (void); > libgcc/config/c6x/pr-support.c:extern void abort (void); > libgcc/config/arm/pr-support.c:extern

Re: [PATCH] Use __builtin_trap() for abort() if inhibit_libc

2021-08-30 Thread Sebastian Huber
Hello Christophe, it seems there are a couple of more abort() declarations: libgcc/unwind-arm-common.inc:extern void abort (void); libgcc/config/c6x/pr-support.c:extern void abort (void); libgcc/config/arm/pr-support.c:extern void abort (void); libgcc/config/arm/linux-atomic-64bit.c:extern void

Re: [PATCH] Use __builtin_trap() for abort() if inhibit_libc

2021-08-30 Thread Christophe Lyon via Gcc-patches
Hi, On Tue, Aug 17, 2021 at 10:43 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > abort() is used in gcc_assert() and gcc_unreachable() which is used by > target > libraries such as libgcov.a. This patch changes the abort() definition > under > certain conditions. If

Re: [PATCH] Use __builtin_trap() for abort() if inhibit_libc

2021-08-19 Thread Jeff Law via Gcc-patches
On 8/17/2021 2:41 AM, Sebastian Huber wrote: abort() is used in gcc_assert() and gcc_unreachable() which is used by target libraries such as libgcov.a. This patch changes the abort() definition under certain conditions. If inhibit_libc is defined and abort is not already defined, then

[PATCH] Use __builtin_trap() for abort() if inhibit_libc

2021-08-17 Thread Sebastian Huber
abort() is used in gcc_assert() and gcc_unreachable() which is used by target libraries such as libgcov.a. This patch changes the abort() definition under certain conditions. If inhibit_libc is defined and abort is not already defined, then abort() is defined to __builtin_trap(). The