cfgexpand.c (convert_debug_memory_address): Allow any valid pointer type, not just the default pointer type.

* cfgexpand.c (convert_debug_memory_address): Allow any valid
pointer type, not just the default pointer type.

From-SVN: r183141
This commit is contained in:
DJ Delorie 2012-01-12 16:37:03 -05:00 committed by DJ Delorie
parent 9c69933102
commit 639d4bb87c
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2012-01-12 DJ Delorie <dj@redhat.com>
* cfgexpand.c (convert_debug_memory_address): Allow any valid
pointer type, not just the default pointer type.
2012-01-09 Richard Henderson <rth@redhat.com>
Denis Chertykov <chertykov@gmail.com>

View File

@ -2493,10 +2493,8 @@ convert_debug_memory_address (enum machine_mode mode, rtx x,
gcc_assert (xmode == mode || xmode == VOIDmode);
#else
rtx temp;
enum machine_mode address_mode = targetm.addr_space.address_mode (as);
enum machine_mode pointer_mode = targetm.addr_space.pointer_mode (as);
gcc_assert (mode == address_mode || mode == pointer_mode);
gcc_assert (targetm.addr_space.valid_pointer_mode (mode, as));
if (GET_MODE (x) == mode || GET_MODE (x) == VOIDmode)
return x;