This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]