[Bug tree-optimization/51782] -ftree-sra: Missing address-space information leads to wrong

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Mon Feb 20 09:43:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51782

--- Comment #19 from rguenther at suse dot de <rguenther at suse dot de> 2012-02-20 09:27:48 UTC ---
On Fri, 17 Feb 2012, jamborm at gcc dot gnu.org wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51782
> 
> --- Comment #17 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-02-17 17:59:43 UTC ---
> Created attachment 26695
>   --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26695
> Untested proposed fix
> 
> This untested patch fixes the issue for me on a cross-compiler.  It
> would be great if someone who is set up to run the testsuite on a
> platform with multiple address spaces or a simulator of one could test
> it a bit.
> 
> My plan is to discuss this with maintainers next week and if they like
> the approach, give it a formal bootstrap and test run on x86_64 and
> submit shortly thereafter if everything goes fine.

base returned from get_base_address should never be NULL, so it's
safe to assume it isn't.  Otherwise the patch looks ok to me.

Richard.



More information about the Gcc-bugs mailing list