Function return value register

Kavitha Manjunath kavitha.manjunath at yahoo.com
Tue Jun 10 01:27:48 CEST 2014


Thank you 
 
Regards

Kavitha Manjunath


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.

-- 
                              Waldek Hebisch
hebisch at math.uni.wroc.pl 


_______________________________________________
Gpc mailing list
Gpc at gnu.de
https://www.g-n-u.de/mailman/listinfo/gpc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20140609/e1f6c066/attachment.html>


More information about the Gpc mailing list