[PATCH] sparc32 va_arg fix
Richard Henderson
rth@cygnus.com
Tue Apr 18 14:21:00 GMT 2000
On Tue, Apr 18, 2000 at 05:42:52PM +0200, Jakub Jelinek wrote:
> The copying of 8 byte objects to a temporary in old va-sparc.h had a reason:
> va_list is only guaranteed to be 4 bytes aligned on sparc32, and as all
> other pointers to 8 byte objects are required to be 8 bytes aligned,
> mem_min_alignment counts on that.
Alternately, you could use extract_bit_field into a DImode pseudo,
and return (addressof:SI (reg:DI temp)). It would probably yield
smaller code, not having to copy into temporary memory.
r~
More information about the Gcc-patches
mailing list