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:
parent
9c69933102
commit
639d4bb87c
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue