How to teach gcc, that registers are clobbered by api calls?
Ross Ridge
rridge@csclub.uwaterloo.ca
Wed Apr 23 09:52:00 GMT 2008
Kai Tietz writes:
>I read that too, but how can I teach gcc to do this that registers are
>callee-saved? I tried it by use of call_used part in regclass.c, but
>this didn't worked as expected.
I think you need to modify CALL_USED_REGISTERS and/or
CONDITIONAL_REGISTER_USAGE in i386.h. Making any changes to regclass.c
is probably not the right thing to do.
Ross Ridge
More information about the Gcc
mailing list