Function return value register
kavitha.manjunath at yahoo.com
Tue Jun 10 01:27:48 CEST 2014
On Monday, June 9, 2014 5:04 PM, Waldek Hebisch <hebisch at math.uni.wroc.pl> wrote:
Rajat Singh wrote:
> 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.
You should ask gcc folks about this. gpc just builds
representation of Pascal program and passes it to gcc middle-end.
gpc does not deal directly with specific backends. Note that
gpc calling convention is supposed to match C. In other
words, you should first get your change working for a trivial
C program and only after it works for C start looking at
Pascal. Normally, once it works for C is will automatically
start working for Pascal too.
hebisch at math.uni.wroc.pl
Gpc mailing list
Gpc at gnu.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gpc