diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-03-08 22:50:37 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-03-08 22:50:37 +0100 |
commit | 372e261580ac6958cf40c6cf470ed0e6b8ddc9b8 (patch) | |
tree | 83b83fa8ddd4248d1d87a5a49406f68c1d35be60 /gcc/dwarf2out.c | |
parent | 80bac2eb06b1f5660fa46c8b4292e01df745f398 (diff) | |
download | gcc-372e261580ac6958cf40c6cf470ed0e6b8ddc9b8.zip gcc-372e261580ac6958cf40c6cf470ed0e6b8ddc9b8.tar.gz gcc-372e261580ac6958cf40c6cf470ed0e6b8ddc9b8.tar.bz2 |
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0348f44..c39910f 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; } |