From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F1C381581EE for ; Thu, 10 Apr 2025 09:08:42 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id D4AC0343589 for ; Thu, 10 Apr 2025 09:08:42 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id DB6F71102B2; Thu, 10 Apr 2025 09:08:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id D49141102B2 for ; Thu, 10 Apr 2025 09:08:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C8E334357C for ; Thu, 10 Apr 2025 09:08:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 04A111436 for ; Thu, 10 Apr 2025 09:08:40 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1744276095.d3eeedf5da5f9bb0af0c6b143e87311033ee39be.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 15.0.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 15.0.0/gentoo/84_all_PR116975.patch 15.0.0/gentoo/README.history X-VCS-Directories: 15.0.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d3eeedf5da5f9bb0af0c6b143e87311033ee39be X-VCS-Branch: master Date: Thu, 10 Apr 2025 09:08:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d96f5f45-4609-48c6-b540-9bb3d9d752f7 X-Archives-Hash: 5046617b498d14ab9f3d17870abf46ee commit: d3eeedf5da5f9bb0af0c6b143e87311033ee39be Author: Sam James gentoo org> AuthorDate: Thu Apr 10 09:07:33 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Apr 10 09:08:15 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=d3eeedf5 15.0.0: support STAGE* GDCFLAGS Bug: https://gcc.gnu.org/PR116975 Signed-off-by: Sam James gentoo.org> 15.0.0/gentoo/84_all_PR116975.patch | 320 ++++++++++++++++++++++++++++++++++++ 15.0.0/gentoo/README.history | 1 + 2 files changed, 321 insertions(+) diff --git a/15.0.0/gentoo/84_all_PR116975.patch b/15.0.0/gentoo/84_all_PR116975.patch new file mode 100644 index 0000000..443cb0f --- /dev/null +++ b/15.0.0/gentoo/84_all_PR116975.patch @@ -0,0 +1,320 @@ +https://inbox.sourceware.org/gcc-patches/20250303221451.131585-1-ibuclaw@gdcproject.org/ + +From 17de0be9cff1a33289736b3b86cd0428e17aa9aa Mon Sep 17 00:00:00 2001 +Message-ID: <17de0be9cff1a33289736b3b86cd0428e17aa9aa.1744276017.git.sam@gentoo.org> +From: Iain Buclaw +Date: Mon, 3 Mar 2025 23:14:51 +0100 +Subject: [PATCH] Makefile.tpl: Implement per-stage GDCFLAGS [PR116975] + +Hi, + +This patch implements STAGE1_GDCFLAGS and others to the configure +machinery, allowing the GDCFLAGS for each bootstrap stage of building +gdc to be overriden, as is the case with CXXFLAGS for other front-ends. + +This is limited to just the generation of recipes for the +configure-stage-gcc and all-stage-gcc, as a D compiler is not optionally +needed by any other module. + +OK for mainline? + +Regards, +Iain. +--- + Makefile.in | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ + Makefile.tpl | 15 +++++++++++++-- + 2 files changed, 64 insertions(+), 2 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index b1ed67d3d4f1..202a504e565f 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -620,6 +620,26 @@ STAGE1_CONFIGURE_FLAGS = $(STAGE1_CHECKING) \ + --disable-build-format-warnings + + @if target-libphobos-bootstrap ++# Defaults for each stage if we're bootstrapping D. ++ ++STAGE1_GDCFLAGS = $(GDCFLAGS) ++ ++STAGE2_GDCFLAGS = $(GDCFLAGS) ++ ++STAGE3_GDCFLAGS = $(GDCFLAGS) ++ ++STAGE4_GDCFLAGS = $(GDCFLAGS) ++ ++STAGEprofile_GDCFLAGS = $(GDCFLAGS) ++ ++STAGEtrain_GDCFLAGS = $(GDCFLAGS) ++ ++STAGEfeedback_GDCFLAGS = $(GDCFLAGS) ++ ++STAGEautoprofile_GDCFLAGS = $(GDCFLAGS) ++ ++STAGEautofeedback_GDCFLAGS = $(GDCFLAGS) ++ + STAGE1_CONFIGURE_FLAGS += --with-libphobos-druntime-only + STAGE2_CONFIGURE_FLAGS += --with-libphobos-druntime-only + @endif target-libphobos-bootstrap +@@ -633,6 +653,10 @@ STAGE2_CFLAGS += -fno-checking + STAGE2_TFLAGS += -fno-checking + STAGE3_CFLAGS += -fchecking=1 + STAGE3_TFLAGS += -fchecking=1 ++@if target-libphobos-bootstrap ++STAGE2_GDCFLAGS += -fno-checking ++STAGE3_GDCFLAGS += -fchecking=1 ++@endif target-libphobos-bootstrap + + STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate + STAGEprofile_TFLAGS = $(STAGE2_TFLAGS) +@@ -922,38 +946,47 @@ BASE_FLAGS_TO_PASS = \ + "LEAN=$(LEAN)" \ + "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \ + "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \ ++ "STAGE1_GDCFLAGS=$(STAGE1_GDCFLAGS)" \ + "STAGE1_GENERATOR_CFLAGS=$(STAGE1_GENERATOR_CFLAGS)" \ + "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \ + "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \ + "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \ ++ "STAGE2_GDCFLAGS=$(STAGE2_GDCFLAGS)" \ + "STAGE2_GENERATOR_CFLAGS=$(STAGE2_GENERATOR_CFLAGS)" \ + "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \ + "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \ + "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \ ++ "STAGE3_GDCFLAGS=$(STAGE3_GDCFLAGS)" \ + "STAGE3_GENERATOR_CFLAGS=$(STAGE3_GENERATOR_CFLAGS)" \ + "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \ + "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \ + "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \ ++ "STAGE4_GDCFLAGS=$(STAGE4_GDCFLAGS)" \ + "STAGE4_GENERATOR_CFLAGS=$(STAGE4_GENERATOR_CFLAGS)" \ + "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \ + "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \ + "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \ ++ "STAGEprofile_GDCFLAGS=$(STAGEprofile_GDCFLAGS)" \ + "STAGEprofile_GENERATOR_CFLAGS=$(STAGEprofile_GENERATOR_CFLAGS)" \ + "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \ + "STAGEtrain_CFLAGS=$(STAGEtrain_CFLAGS)" \ + "STAGEtrain_CXXFLAGS=$(STAGEtrain_CXXFLAGS)" \ ++ "STAGEtrain_GDCFLAGS=$(STAGEtrain_GDCFLAGS)" \ + "STAGEtrain_GENERATOR_CFLAGS=$(STAGEtrain_GENERATOR_CFLAGS)" \ + "STAGEtrain_TFLAGS=$(STAGEtrain_TFLAGS)" \ + "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \ + "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \ ++ "STAGEfeedback_GDCFLAGS=$(STAGEfeedback_GDCFLAGS)" \ + "STAGEfeedback_GENERATOR_CFLAGS=$(STAGEfeedback_GENERATOR_CFLAGS)" \ + "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \ + "STAGEautoprofile_CFLAGS=$(STAGEautoprofile_CFLAGS)" \ + "STAGEautoprofile_CXXFLAGS=$(STAGEautoprofile_CXXFLAGS)" \ ++ "STAGEautoprofile_GDCFLAGS=$(STAGEautoprofile_GDCFLAGS)" \ + "STAGEautoprofile_GENERATOR_CFLAGS=$(STAGEautoprofile_GENERATOR_CFLAGS)" \ + "STAGEautoprofile_TFLAGS=$(STAGEautoprofile_TFLAGS)" \ + "STAGEautofeedback_CFLAGS=$(STAGEautofeedback_CFLAGS)" \ + "STAGEautofeedback_CXXFLAGS=$(STAGEautofeedback_CXXFLAGS)" \ ++ "STAGEautofeedback_GDCFLAGS=$(STAGEautofeedback_GDCFLAGS)" \ + "STAGEautofeedback_GENERATOR_CFLAGS=$(STAGEautofeedback_GENERATOR_CFLAGS)" \ + "STAGEautofeedback_TFLAGS=$(STAGEautofeedback_TFLAGS)" \ + $(CXX_FOR_TARGET_FLAG_TO_PASS) \ +@@ -12134,6 +12167,7 @@ configure-stage1-gcc: + $(HOST_EXPORTS) \ + CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGE1_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12168,6 +12202,7 @@ configure-stage2-gcc: + $(POSTSTAGE1_HOST_EXPORTS) \ + CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGE2_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12202,6 +12237,7 @@ configure-stage3-gcc: + $(POSTSTAGE1_HOST_EXPORTS) \ + CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGE3_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12236,6 +12272,7 @@ configure-stage4-gcc: + $(POSTSTAGE1_HOST_EXPORTS) \ + CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGE4_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12270,6 +12307,7 @@ configure-stageprofile-gcc: + $(POSTSTAGE1_HOST_EXPORTS) \ + CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGEprofile_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12304,6 +12342,7 @@ configure-stagetrain-gcc: + $(POSTSTAGE1_HOST_EXPORTS) \ + CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGEtrain_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage train in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12338,6 +12377,7 @@ configure-stagefeedback-gcc: + $(POSTSTAGE1_HOST_EXPORTS) \ + CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGEfeedback_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12372,6 +12412,7 @@ configure-stageautoprofile-gcc: + $(POSTSTAGE1_HOST_EXPORTS) \ + CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGEautoprofile_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage autoprofile in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12406,6 +12447,7 @@ configure-stageautofeedback-gcc: + $(POSTSTAGE1_HOST_EXPORTS) \ + CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \ + CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \ ++ GDCFLAGS="$(STAGEautofeedback_GDCFLAGS)"; export GDCFLAGS; \ + LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage autofeedback in $(HOST_SUBDIR)/gcc; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \ +@@ -12468,6 +12510,7 @@ all-stage1-gcc: configure-stage1-gcc + CFLAGS="$(STAGE1_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGE1_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGE1_GDCFLAGS)" \ + LIBCFLAGS="$(LIBCFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +@@ -12513,6 +12556,7 @@ all-stage2-gcc: configure-stage2-gcc + CFLAGS="$(STAGE2_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGE2_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGE2_GDCFLAGS)" \ + LIBCFLAGS="$(STAGE2_CFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +@@ -12556,6 +12600,7 @@ all-stage3-gcc: configure-stage3-gcc + CFLAGS="$(STAGE3_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGE3_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGE3_GDCFLAGS)" \ + LIBCFLAGS="$(STAGE3_CFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +@@ -12599,6 +12644,7 @@ all-stage4-gcc: configure-stage4-gcc + CFLAGS="$(STAGE4_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGE4_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGE4_GDCFLAGS)" \ + LIBCFLAGS="$(STAGE4_CFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +@@ -12642,6 +12688,7 @@ all-stageprofile-gcc: configure-stageprofile-gcc + CFLAGS="$(STAGEprofile_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGEprofile_GDCFLAGS)" \ + LIBCFLAGS="$(STAGEprofile_CFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +@@ -12685,6 +12732,7 @@ all-stagetrain-gcc: configure-stagetrain-gcc + CFLAGS="$(STAGEtrain_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGEtrain_GDCFLAGS)" \ + LIBCFLAGS="$(STAGEtrain_CFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +@@ -12728,6 +12776,7 @@ all-stagefeedback-gcc: configure-stagefeedback-gcc + CFLAGS="$(STAGEfeedback_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGEfeedback_GDCFLAGS)" \ + LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +@@ -12771,6 +12820,7 @@ all-stageautoprofile-gcc: configure-stageautoprofile-gcc + CFLAGS="$(STAGEautoprofile_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGEautoprofile_GDCFLAGS)" \ + LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +@@ -12814,6 +12864,7 @@ all-stageautofeedback-gcc: configure-stageautofeedback-gcc + CFLAGS="$(STAGEautofeedback_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \ + CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \ ++ GDCFLAGS="$(STAGEautofeedback_GDCFLAGS)" \ + LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \ +diff --git a/Makefile.tpl b/Makefile.tpl +index 7dccf91ed8ec..15b99ef31eed 100644 +--- a/Makefile.tpl ++++ b/Makefile.tpl +@@ -543,6 +543,10 @@ STAGE1_CONFIGURE_FLAGS = $(STAGE1_CHECKING) \ + --disable-build-format-warnings + + @if target-libphobos-bootstrap ++# Defaults for each stage if we're bootstrapping D. ++[+ FOR bootstrap-stage +] ++STAGE[+id+]_GDCFLAGS = $(GDCFLAGS) ++[+ ENDFOR bootstrap-stage +] + STAGE1_CONFIGURE_FLAGS += --with-libphobos-druntime-only + STAGE2_CONFIGURE_FLAGS += --with-libphobos-druntime-only + @endif target-libphobos-bootstrap +@@ -556,6 +560,10 @@ STAGE2_CFLAGS += -fno-checking + STAGE2_TFLAGS += -fno-checking + STAGE3_CFLAGS += -fchecking=1 + STAGE3_TFLAGS += -fchecking=1 ++@if target-libphobos-bootstrap ++STAGE2_GDCFLAGS += -fno-checking ++STAGE3_GDCFLAGS += -fchecking=1 ++@endif target-libphobos-bootstrap + + STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate + STAGEprofile_TFLAGS = $(STAGE2_TFLAGS) +@@ -710,6 +718,7 @@ BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \ + "[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +][+ FOR bootstrap-stage +] \ + "STAGE[+id+]_CFLAGS=$(STAGE[+id+]_CFLAGS)" \ + "STAGE[+id+]_CXXFLAGS=$(STAGE[+id+]_CXXFLAGS)" \ ++ "STAGE[+id+]_GDCFLAGS=$(STAGE[+id+]_GDCFLAGS)" \ + "STAGE[+id+]_GENERATOR_CFLAGS=$(STAGE[+id+]_GENERATOR_CFLAGS)" \ + "STAGE[+id+]_TFLAGS=$(STAGE[+id+]_TFLAGS)"[+ ENDFOR bootstrap-stage +] \ + $(CXX_FOR_TARGET_FLAG_TO_PASS) \ +@@ -1237,7 +1246,8 @@ configure-stage[+id+]-[+prefix+][+module+]: + CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ + LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS;[+ ELSE prefix +] \ + CFLAGS="$(STAGE[+id+]_CFLAGS)"; export CFLAGS; \ +- CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"; export CXXFLAGS;[+ IF prev +] \ ++ CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"; export CXXFLAGS;[+ IF (= (get "module") "gcc") +] \ ++ GDCFLAGS="$(STAGE[+id+]_GDCFLAGS)"; export GDCFLAGS;[+ ENDIF +][+ IF prev +] \ + LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \ + LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +]; export LIBCFLAGS;[+ + ENDIF prefix +] [+extra_exports+] \ +@@ -1307,7 +1317,8 @@ all-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix+][+module+] + LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"[+ ELSE prefix +] \ + CFLAGS="$(STAGE[+id+]_CFLAGS)" \ + GENERATOR_CFLAGS="$(STAGE[+id+]_GENERATOR_CFLAGS)" \ +- CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"[+ IF prev +] \ ++ CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"[+ IF (= (get "module") "gcc") +] \ ++ GDCFLAGS="$(STAGE[+id+]_GDCFLAGS)"[+ ENDIF +][+ IF prev +] \ + LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \ + LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +][+ ENDIF prefix +] \ + CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ + +base-commit: 72dff34bcdd6f05b64bbf07739ab815e673b5946 +-- +2.49.0 + diff --git a/15.0.0/gentoo/README.history b/15.0.0/gentoo/README.history index 832e5e8..190b29b 100644 --- a/15.0.0/gentoo/README.history +++ b/15.0.0/gentoo/README.history @@ -7,6 +7,7 @@ - 87_all_simplify-rtx-Fix-shortcut-for-vector-eq-ne.patch - 88_all_PR119614.patch + 83_all_PR119687.patch + + 84_all_PR116975.patch 53 7 April 2025