[Ada] Avoid too large read generated for complex packed array type

Eric Botcazou ebotcazou@adacore.com
Thu Mar 17 12:38:00 GMT 2011


This change prevents the compiler from generating too large reads (typically a 
few bytes, essentially only visible with valgrind) when it is manipulating 
complex packed array types.

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


2011-03-17  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/gigi.h (smaller_form_type_p): Declare.
	* gcc-interface/trans.c (smaller_form_type_p): Make global and move...
	* gcc-interface/utils.c (smaller_form_type_p): ...to here.
	(convert): Deal with conversions from a smaller form type specially.


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


More information about the Gcc-patches mailing list