From 2e834cd27703ad2e378a9dfd4d37f10bc376b7b0 Mon Sep 17 00:00:00 2001 From: Eugene Rozenfeld Date: Mon, 7 Aug 2023 13:07:43 +0200 Subject: [PATCH] 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. * Makefile.tpl: Disable warnings as errors for STAGEautofeedback --- Makefile.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.tpl b/Makefile.tpl index e34071a4aaf..b0fbf9fe01a 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -566,6 +566,9 @@ STAGEautoprofile_TFLAGS = $(STAGE2_TFLAGS) STAGEautofeedback_CFLAGS = $(STAGE3_CFLAGS) STAGEautofeedback_TFLAGS = $(STAGE3_TFLAGS) +# 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)) do-compare = @do_compare@ do-compare3 = $(do-compare) -- 2.30.2