Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2223252/?format=api
{ "id": 2223252, "url": "http://patchwork.ozlabs.org/api/patches/2223252/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260414202251.3532624-3-me@manueljacob.de/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260414202251.3532624-3-me@manueljacob.de>", "list_archive_url": null, "date": "2026-04-14T20:22:51", "name": "[v2,2/2] build: Set default for CPP_FOR_BUILD environment variable in all cases.", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "9da6fe71a630ac78a5571fe81f4d893775499db5", "submitter": { "id": 92972, "url": "http://patchwork.ozlabs.org/api/people/92972/?format=api", "name": "Manuel Jacob", "email": "me@manueljacob.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260414202251.3532624-3-me@manueljacob.de/mbox/", "series": [ { "id": 499892, "url": "http://patchwork.ozlabs.org/api/series/499892/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499892", "date": "2026-04-14T20:22:49", "name": "[v2,1/2] build: Preserve *_FOR_BUILD environment variables in all cases.", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/499892/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223252/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223252/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=manueljacob.de header.i=@manueljacob.de\n header.a=rsa-sha256 header.s=uberspace header.b=Q1keqfma;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (4096-bit key,\n unprotected) header.d=manueljacob.de header.i=@manueljacob.de\n header.a=rsa-sha256 header.s=uberspace header.b=Q1keqfma", "sourceware.org; dmarc=none (p=none dis=none)\n header.from=manueljacob.de", "sourceware.org; spf=pass smtp.mailfrom=manueljacob.de", "server2.sourceware.org;\n arc=none smtp.remote-ip=185.26.156.114", "adrastea.uberspace.de;\n\tauth=pass (plain)" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fwG1x1PFHz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 06:23:33 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 382E44BA2E1C\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 20:23:31 +0000 (GMT)", "from mailgate02.uberspace.is (mailgate02.uberspace.is\n [185.26.156.114])\n by sourceware.org (Postfix) with ESMTPS id 6C04A4BA2E2D\n for <gcc-patches@gcc.gnu.org>; Tue, 14 Apr 2026 20:22:59 +0000 (GMT)", "from adrastea.uberspace.de (adrastea.uberspace.de [185.26.156.139])\n by mailgate02.uberspace.is (Postfix) with ESMTPS id 0B98F18036B\n for <gcc-patches@gcc.gnu.org>; Tue, 14 Apr 2026 22:22:57 +0200 (CEST)", "(qmail 27144 invoked by uid 990); 14 Apr 2026 20:22:56 -0000", "from unknown (HELO unkown) (::1)\n by adrastea.uberspace.de (Haraka/3.1.1) with ESMTPSA;\n Tue, 14 Apr 2026 22:22:56 +0200" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 382E44BA2E1C", "OpenDKIM Filter v2.11.0 sourceware.org 6C04A4BA2E2D" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 6C04A4BA2E2D", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 6C04A4BA2E2D", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776198179; cv=none;\n b=D+QaSg4/xdVV31rRVfWmEID5e+qKUW7iS6L9PyDntL+IbaY9ZOn8pPtP0MGRRDq1mCgjqYdyO7iBMD4XtdN9Zd5QDq3oNUzqglwaoGMvahTE1bHkuNXWVcXQWWDAnGYsEucuGgTXDfW8STSwMd5FWPMmqxsyVeaddD94DOLRXQs=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776198179; c=relaxed/simple;\n bh=c8u4CQwgkLSPSHxBvWJQg6ESkISnclQaoS6DvqwAHek=;\n h=From:To:Subject:Date:Message-ID:MIME-Version:DKIM-Signature;\n b=pio96ZBxR+x58W104zDuSanOi8LIXrQUvsn1+1f7lTpmIlOZ/0penpCJKWjUp8weWzwXU3A0XQ7fLr3LqGfonZ9CuBR/EFe9l+sY/rRXfP6irwDzdIEpwaaJESewp4cKB+KbZhV8u13UhV2uirQbYna7sv1ROPQYCI/K2O//BEo=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "From": "Manuel Jacob <me@manueljacob.de>", "To": "gcc-patches@gcc.gnu.org", "Cc": "Paolo Bonzini <bonzini@gnu.org>, Nathanael Nerode <neroden@gcc.gnu.org>,\n Alexandre Oliva <aoliva@gcc.gnu.org>,\n Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, Manuel Jacob <me@manueljacob.de>", "Subject": "[PATCH v2 2/2] build: Set default for CPP_FOR_BUILD environment\n variable in all cases.", "Date": "Tue, 14 Apr 2026 22:22:51 +0200", "Message-ID": "<20260414202251.3532624-3-me@manueljacob.de>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260414202251.3532624-1-me@manueljacob.de>", "References": "<20260414202251.3532624-1-me@manueljacob.de>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Rspamd-Bar": "-----", "X-Rspamd-Report": "REPLY(-4) BAYES_HAM(-2.999999) MID_CONTAINS_FROM(1)\n MIME_GOOD(-0.1) R_MISSING_CHARSET(0.5)", "X-Rspamd-Score": "-5.599999", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=manueljacob.de; s=uberspace; h=from:to:cc:subject:date;\n bh=c8u4CQwgkLSPSHxBvWJQg6ESkISnclQaoS6DvqwAHek=;\n b=Q1keqfma+kofebJ8MR7WRu58LKcEhwoQDhnJVViGpiDjuxCpN3Nen/aeBWETWFOC72iGiyWIOY\n Ct7KO6atIVvyxRXJ0PuIckgDW5egeUDEarlmbRGTwypBrsGCLjQjCKg0JwpLDxMA3Xlmmr6gSudF\n xtajBKfNgjBZyKYcxqi4CGzhxgV6BVwK+9aG9etc7QmK/mrOhhk756iF98iczQiVSvecxLjLpnkR\n DbynAg4lIni7bBNGjy1cgdNI5zTjPuI9ETyYxEN8urGbGuZYbsZ3/k0P4/+f78AMRu07sYPbNMST\n ENVkR2u+u3Fr7LgLD0vh2RZM3kb/UENu6r9suoAK1fqmE1HoLqFBVdN4dumK3mTvJrizuaMjznJl\n CRlPUhkqvbhGQbgPE/8csYoH79livwtx67BHLLedD/XzB7BaZgae/Axe/VBgMrW6sla9lg/ZNJlF\n SWU6E3BTL2QL5YLr4Pbm87J0CPhgNtDacqwcbFM/lVG9Ldr0YllmuVp5GFUjXgbBMjcpET78Punn\n hijiiRyQCk5tpWzaldwf+UJ56+mJo0mYneiRJXgmcRRSmKIklZljbA4ay/q5x5/Cw5cZ20JixZLD\n YRo7ylPdLmg+ZV7EqKsxOQ6xx9ID9/CmSmkRZ6t981ar/dOP/17F+mCa0skn1qWYeP+UeASRo5Yr\n 8=", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "A default was set in the `\"${build}\" != \"${host}\"` case, but not in the `\"${build}\" = \"${host}\"` case.\n\nFor a working build, this change should not make any difference. CPP_FOR_BUILD is passed to build modules as CPP. If not set, autoconf macro AC_PROG_CC infers CPP by trying various programs. First, it tries \"$CC -E\", which CPP will default to in all cases with this patch.\n\nThe following command produces the same build directory with and without the patch:\n\n./configure --build=x86_64-make_autoconf_enable_cross_compiling-linux-gnu --host=x86_64-linux-gnu\n\nThe following command produces a Makefile containing `CPP_FOR_BUILD = ` without the patch and containing `CPP_FOR_BUILD = $(CC_FOR_BUILD) -E` with the patch:\n\n./configure\n\nChangeLog:\n\n\t* configure.ac: Set default for CPP_FOR_BUILD environment variable in all cases.\n\t* configure: Regenerate.\n\nSigned-off-by: Manuel Jacob <me@manueljacob.de>\n---\n configure | 2 +-\n configure.ac | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/configure b/configure\nindex 9a6407d2c6f..e2150f50aac 100755\n--- a/configure\n+++ b/configure\n@@ -4318,7 +4318,6 @@ if test \"${build}\" != \"${host}\" ; then\n AR_FOR_BUILD=${AR_FOR_BUILD-ar}\n AS_FOR_BUILD=${AS_FOR_BUILD-as}\n CC_FOR_BUILD=${CC_FOR_BUILD-gcc}\n- CPP_FOR_BUILD=\"${CPP_FOR_BUILD-\\$(CC_FOR_BUILD) -E}\"\n CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}\n DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}\n DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}\n@@ -4350,6 +4349,7 @@ else\n WINDRES_FOR_BUILD=\"${WINDRES_FOR_BUILD-\\$(WINDRES)}\"\n WINDMC_FOR_BUILD=\"${WINDMC_FOR_BUILD-\\$(WINDMC)}\"\n fi\n+CPP_FOR_BUILD=\"${CPP_FOR_BUILD-\\$(CC_FOR_BUILD) -E}\"\n \n ac_ext=c\n ac_cpp='$CPP $CPPFLAGS'\ndiff --git a/configure.ac b/configure.ac\nindex 0854638e8e8..edd53b2bb42 100644\n--- a/configure.ac\n+++ b/configure.ac\n@@ -1453,7 +1453,6 @@ if test \"${build}\" != \"${host}\" ; then\n AR_FOR_BUILD=${AR_FOR_BUILD-ar}\n AS_FOR_BUILD=${AS_FOR_BUILD-as}\n CC_FOR_BUILD=${CC_FOR_BUILD-gcc}\n- CPP_FOR_BUILD=\"${CPP_FOR_BUILD-\\$(CC_FOR_BUILD) -E}\"\n CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}\n DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}\n DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}\n@@ -1485,6 +1484,7 @@ else\n WINDRES_FOR_BUILD=\"${WINDRES_FOR_BUILD-\\$(WINDRES)}\"\n WINDMC_FOR_BUILD=\"${WINDMC_FOR_BUILD-\\$(WINDMC)}\"\n fi\n+CPP_FOR_BUILD=\"${CPP_FOR_BUILD-\\$(CC_FOR_BUILD) -E}\"\n \n AC_PROG_CC_C99\n AC_PROG_CXX\n", "prefixes": [ "v2", "2/2" ] }