Function return value register

Rajat Singh <[email protected]>
Newsgroups gmane.comp.compilers.gpc
Message-ID <CAG+2Se4WuV3meOz64AGBuES+Vv-BhJaOrp+YZBXk6xhVdEieSQ@mail.gmail.com>
Hi,

Is there a way to change the function return value coming in register d0 to
come in reigster d7 ?

I tried adding d7 in call_used_registers and updating
macro's FUNCTION_VALUE and FUNCTION_VALUE_REGNO_P but it didnt work.

I tried modifying hard_function_value function in explow.c but compilation
failed at reload pass.

I am trying to update the backend code for m68k.Any help is appreciated.

Thanks and regards,
Rajat Singh

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.