🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50480

Determining a functions parameter and return registers

#50480
From: David &
Date: Fri, 24 Sep 1993 17:33
14 lines
1143 bytes
I'm adding a stage to the gcc-2.4.5 compiler and I need to determine
for each function what hard registers are being used for parameters and
return values.

It seems I can use current_function_return_rtx to get the return
register and its mode (and thus the hard registers being used) but
things don't seem as straight forward for the parameters. Can I 
look through the DECL_INCOMING_RTL for the parameter registers or is
there a better way.

Thanks,

David
Technical Details
Message-ID: <GOODWIN.93Sep24093339@endive.eecs.ucdavis.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!news.ucdavis.edu!goodwin

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,55075d2387b4b833,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-09-24 10:58:01 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!news.ucdavis.edu!goodwin
From: goodwin@endive.eecs.ucdavis.edu (David &)
Subject: Determining a functions parameter and return registers
Message-ID: <GOODWIN.93Sep24093339@endive.eecs.ucdavis.edu>
Sender: usenet@ucdavis.edu (News Administrator)
Organization: University of California at Davis
Distribution: gnu
Date: Fri, 24 Sep 1993 17:33:39 GMT
Lines: 14