From: Jakub Jelinek Date: Thu, 8 Mar 2018 21:50:37 +0000 (+0100) Subject: re PR debug/84456 (gcc.dg/guality/pr49888.c fail) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=372e261580ac6958cf40c6cf470ed0e6b8ddc9b8;p=gcc.git 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 --- 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; }