[PATCH] Fix PR tree-optimization/44885

Eric Botcazou ebotcazou@adacore.com
Wed Jul 28 09:56:00 GMT 2010


Hi,

this is the failure of gnat.dg/aliasing3.adb on 32-bit platforms exposed by 
the mem-ref2 merge.  But the root cause is a latent problem in IPA-SRA: the 
pass takes the address of a component of a TYPE_NONALIASED_COMPONENT array.

Proposed fix attached, tested on x86-64-suse-linux, OK for mainline?


2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>

	PR tree-optimization/44885
	* tree-sra.c (find_param_candidates): Skip pointer types to arrays
	with non-aliased component.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr44885.diff
Type: text/x-diff
Size: 472 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100728/8715ba77/attachment.bin>


More information about the Gcc-patches mailing list