Use pointer_mode for address computation.
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 6 Jul 2011 13:19:04 +0000 (13:19 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 6 Jul 2011 13:19:04 +0000 (06:19 -0700)
commita369b6399c43d766cd7690753dbac32c4221354d
treecdee2f1965dff3296ef8dd20710c45a7e5891482
parent8dabd0988aee468283923a7716d1309db313c2a7
Use pointer_mode for address computation.

gcc/

2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/47383
* tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
address computation and convert to address_mode if needed.

gcc/testsuite/

2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/47383
* gcc.dg/pr47383.c: New.

From-SVN: r175912
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr47383.c [new file with mode: 0644]
gcc/tree-ssa-address.c