Fix gcc.c-torture/compile/20010605-1.c on SPARC 32-bit

Eric Botcazou ebotcazou@adacore.com
Tue Nov 10 18:01:00 GMT 2009


It's a corner case: an unreachable nested function returning a variable-sized 
structure.  The DECL_RESULT of the nested function has no DECL_SIZE in this 
case (I guess that doesn't matter) and the compiler segfaults in the backend.

Tested on SPARC/Solaris 9, applied on the mainline.


2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>

	* config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
	DECL_SIZE of DECL_RESULT before evaluating it.


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


More information about the Gcc-patches mailing list