Mindless ABI adherence
Neil Booth
neil@daikokuya.demon.co.uk
Thu Oct 18 23:19:00 GMT 2001
D. J. Bernstein wrote:-
> gcc should automatically use caller-save for static functions, at least
> in the non-recursive case. It doesn't matter what the ABIs say. The
> usual argument against making all registers caller-save, namely that the
> caller has to save everything because it doesn't know what registers the
> callee is using, has no relevance to static functions.
Just because a function is static doesn't mean it can't be called from
outside the translation unit.
Neil.
More information about the Gcc-bugs
mailing list