Commit c6f9b9a1 by Nick Clifton Committed by Nick Clifton

If a SYMBOL_REF is in the constant pool, use the pool's SYMBOL_REF.

From-SVN: r41518
parent b201442f
2001-04-24 Nick Clifton <nickc@cambridge.redhat.com> 2001-04-24 Nick Clifton <nickc@cambridge.redhat.com>
* dwarf2out.c (mem_loc_descriptor): If a SYMBOL_REF is in the
constant pool, use the pool's SYMBOL_REF instead.
* config/v850/v850.h (STRICT_ALIGNMENT): Always set, even for the * config/v850/v850.h (STRICT_ALIGNMENT): Always set, even for the
v850e. v850e.
......
...@@ -7117,6 +7117,12 @@ mem_loc_descriptor (rtl, mode) ...@@ -7117,6 +7117,12 @@ mem_loc_descriptor (rtl, mode)
pool. */ pool. */
case CONST: case CONST:
case SYMBOL_REF: case SYMBOL_REF:
/* Alternatively, the symbol in the constant pool can be referenced
by a different symbol. */
if (GET_CODE (rtl) == SYMBOL_REF
&& CONSTANT_POOL_ADDRESS_P (rtl))
rtl = get_pool_constant (rtl);
mem_loc_result = new_loc_descr (DW_OP_addr, 0, 0); mem_loc_result = new_loc_descr (DW_OP_addr, 0, 0);
mem_loc_result->dw_loc_oprnd1.val_class = dw_val_class_addr; mem_loc_result->dw_loc_oprnd1.val_class = dw_val_class_addr;
mem_loc_result->dw_loc_oprnd1.v.val_addr = save_rtx (rtl); mem_loc_result->dw_loc_oprnd1.v.val_addr = save_rtx (rtl);
......
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