It would be useful to interface C functions with code written in raw assembly to have a function attribute to make a function save and restore every used registers, even flags register if possible.
This should not cause big problems because such special functions will still _respect_ the ABI, but would not _expect_ the code around to be so fair. -- Summary: Feature request: function attribute to save alla used registers Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: a dot pignotti at sssup dot it GCC host triplet: platform indipendent http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39341