From: Joern Rennecke Date: Wed, 8 Oct 2014 12:33:43 +0000 (+0000) Subject: cfgexpand.c (expand_debug_expr): Get address space from operand 0 (BASE). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c168f180720f857ef66ae9d23a27859afd1baa9a;p=gcc.git cfgexpand.c (expand_debug_expr): Get address space from operand 0 (BASE). * cfgexpand.c (expand_debug_expr) : Get address space from operand 0 (BASE). Co-Authored-By: Richard Biener From-SVN: r216000 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e198b2bf30c..f577bf0ae98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-10-08 Joern Rennecke + Richard Biener + + * cfgexpand.c (expand_debug_expr) : + Get address space from operand 0 (BASE). + 2014-10-07 Iain Sandoe PR target/61387 diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index f95981be6b6..5cb96df037f 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -3983,11 +3983,7 @@ expand_debug_expr (tree exp) if (!op0) return NULL; - if (POINTER_TYPE_P (TREE_TYPE (exp))) - as = TYPE_ADDR_SPACE (TREE_TYPE (TREE_TYPE (exp))); - else - as = ADDR_SPACE_GENERIC; - + as = TYPE_ADDR_SPACE (TREE_TYPE (TREE_TYPE (TREE_OPERAND (exp, 0)))); op0 = convert_debug_memory_address (targetm.addr_space.address_mode (as), op0, as); if (op0 == NULL_RTX)