From: Michael Matz <m...@suse.de>
Date: Tue, 24 Jul 2007 17:04:48 +0200 (CEST)
Local: Tues, Jul 24 2007 11:04 am
Subject: Re: How should integer return value should be extended?
Hi,
On Tue, 24 Jul 2007, hong...@gmail.com wrote: I actually think it shouldn't matter. The caller should only rely on the > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32843 > it seems that ia32 psABI doesn't specify how an integer return value > signed char > The return value is in eax. Should it be sign extended or zero parts of %eax which are covered by the return type. So problems can only arise if the caller for some reason doesn't know the Hence I think we can only say that before returning, %eax should be sign Ciao, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||