[Ada] Small tweak to renaming code

Eric Botcazou ebotcazou@adacore.com
Tue Apr 7 10:58:00 GMT 2009


The code was testing Is_Composite_Type on the naked Etype, which doesn't 
really work if the type is private.

Tested on i586-suse-linux, applied on the mainline.


2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
	underlying type.
	* gcc-interface/trans.c (lvalue_required_p): Likewise.


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


More information about the Gcc-patches mailing list