summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Rozenfeld <erozen@microsoft.com>2022-11-21 14:06:17 -0800
committerEugene Rozenfeld <erozen@microsoft.com>2023-05-16 20:13:09 -0700
commitd709841ae0f53492deffa2e639d249e00994e9d6 (patch)
treef24a4b1cc7ac0fe4078a4c9621c00615763854e1
parent5eb7d560626e427673c53723ed430c4bb5721f33 (diff)
downloadgcc-d709841ae0f53492deffa2e639d249e00994e9d6.tar.gz
Disable warnings as errors for STAGEautofeedback.
Compilation during STAGEautofeedback produces additional warnings since inlining decisions with -fauto-profile are different from other builds. This patches disables warnings as errors for STAGEautofeedback. Tested on x86_64-pc-linux-gnu. ChangeLog: * Makefile.in: Disable warnings as errors for STAGEautofeedback
-rw-r--r--Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 33f3c862557..a89bac02351 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -590,8 +590,9 @@ STAGEautofeedback_CXXFLAGS = $(CXXFLAGS)
STAGEautofeedback_CXXFLAGS = $(STAGEautofeedback_CFLAGS)
@endif target-libstdc++-v3-bootstrap
STAGEautofeedback_TFLAGS = $(STAGE_TFLAGS)
-STAGEautofeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
-
+# Disable warnings as errors since inlining decisions with -fauto-profile
+# may result in additional warnings.
+STAGEautofeedback_CONFIGURE_FLAGS = $(filter-out --enable-werror-always,$(STAGE_CONFIGURE_FLAGS))
# By default, C and C++ are the only stage1 languages, because they are the
# only ones we require to build with the bootstrap compiler, and also the