This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: call_value pattern
- To: 'James Montgomerie' <jrmg at dcs dot ed dot ac dot uk>, gcc at gcc dot gnu dot org
- Subject: RE: call_value pattern
- From: David Korn <dkorn at pixelpower dot com>
- Date: Wed, 24 Jan 2001 11:39:47 -0000
>-----Original Message-----
>From: James Montgomerie [mailto:jrmg@dcs.ed.ac.uk]
>Sent: 24 January 2001 11:18
>I am in the process of porting GCC to an architecture on which I need to
>know the machine mode of the return value of a call inside the code
>generated by the call_value instruction pattern. Testing the mode of the
>register passed as operand 0 does not seem to work (it returns the wrong
>mode, presumably because it hasn't actually been used yet), and I'm at a
>loss to think of another way. Can anyone point me in the correct
>direction?
I'm new to Gcc coding, so this answer might be wrong. If that is the
case,
I expect someone more knowledgeable than me will correct my mistake and
we'll both have learnt something. Anyway, my first thought on how to deal
with this would be to look up the name of the SYM_REF, find the DECL for
the function, and look at it's return type.
Was that even close, anybody ?
DaveK
--
The Boulder Pledge: "Under no circumstances will I ever purchase anything
offered to me as the result of an unsolicited email message. Nor will I
forward chain letters, petitions, mass mailings, or virus warnings to large
numbers of others. This is my contribution to the survival of the online
community."
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************