https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89093
--- Comment #50 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Florian Weimer from comment #49) > (In reply to Bernd Edlinger from comment #48) > > (In reply to Florian Weimer from comment #47) > > > (In reply to Bernd Edlinger from comment #43) > > > > does anybody know what is the Ada and/or D syntax for that? > > > > > > Syntax for what? > > > > I mean the Ada and D equivalent of > > #pragma GCC target ("general-regs-only") > > and/or > > __attribute__((target("general-regs-only"))) > > I don't think the target pragma/attribute is supported in Ada. > > pragma Machine_Attribute (Subprogram, "target", "general-regs-only"); > > appears to be ignored (even if I use a string which would be accepted by the > C/C++ pragma for that target, and not "general-regs-only". But it's been > years since I did much Ada programming. I don't understand why we are discussing Ada, because gcc/ada/raise_gcc.c, the TU containing the Ada personality routine, is written in C. The only problem is the D personality routine, which is written in D. And in that case IMHO we can just use -mgeneral-regs-only on the command line for arm in the Makefiles or something similar.