------- Comment #2 from acahalan at gmail dot com 2006-09-27 00:15 ------- (In reply to comment #1) > Yes those change the ABI which means don't use them unless you know what you > are doing.
I damn well do know what I want to do, and gcc does not support it. What, you expect me to edit the system header files to add __attribute__((regparm(0))) and such all over the place? This is not practical. Adding __attribute__((regparm(3))) all over the app is not good either. For other reasons, gcc already distinguishes between system header files and non-system header files. If this distinction were used for ABI-related issues, -mregparm=3 and similar would be practical for normal app code. As far as I can tell, that would only leave the problem of callback functions such as the fourth qsort() argument and main(). Probably main() should be handled automatically. -- acahalan at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29242