Commit a97c9600 by Richard Henderson Committed by Richard Henderson

dwarf2out.c (loc_descriptor_from_tree): Check for null result from rtl_for_decl_location.

        * dwarf2out.c (loc_descriptor_from_tree): Check for null result
        from rtl_for_decl_location.
        (add_location_or_const_value_attribute): Likewise.

From-SVN: r37196
parent 9717c75c
2000-11-01 Richard Henderson <rth@redhat.com>
* dwarf2out.c (loc_descriptor_from_tree): Check for null result
from rtl_for_decl_location.
(add_location_or_const_value_attribute): Likewise.
2000-11-01 Neil Booth <neilb@earthling.net>
* cpplib.c (run_directive): Use correct line number for output
......
......@@ -7506,7 +7506,9 @@ loc_descriptor_from_tree (loc, addressp)
rtx rtl = rtl_for_decl_location (loc);
enum machine_mode mode = DECL_MODE (loc);
if (CONSTANT_P (rtl))
if (rtl == NULL_RTX)
break;
else if (CONSTANT_P (rtl))
{
ret = new_loc_descr (DW_OP_addr, 0, 0);
ret->dw_loc_oprnd1.val_class = dw_val_class_addr;
......@@ -8274,6 +8276,8 @@ add_location_or_const_value_attribute (die, decl)
abort ();
rtl = rtl_for_decl_location (decl);
if (rtl == NULL_RTX)
return;
switch (GET_CODE (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