diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-12 21:37:03 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-12 21:37:03 +0000 |
commit | df7f3935489930600eac7b67948f220c9c0ec162 (patch) | |
tree | 17e164cf005fe18b66d3b1d116cd4bf3f2016f7f /gcc/cfgexpand.c | |
parent | cc4e1ef43730aec70769da5ff32371ea0ed3f3a0 (diff) | |
download | gcc-df7f3935489930600eac7b67948f220c9c0ec162.tar.gz |
* cfgexpand.c (convert_debug_memory_address): Allow any valid
pointer type, not just the default pointer type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183141 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 2b2e464791c..579c3cde011 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -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; |