Index: dwarf2out.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v retrieving revision 1.564 diff -u -p -r1.564 dwarf2out.c --- dwarf2out.c 24 Dec 2004 05:23:07 -0000 1.564 +++ dwarf2out.c 31 Dec 2004 00:34:38 -0000 @@ -9980,6 +9980,7 @@ add_location_or_const_value_attribute (d rtx rtl; dw_loc_descr_ref descr; var_loc_list *loc_list; + bool can_use_fb = attr != DW_AT_frame_base && !DECL_EXTERNAL (decl); if (TREE_CODE (decl) == ERROR_MARK) return; @@ -10049,7 +10050,7 @@ add_location_or_const_value_attribute (d varloc = NOTE_VAR_LOCATION (node->var_loc_note); add_loc_descr_to_loc_list (&list, loc_descriptor (varloc, - attr != DW_AT_frame_base), + can_use_fb), node->label, node->next->label, secname); } @@ -10070,7 +10071,7 @@ add_location_or_const_value_attribute (d } add_loc_descr_to_loc_list (&list, loc_descriptor (varloc, - attr != DW_AT_frame_base), + can_use_fb), node->label, endname, secname); }