Expensive selftests (was: 'hash_map>')

2021-08-16 Thread Thomas Schwinge
Hi! On 2021-08-16T14:10:00-0600, Martin Sebor wrote: > On 8/16/21 6:44 AM, Thomas Schwinge wrote: >> [...], to document the current behavior, I propose to >> "Add more self-tests for 'hash_map' with Value type with non-trivial >> constructor/destructor", see attached. OK to push to master branch

Re: 'hash_map>'

2021-08-16 Thread Martin Sebor via Gcc
On 8/16/21 6:44 AM, Thomas Schwinge wrote: Hi! On 2021-08-12T17:15:44-0600, Martin Sebor via Gcc wrote: On 8/6/21 10:57 AM, Thomas Schwinge wrote: So I'm trying to do some C++... ;-) Given: /* A map from SSA names or var decls to record fields. */ typedef hash_map field_map_t;

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: [PATCH] Try LTO partial linking. (Was: Speed of compiling gimple-match.c)

2021-08-16 Thread Martin Liška
PING^2 @Honza: Can you please review the change? Martin On 6/23/21 3:53 PM, Martin Liška wrote: On 5/21/21 10:29 AM, Martin Liška wrote: On 5/20/21 5:55 PM, Jan Hubicka wrote: Quick solution is to also modify partitioner to use the local symbol names when doing incremental linking (those mix

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: 'hash_map>'

2021-08-16 Thread Richard Biener via Gcc
On Mon, Aug 16, 2021 at 2:44 PM Thomas Schwinge wrote: > > Hi! > > On 2021-08-09T12:02:02+0200, Richard Biener via Gcc wrote: > > On Fri, Aug 6, 2021 at 6:58 PM Thomas Schwinge > > wrote: > >> So I'm trying to do some C++... ;-) > >> > >> Given: > >> > >> /* A map from SSA names or var dec

Re: 'hash_map>'

2021-08-16 Thread Thomas Schwinge
Hi! On 2021-08-12T17:15:44-0600, Martin Sebor via Gcc wrote: > On 8/6/21 10:57 AM, Thomas Schwinge wrote: >> So I'm trying to do some C++... ;-) >> >> Given: >> >> /* A map from SSA names or var decls to record fields. */ >> typedef hash_map field_map_t; >> >> /* For each propaga

Re: 'hash_map>'

2021-08-16 Thread Thomas Schwinge
Hi! On 2021-08-09T12:02:02+0200, Richard Biener via Gcc wrote: > On Fri, Aug 6, 2021 at 6:58 PM Thomas Schwinge > wrote: >> So I'm trying to do some C++... ;-) >> >> Given: >> >> /* A map from SSA names or var decls to record fields. */ >> typedef hash_map field_map_t; >> >> /* Fo

Re: 'hash_map>'

2021-08-16 Thread Thomas Schwinge
Hi! On 2021-08-07T09:54:53+0100, Jonathan Wakely via Gcc wrote: > On Sat, 7 Aug 2021, 09:08 Thomas Schwinge, wrote: >> On 2021-08-06T19:37:58+0100, Jonathan Wakely wrote: >> > On Fri, 6 Aug 2021, 17:58 Thomas Schwinge, wrote: >> >> So I'm trying to do some C++... ;-) >> >> >> >> Given: >> >>

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