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
This commit is contained in:
parent
98c31526f2
commit
c168f18072
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
PR target/61387
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue