aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-03-08 22:50:37 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-03-08 22:50:37 +0100
commit372e261580ac6958cf40c6cf470ed0e6b8ddc9b8 (patch)
tree83b83fa8ddd4248d1d87a5a49406f68c1d35be60 /gcc/dwarf2out.c
parent80bac2eb06b1f5660fa46c8b4292e01df745f398 (diff)
downloadgcc-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.c5
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;
}