From 88b34a4811a0a5237138bbd6700202c2f3569c7d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 27 Nov 2019 01:23:39 +0100 Subject: [PATCH] re PR debug/92664 (Wrong .debug_line section information when compiling stdin input with -g3) PR debug/92664 * dwarf2out.c (lookup_filename): Use "" instead of "". From-SVN: r278752 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 205c489..ecade7b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-27 Jakub Jelinek + + PR debug/92664 + * dwarf2out.c (lookup_filename): Use "" instead of "". + 2019-11-26 Martin Sebor PR tree-optimization/92683 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 9f1d921..6fb345b 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -27118,6 +27118,9 @@ lookup_filename (const char *file_name) if (!file_name) return NULL; + if (!file_name[0]) + file_name = ""; + dwarf_file_data **slot = file_table->find_slot_with_hash (file_name, htab_hash_string (file_name), INSERT); -- 2.7.4