Commit 639d4bb8 by DJ Delorie Committed by DJ Delorie

cfgexpand.c (convert_debug_memory_address): Allow any valid pointer type, not…

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
parent 9c699331
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>
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment