This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to teach gcc, that registers are clobbered by api calls?
- From: rridge at csclub dot uwaterloo dot ca (Ross Ridge)
- To: gcc at gcc dot gnu dot org
- Date: Wed, 23 Apr 2008 00:46:07 -0400 (EDT)
- Subject: Re: How to teach gcc, that registers are clobbered by api calls?
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