Commit c168f180 by Joern Rennecke Committed by Joern Rennecke

cfgexpand.c (expand_debug_expr): Get address space from operand 0 (BASE).

        * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
        Get address space from operand 0 (BASE).

Co-Authored-By: Richard Biener <rguenther@suse.de>

From-SVN: r216000
parent 98c31526
2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
Richard Biener <rguenther@suse.de>
* cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
Get address space from operand 0 (BASE).
2014-10-07 Iain Sandoe <iain@codesourcery.com> 2014-10-07 Iain Sandoe <iain@codesourcery.com>
PR target/61387 PR target/61387
...@@ -3983,11 +3983,7 @@ expand_debug_expr (tree exp) ...@@ -3983,11 +3983,7 @@ expand_debug_expr (tree exp)
if (!op0) if (!op0)
return NULL; return NULL;
if (POINTER_TYPE_P (TREE_TYPE (exp))) as = TYPE_ADDR_SPACE (TREE_TYPE (TREE_TYPE (TREE_OPERAND (exp, 0))));
as = TYPE_ADDR_SPACE (TREE_TYPE (TREE_TYPE (exp)));
else
as = ADDR_SPACE_GENERIC;
op0 = convert_debug_memory_address (targetm.addr_space.address_mode (as), op0 = convert_debug_memory_address (targetm.addr_space.address_mode (as),
op0, as); op0, as);
if (op0 == NULL_RTX) if (op0 == NULL_RTX)
......
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