* 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
+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
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)