[PING][PATCH] i386: Allow setting target attribute from conditional expression

2022-11-08 Thread J.W. Jagersma via Gcc-patches
I realize this is a feature with a somewhat niche use-case, but I'd really like to have it in gcc 13, if possible. Any feedback is appreciated. On 2022-10-17 16:44, J.W. Jagersma wrote: > Recently I tried to set a function's target attribute conditionally > based on template parameters, eg.: > >

[PATCH] i386: Allow setting target attribute from conditional expression

2022-10-17 Thread J.W. Jagersma via Gcc-patches
Recently I tried to set a function's target attribute conditionally based on template parameters, eg.: template [[gnu::target (enable_sse ? "sse" : "")]] void func () { /* ... */ } I then discovered that this is currently not possible. This small patch resolves that. A possible alte