------- Comment #5 from rguenth at gcc dot gnu dot org 2007-07-24 11:47 ------- The 32bit psABI specifies Integral Arguments as 'Functions pass all integer-valued arguments as words, expanding or padding signed or unsigned bytes and halfwords as needed'. For return values the best I can find is 'A function that returns an integral or pointer value places its result in register %eax.' Both are not exactly clear whether sign- or zero-extension is required.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32843