Re: [PATCH] lto: Add an entry for cold attribute to lto_gnu_attributes

2025-02-11 Thread Richard Biener
On Mon, Feb 10, 2025 at 11:01 PM Martin Jambor wrote: > > Hi, > > PR 118125 is a performance regression stemming from the fact that we > lose the cold attribute of our __builtin_unreachable. The attribute > is simply and silently dropped on the floor by decl_attributes (in > attribs.cc) in the pr

[PATCH] lto: Add an entry for cold attribute to lto_gnu_attributes

2025-02-10 Thread Martin Jambor
Hi, PR 118125 is a performance regression stemming from the fact that we lose the cold attribute of our __builtin_unreachable. The attribute is simply and silently dropped on the floor by decl_attributes (in attribs.cc) in the process of building decls for builtins because it cannot look it up in