[SPARC] Fix corner cases with aggregates in 64-bit mode

Eric Botcazou ebotcazou@libertysurf.fr
Sat Nov 6 17:52:00 GMT 2004


Hello,

These were exposed as 3 groups of ICEs by Jakub's struct-layout-1 testsuite.  
The ChangeLog entry is self-explanatory I think.

Bootstrapped/regtested/compat-tested against 3.4.2 on sparc64-sun-solaris2.9 
and sparc-sun-solaris2.8, applied to mainline.


2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* config/sparc/sparc.c (function_arg_record_value_1): Skip
	fields with zero length.
	(function_arg_record_value_2): Likewise.
	(function_arg_record_value_3): Use smallest_mode_for_size
	instead of mode_for_size.
	(function_arg_union_value): Return naked register for unions
	with zero length.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: corner_aggregates.diff
Type: text/x-diff
Size: 1996 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041106/45911498/attachment.bin>


More information about the Gcc-patches mailing list