From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id ECAE6398B867; Thu, 17 Sep 2020 16:39:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECAE6398B867 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600360776; bh=EkMPpxhJu3ubSm3FqUO51kH0ODKYsyD+S5vrWgPLCIs=; h=From:To:Subject:Date:From; b=HDJcmLqmOXs45Sgg9RAyxIDKggE6iPswwL8JmXAOCnF7bq0ugY5BYj/Os3x9eeb5J SpcUbAqkLpCjD9UWD1W0Z4fpAAPBoF8hemMRoN3bi8Dd3nV0hAiTJyjye3670kGwPs rldBtLOxJ/PT1I9x6ZMeWL3k3L8T3yKJW4uxx890= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/redhat/heads/gcc-8-branch)] backport: re PR debug/92664 (Wrong .debug_line section information when compiling stdin input with - X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/vendors/redhat/heads/gcc-8-branch X-Git-Oldrev: e9eb1e4611bc59b981f2be0d863a706e7e1d956a X-Git-Newrev: 99fc0bc7b4628fe415e61e4be2bcebbb1b503967 Message-Id: <20200917163936.ECAE6398B867@sourceware.org> Date: Thu, 17 Sep 2020 16:39:36 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2020 16:39:37 -0000 https://gcc.gnu.org/g:99fc0bc7b4628fe415e61e4be2bcebbb1b503967 commit 99fc0bc7b4628fe415e61e4be2bcebbb1b503967 Author: Jakub Jelinek Date: Fri Feb 14 12:49:07 2020 +0100 backport: re PR debug/92664 (Wrong .debug_line section information when compiling stdin input with -g3) Backported from mainline 2019-11-27 Jakub Jelinek PR debug/92664 * dwarf2out.c (lookup_filename): Use "" instead of "". Diff: --- gcc/ChangeLog | 7 +++++++ gcc/dwarf2out.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85caceabfb6..a956570933d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,13 @@ 2020-02-14 Jakub Jelinek Backported from mainline + 2019-11-27 Jakub Jelinek + + PR debug/92664 + * dwarf2out.c (lookup_filename): Use "" instead of "". + +2020-02-14 Jakub Jelinek + 2019-11-23 Jakub Jelinek PR target/92615 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0d67d303eb7..ab01f7dbcae 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -26999,6 +26999,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);