]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Disable warnings as errors for STAGEautofeedback.
authorEugene Rozenfeld <erozen@microsoft.com>
Mon, 21 Nov 2022 22:06:17 +0000 (14:06 -0800)
committerEugene Rozenfeld <erozen@microsoft.com>
Wed, 17 May 2023 03:13:09 +0000 (20:13 -0700)
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

Makefile.in

index 33f3c8625577172209dab458e06b54dd4012d672..a89bac02351e7c75ef11fb86c59ab79e35f9a734 100644 (file)
@@ -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