From df7f3935489930600eac7b67948f220c9c0ec162 Mon Sep 17 00:00:00 2001 From: dj Date: Thu, 12 Jan 2012 21:37:03 +0000 Subject: * 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 --- gcc/cfgexpand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gcc/cfgexpand.c') 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; -- cgit v1.2.1