This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does gcc violate the ia64 ABI?
- From: Andreas Schwab <schwab at suse dot de>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 17 May 2003 00:09:58 +0200
- Subject: Re: Does gcc violate the ia64 ABI?
- References: <20030516144401.A4222@lucon.org>
"H. J. Lu" <hjl@lucon.org> writes:
|> I will open a bug in gcc bugzilla when conversion is done. In the
|> meantime, I opened
|>
|> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91056
|>
|> The problem is gcc doesn't save/store gp across call. According to the
|> ia64 ABI, callee can change gp and gp must be saved/restore by caller
|> across calls. It is on page 5-2 in the Itanium Software Conventions
|> and Runtime Architecture Guide. Am I right?
I don't see where's the problem. If a function does not use a
call-clobbered register there is no need for saving/restoring it. It's
the duty of the caller to do it.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."