]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR debug/92664 (Wrong .debug_line section information when compiling...
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Dec 2019 17:23:34 +0000 (18:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Dec 2019 17:23:34 +0000 (18:23 +0100)
Backported from mainline
2019-11-27  Jakub Jelinek  <jakub@redhat.com>

PR debug/92664
* dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".

From-SVN: r279658

gcc/ChangeLog
gcc/dwarf2out.c

index 1a925cae4e5eb4a8040133cdda0db7a0340d5222..41b10d6c27dd89059157611a9d377339abc077a7 100644 (file)
@@ -1,6 +1,11 @@
 2019-12-20  Jakub Jelinek  <jakub@redhat.com>
 
        Backported from mainline
+       2019-11-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/92664
+       * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
+
        2019-11-26  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/92644
index ae47387b763f3a7edfa1f4b0dc546d0919b15732..67a6bc92077d72c4d25f6bd2b2e422d6388afaba 100644 (file)
@@ -27057,6 +27057,9 @@ lookup_filename (const char *file_name)
   if (!file_name)
     return NULL;
 
+  if (!file_name[0])
+    file_name = "<stdin>";
+
   dwarf_file_data **slot
     = file_table->find_slot_with_hash (file_name, htab_hash_string (file_name),
                                       INSERT);