Re: [PATCH] attribs: Fix ICEs on attributes starting with _ [PR103365]

2021-11-24 Thread Jakub Jelinek via Gcc-patches
On Wed, Nov 24, 2021 at 12:53:02AM -0800, Andrew Pinski wrote: > Only one comment on the new testcases, you might want to add a > testcase for the option on the command line too. You're right, I've committed the patch with the following incremental diff in it: --- gcc/testsuite/c-c++-common/Wno-a

Re: [PATCH] attribs: Fix ICEs on attributes starting with _ [PR103365]

2021-11-24 Thread Richard Biener via Gcc-patches
On Wed, 24 Nov 2021, Jakub Jelinek wrote: > Hi! > > As the patch shows, we have quite a few asserts that we don't call > lookup_attribute etc. with attr_name that starts with an underscore, > to make sure nobody is trying to call it with non-canonicalized > attribute name like "__cold__" instead

Re: [PATCH] attribs: Fix ICEs on attributes starting with _ [PR103365]

2021-11-24 Thread Andrew Pinski via Gcc-patches
On Wed, Nov 24, 2021 at 12:48 AM Jakub Jelinek via Gcc-patches wrote: > > Hi! > > As the patch shows, we have quite a few asserts that we don't call > lookup_attribute etc. with attr_name that starts with an underscore, > to make sure nobody is trying to call it with non-canonicalized > attribute

[PATCH] attribs: Fix ICEs on attributes starting with _ [PR103365]

2021-11-24 Thread Jakub Jelinek via Gcc-patches
Hi! As the patch shows, we have quite a few asserts that we don't call lookup_attribute etc. with attr_name that starts with an underscore, to make sure nobody is trying to call it with non-canonicalized attribute name like "__cold__" instead of "cold". We canonicalize only attributes that start w