public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: libc-alpha@sourceware.org
Subject: [PATCH] Propagate -ffile-prefix-map from CFLAGS to ASFLAGS.
Date: Fri, 30 Apr 2021 11:28:14 -0700	[thread overview]
Message-ID: <20210430182814.1164481-1-raj.khem@gmail.com> (raw)

-ffile-prefix-map could be used as superset to imply -fdebug-prefix-map
as well, therefore it should be propagated too, so cases when
-ffile-prefix-map is used but -fdebug-prefix-map is not, then it should
still rewire the paths in debug info
---
 Makeconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makeconfig b/Makeconfig
index 01f8638c2e..5a675e20e3 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -1067,7 +1067,7 @@ endif
 
 # The assembler can generate debug information too.
 ifndef ASFLAGS
-ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS))
+ASFLAGS := $(filter -g% -ffile-prefix-map=% -fdebug-prefix-map=%,$(CFLAGS))
 endif
 override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu)
 
-- 
2.31.1


             reply	other threads:[~2021-04-30 18:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 18:28 Khem Raj [this message]
2021-04-30 19:08 ` Khem Raj
2021-04-30 19:22   ` Khem Raj
2021-05-01  7:26   ` Florian Weimer
2021-05-01 13:26     ` Khem Raj
2021-05-01 13:38       ` Florian Weimer
2021-05-01 17:50         ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210430182814.1164481-1-raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).