Working with BITS_PER_WORD == 0x10
Alexandre Oliva
aoliva@redhat.com
Wed Oct 4 12:28:00 GMT 2000
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
More information about the Gcc
mailing list