From 372e261580ac6958cf40c6cf470ed0e6b8ddc9b8 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 8 Mar 2018 22:50:37 +0100 Subject: [PATCH] re PR debug/84456 (gcc.dg/guality/pr49888.c fail) PR debug/84456 * dwarf2out.c (dw_loc_list): If list && loc_list->first->next, call gen_llsym, otherwise call maybe_gen_llsym. From-SVN: r258371 --- gcc/ChangeLog | 4 ++++ gcc/dwarf2out.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 78b8fc4643e..5675cdb7c3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2018-03-08 Jakub Jelinek + PR debug/84456 + * dwarf2out.c (dw_loc_list): If list && loc_list->first->next, call + gen_llsym, otherwise call maybe_gen_llsym. + PR inline-asm/84742 * recog.c (asm_operand_ok): Return 0 if multi-character constraint has ',' character inside of it. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0348f4460e9..c39910f26cb 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -17079,7 +17079,10 @@ dw_loc_list (var_loc_list *loc_list, tree decl, int want_address) representable, we don't want to pretend a single entry that was applies to the entire scope in which the variable is available. */ - maybe_gen_llsym (list); + if (list && loc_list->first->next) + gen_llsym (list); + else + maybe_gen_llsym (list); return list; } -- 2.30.2