Re: gcc_assert() and inhibit_libc

2021-08-17 Thread Sebastian Huber
On 16/08/2021 18:50, Jason Merrill wrote: On Mon, Aug 16, 2021 at 9:51 AM Sebastian Huber wrote: On 16/08/2021 14:33, Martin Liška wrote: On 8/12/21 4:31 PM, Sebastian Huber wrote: This would be suitable for me, however, I am not sure if you want such a customization feature just for a niche

Re: gcc_assert() and inhibit_libc

2021-08-16 Thread Jeff Law via Gcc
On 8/16/2021 11:06 AM, Jakub Jelinek via Gcc wrote: On Mon, Aug 16, 2021 at 12:50:49PM -0400, Jason Merrill via Gcc wrote: The trap builtin is target-specific. Making this system-specific (in this case RTEMS) could be an issue. Is that necessary? Are there interesting targets that don't hav

Re: gcc_assert() and inhibit_libc

2021-08-16 Thread Jakub Jelinek via Gcc
On Mon, Aug 16, 2021 at 12:50:49PM -0400, Jason Merrill via Gcc wrote: > > The trap builtin is target-specific. Making this system-specific (in > > this case RTEMS) could be an issue. > > Is that necessary? Are there interesting targets that don't have a trap insn? Depends on the definition of i

Re: gcc_assert() and inhibit_libc

2021-08-16 Thread Joseph Myers
On Mon, 16 Aug 2021, Sebastian Huber wrote: > Ok, good. I will try to figure out what can be done. One problem is that > tsystem.h is included before tm.h. Independent of this Joseph S. Myers said > in the recent patch review with respect to the gcov_type size that removing > tm.h from the target

Re: gcc_assert() and inhibit_libc

2021-08-16 Thread Jason Merrill via Gcc
On Mon, Aug 16, 2021 at 9:51 AM Sebastian Huber wrote: > > On 16/08/2021 14:33, Martin Liška wrote: > > On 8/12/21 4:31 PM, Sebastian Huber wrote: > >> This would be suitable for me, however, I am not sure if you want such > >> a customization feature just for a niche operating system. > > > > I d

Re: gcc_assert() and inhibit_libc

2021-08-16 Thread Sebastian Huber
On 16/08/2021 14:33, Martin Liška wrote: On 8/12/21 4:31 PM, Sebastian Huber wrote: This would be suitable for me, however, I am not sure if you want such a customization feature just for a niche operating system. I don't see a reason why not. Please send a patch. Ok, good. I will try to fig

Re: gcc_assert() and inhibit_libc

2021-08-16 Thread Martin Liška
On 8/12/21 4:31 PM, Sebastian Huber wrote: This would be suitable for me, however, I am not sure if you want such a customization feature just for a niche operating system. I don't see a reason why not. Please send a patch. Martin

Re: gcc_assert() and inhibit_libc

2021-08-12 Thread Sebastian Huber
On 12/08/2021 16:29, Martin Liška wrote: On 8/12/21 4:12 PM, Sebastian Huber wrote: On 12/08/2021 16:08, Martin Liška wrote: On 7/21/21 2:44 PM, Sebastian Huber wrote: Hello, while testing this patch https://www.google.com/search?client=firefox-b-e&q=gcc+enable_runtime_checking I noti

Re: gcc_assert() and inhibit_libc

2021-08-12 Thread Jason Merrill via Gcc
On Thu, Jul 22, 2021 at 8:18 AM Richard Biener via Gcc wrote: > > On Wed, Jul 21, 2021 at 2:45 PM Sebastian Huber > wrote: > > > > Hello, > > > > while testing this patch > > > > https://www.google.com/search?client=firefox-b-e&q=gcc+enable_runtime_checking > > > > I noticed that __gcov_info_to_g

Re: gcc_assert() and inhibit_libc

2021-08-12 Thread Martin Liška
On 8/12/21 4:12 PM, Sebastian Huber wrote: On 12/08/2021 16:08, Martin Liška wrote: On 7/21/21 2:44 PM, Sebastian Huber wrote: Hello, while testing this patch https://www.google.com/search?client=firefox-b-e&q=gcc+enable_runtime_checking I noticed that __gcov_info_to_gcda() uses abort(). Thi

Re: gcc_assert() and inhibit_libc

2021-08-12 Thread Sebastian Huber
On 12/08/2021 16:08, Martin Liška wrote: On 7/21/21 2:44 PM, Sebastian Huber wrote: Hello, while testing this patch https://www.google.com/search?client=firefox-b-e&q=gcc+enable_runtime_checking I noticed that __gcov_info_to_gcda() uses abort(). This is due to (from tsystem.h): #ifdef E

Re: gcc_assert() and inhibit_libc

2021-08-12 Thread Martin Liška
On 7/21/21 2:44 PM, Sebastian Huber wrote: Hello, while testing this patch https://www.google.com/search?client=firefox-b-e&q=gcc+enable_runtime_checking I noticed that __gcov_info_to_gcda() uses abort(). This is due to (from tsystem.h): #ifdef ENABLE_RUNTIME_CHECKING #define gcc_assert(EXPR

Re: gcc_assert() and inhibit_libc

2021-08-06 Thread Sebastian Huber
On 22/07/2021 14:15, Richard Biener wrote: On Wed, Jul 21, 2021 at 2:45 PM Sebastian Huber wrote: Hello, while testing this patch https://www.google.com/search?client=firefox-b-e&q=gcc+enable_runtime_checking I noticed that __gcov_info_to_gcda() uses abort(). This is due to (from tsystem.h)

Re: gcc_assert() and inhibit_libc

2021-07-22 Thread Richard Biener via Gcc
On Wed, Jul 21, 2021 at 2:45 PM Sebastian Huber wrote: > > Hello, > > while testing this patch > > https://www.google.com/search?client=firefox-b-e&q=gcc+enable_runtime_checking > > I noticed that __gcov_info_to_gcda() uses abort(). This is due to (from > tsystem.h): > > #ifdef ENABLE_RUNTIME_CHEC

gcc_assert() and inhibit_libc

2021-07-21 Thread Sebastian Huber
Hello, while testing this patch https://www.google.com/search?client=firefox-b-e&q=gcc+enable_runtime_checking I noticed that __gcov_info_to_gcda() uses abort(). This is due to (from tsystem.h): #ifdef ENABLE_RUNTIME_CHECKING #define gcc_assert(EXPR) ((void)(!(EXPR) ? abort (), 0 : 0)) #else