Re: [PATCH] c: support attribs starting with '_'

2022-10-05 Thread Martin Liška
On 10/5/22 14:01, Jakub Jelinek wrote: > On Wed, Oct 05, 2022 at 01:49:40PM +0200, Martin Liška wrote: >> PR c/107156 >> >> gcc/ChangeLog: >> >> * attribs.h (lookup_attribute_by_prefix): Support attributes >> starting with underscore (like _noreturn, or __Noreturn). > > There are

Re: [PATCH] c: support attribs starting with '_'

2022-10-05 Thread Jakub Jelinek via Gcc-patches
On Wed, Oct 05, 2022 at 01:49:40PM +0200, Martin Liška wrote: > PR c/107156 > > gcc/ChangeLog: > > * attribs.h (lookup_attribute_by_prefix): Support attributes > starting with underscore (like _noreturn, or __Noreturn). There are no _noreturn or __Noreturn attributes, there is

[PATCH] c: support attribs starting with '_'

2022-10-05 Thread Martin Liška
PR c/107156 gcc/ChangeLog: * attribs.h (lookup_attribute_by_prefix): Support attributes starting with underscore (like _noreturn, or __Noreturn). --- gcc/attribs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/attribs.h b/gcc/attribs.h index

Re: [PATCH] c: support attribs starting with '_'

2022-10-05 Thread Andreas Schwab via Gcc-patches
On Okt 05 2022, Martin Liška wrote: > * attribs.h (lookup_attribute_by_prefix): Support attributes > starting with dash (like _noreturn, or __Noreturn). s/dash/underscore/ -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3

[PATCH] c: support attribs starting with '_'

2022-10-05 Thread Martin Liška
Support attributes starting with dash (like _noreturn, or __Noreturn). Note the only consumer of lookup_attribute_by_prefix comes from IPA ICF. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin PR c/107156 gcc/ChangeLog: