This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/51782] -ftree-sra: Missing address-space information leads to wrong
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Feb 2012 09:27:48 +0000
- Subject: [Bug tree-optimization/51782] -ftree-sra: Missing address-space information leads to wrong
- Auto-submitted: auto-generated
- References: <bug-51782-4@http.gcc.gnu.org/bugzilla/>
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.