Does gcc violate the ia64 ABI?

Andreas Schwab schwab@suse.de
Fri May 16 22:10:00 GMT 2003


"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."



More information about the Gcc mailing list