Commit 88324fd0 by Eric Botcazou Committed by Eric Botcazou

* dwarf2out.c (dwarf2out_var_location): Do not pass NULL to fprintf.

From-SVN: r256454
parent 2025a48d
2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
* dwarf2out.c (dwarf2out_var_location): Do not pass NULL to fprintf.
2018-01-10 Peter Bergner <bergner@vnet.ibm.com> 2018-01-10 Peter Bergner <bergner@vnet.ibm.com>
PR target/83399 PR target/83399
......
...@@ -26584,11 +26584,16 @@ create_label: ...@@ -26584,11 +26584,16 @@ create_label:
if (var_loc_p && flag_debug_asm) if (var_loc_p && flag_debug_asm)
{ {
const char *name = NULL, *sep = " => ", *patstr = NULL; const char *name, *sep, *patstr;
if (decl && DECL_NAME (decl)) if (decl && DECL_NAME (decl))
name = IDENTIFIER_POINTER (DECL_NAME (decl)); name = IDENTIFIER_POINTER (DECL_NAME (decl));
else
name = "";
if (NOTE_VAR_LOCATION_LOC (loc_note)) if (NOTE_VAR_LOCATION_LOC (loc_note))
{
sep = " => ";
patstr = str_pattern_slim (NOTE_VAR_LOCATION_LOC (loc_note)); patstr = str_pattern_slim (NOTE_VAR_LOCATION_LOC (loc_note));
}
else else
{ {
sep = " "; sep = " ";
......
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