From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 3D865385803C for ; Fri, 30 Apr 2021 18:28:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3D865385803C Received: by mail-pg1-x535.google.com with SMTP id i14so5478331pgk.5 for ; Fri, 30 Apr 2021 11:28:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dH1vywCAnfiq7wyYNRxnLShk0/YTw3jbxuLkh66gJTI=; b=ImlegXCzZcmS1cEkHEB3EDpUfd5f79MIvArwIJFL3V6EqJ6OdqM/De92GMdR/TznkX Tcq97VeUWhHksqQdrTwG0KfkKvvraf7AR1XFeEuji83jt5EpV+/PcQqZMlI/fTQbLOVF wVbWyWb3JMfYfCOryMPRzRUsR+0Au/vO6X9Qh5ekWM0v6hYLk3KwUBhRWe/A+pEDBK2v fBjKOX/5DL1VeXuswAOZ9O/gaCm5Dzj4FM+drD7WcyN53TWWL+sqz0RChVrKoaNosQYT /kDLW6KH6psbSU+4usitUyL0BhYEaxwzVIMSDLkXbTFMxY5Klvld+N3061RLVgsCsM+w SwvQ== X-Gm-Message-State: AOAM532EJeiR2Co593VTr7G4F1DctfQIg3tkxHFaCEEJ/hVVQixcMHDz Y6lmg9k7TlB59g8ZNsyI4C/tWw0AKjiFMQ== X-Google-Smtp-Source: ABdhPJzckvbCSLwkV6UVW4HUnWakqlTa7QOsnqjqIeW3GsHZdhyF1iHqs8Bv/J4nzIR67aW6MRcByw== X-Received: by 2002:a63:b09:: with SMTP id 9mr5867755pgl.107.1619807297076; Fri, 30 Apr 2021 11:28:17 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::ef3]) by smtp.gmail.com with ESMTPSA id z65sm2930244pfb.13.2021.04.30.11.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 11:28:16 -0700 (PDT) From: Khem Raj To: libc-alpha@sourceware.org Subject: [PATCH] Propagate -ffile-prefix-map from CFLAGS to ASFLAGS. Date: Fri, 30 Apr 2021 11:28:14 -0700 Message-Id: <20210430182814.1164481-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2021 18:28:19 -0000 -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