https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89093
Iain Buclaw <ibuclaw at gdcproject dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw at gdcproject dot org --- Comment #62 from Iain Buclaw <ibuclaw at gdcproject dot org> --- (In reply to Bernd Edlinger from comment #55) > But, how about that: > The gcc.attribute module just reuses the UDA mechanism, the value after @ can be any kind of compile-time evaluated tuple or literal. So you can do instead. if it makes things much nicer for you. static if (GNU_ARM_EABI_Unwinder) enum personality_fn_attributes = attribute("target", ("general-regs-only")) else enum personality_fn_attributes = ""; @personality_fn_attributes private _Unwind_Reason_Code __gdc_personality(...)