This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Working with BITS_PER_WORD == 0x10
- To: "First Name Last Name" <jshammond at my-deja dot com>
- Subject: Re: Working with BITS_PER_WORD == 0x10
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 04 Oct 2000 17:28:20 -0200
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200010040040.RAA26533@mail24.bigmailbox.com>
On Oct 3, 2000, "First Name Last Name" <jshammond@my-deja.com> wrote:
> short foo() { return 1; }
> It turns out that foo would extend the return value to 32 bits
> (2 registers) instead of returning the value in a single register.
See if adding a prototype declaration before the function definition helps:
short foo(void);
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me