Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217462/?format=api
{ "id": 2217462, "url": "http://patchwork.ozlabs.org/api/patches/2217462/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260329125251.1629-1-rigoligo03@gmail.com/", "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": "<20260329125251.1629-1-rigoligo03@gmail.com>", "list_archive_url": null, "date": "2026-03-29T12:52:51", "name": "LoongArch: fix build failure of loongarch32-*-elf* target", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "20b6c2258d7289bbc1aec16ee25090bb1aa1fc77", "submitter": { "id": 93001, "url": "http://patchwork.ozlabs.org/api/people/93001/?format=api", "name": "Wu Haotian", "email": "rigoligo03@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260329125251.1629-1-rigoligo03@gmail.com/mbox/", "series": [ { "id": 497917, "url": "http://patchwork.ozlabs.org/api/series/497917/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=497917", "date": "2026-03-29T12:52:51", "name": "LoongArch: fix build failure of loongarch32-*-elf* target", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497917/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217462/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217462/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 (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=L+ExTcnb;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.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 (2048-bit key,\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=L+ExTcnb", "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "sourceware.org; spf=pass smtp.mailfrom=gmail.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.216.43" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 4fkDvV4xrxz1y1P\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 23:58:13 +1100 (AEDT)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id EA8244BA23FE\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 12:58:10 +0000 (GMT)", "from mail-pj1-f43.google.com (mail-pj1-f43.google.com\n [209.85.216.43])\n by sourceware.org (Postfix) with ESMTPS id E765B4BA543C\n for <gcc-patches@gcc.gnu.org>; Sun, 29 Mar 2026 12:57:42 +0000 (GMT)", "by mail-pj1-f43.google.com with SMTP id\n 98e67ed59e1d1-35c124d2613so2378539a91.2\n for <gcc-patches@gcc.gnu.org>; Sun, 29 Mar 2026 05:57:42 -0700 (PDT)", "from localhost.localdomain\n ([2408:8256:3084:209f:1cd8:10c:8645:de49])\n by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c769160b165sm3743065a12.0.2026.03.29.05.57.39\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 29 Mar 2026 05:57:41 -0700 (PDT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org EA8244BA23FE", "OpenDKIM Filter v2.11.0 sourceware.org E765B4BA543C" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org E765B4BA543C", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org E765B4BA543C", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774789063; cv=none;\n b=cvA92YrG6m5evVFwMGTjD2W9PDi9BXZpc8/PFCJ5ToFqwZlJJVi7wBxJE6ixJrZpWBEHOjXcAMpi4Bdkyi+tK6hO1vYwYHS8knsV6y0nLRNvriwZsaWW7Ye/Bhg2tsPuZeytm57Hdql/PT5LD6Ky5eEZjhyupqTj1NJR/at8uzA=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774789063; c=relaxed/simple;\n bh=CyS6ZDvAuYwbJm263HpxYsV9QO5gZxK++UlFrC3ldYI=;\n h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;\n b=o3R3uO7NGY6uChpkFdhgna8cIejuRKAG0qP7GahV3tV9ygzJugp74H1J9jJSVW7+yzircUiRPtubfhcKXtHGrztaHtkNPEgZ1aD6mQp8oufylxENHciU3wc3gzge0MejmI1OgTwWCeVM+XTEbF0eeg/R1HN29kyzUtcEVrAkKs8=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774789062; x=1775393862; darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=h5Oo21PxgMbHDFXHGx7VTjsvjFElBet6wDp128f+pM0=;\n b=L+ExTcnbVvNRofodSZ42P6ke1HUWwBjBTOBSXFzWbcLFiX7VMudRoNEya224GSi5sD\n DClpVjqBzO80tq0JDv9h2h+6eY5Rb3szdY5lS3OFRbz+/wG1q7RXdxQ9QzxKGTl0TZWn\n FQXbvEQjqpW9jXgWv9gx8p9yvXkjgyVHU/7xyMpAJlW0ai24kXBgDEICDyoectqCywE2\n 8Cc4lIAX4YvK8yMlBH1C7RQJ9o2zP2XkZBSbhLPWiraS7/3A3RxOnxI35Q8wNNK76tRM\n qTNV6XrCpOYimBxlrCZwdgyHnn1cs24jTVvTcnFtwge+R3jEeqX3qdQ2CH0CxAVoApmn\n 6EGQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774789062; x=1775393862;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=h5Oo21PxgMbHDFXHGx7VTjsvjFElBet6wDp128f+pM0=;\n b=Xc01HtplfBg4KTykG7nQiwDMXds8SEI6sIAZqO7AFwGUTsUWK6oE2Xo32VLrX04Xam\n Sf+Xk1JZLnWM/1jHzk8JKuMbjRrYdUHOizdCR3mWU51FCuE8St/hO/9byxH8m0kq6s2p\n lWae0eWWKjG2O+NgW/R5JKSzK3BIfVXtKl144ImwAKzyQ/rM8bZdawIC3ELHfOS0UbJz\n 8jxthmgXG5oVhlD0M+DEPwDFxtdkLKDEZUn0QQ8o50f7fP0E6ohpurYbGPh8uTUKwp8Y\n xOI6qRsQcF4F2jTA5C8gulaG07LbDS+LUulPE4x20vKEYe9lEc7UpTTH9pbqshozzEzj\n ERRg==", "X-Gm-Message-State": "AOJu0YxGTnyt+9XWzFWuVRaTtIvjS0QPyBL1dKwU13aqMuqYpWbZuV5p\n cuN/2shrFSw4sI92rEEZhXrcoNkpbK5W1gh2ezDt8lBHra2hhFTLshg6wzUXTOCZ", "X-Gm-Gg": "ATEYQzzv2AjC5q7u/tquen089UHuLMeiw7QKQTzarxkku59DQJttnmVNcJSJNoxV2le\n y3eHFH2RaNgIWNAEVMaEaX/EKz0hkTW21pEMxBRUfbs76NI3G8i0wToCQeteoKBx4PvgtPbgmdX\n lH2KApOb6J5+9sn3IBfEiUy7WmcfLm+UvAVxDqLMBsKoUfAPXnwJLJuGHff1ypVL197eyTrzE7G\n vc/dshQdEtzGatUfGkESfxCB2cbp6CoIxw7ukQQjt8NLBFIFcjepozCgzs7hDn+Xo//ZnJEKne/\n JSSDHGFgmQjOgTVarp2ZN7gWuWxGWZeIOL6/LPU0u5VRIWA3NyhesURBsq1Jm4LjHJcKndUN/rA\n wJzi9jw3cMRjcyXmlhqrNdLUmtp6XBznY04f4zMbihw7sg+t7W9dsbGDxNwe21ayzDNQ21+64IB\n fUobqMF5pHfMigcMtuwpOmzx7MvVWAFFlYsKnOzilHNrzsLA==", "X-Received": "by 2002:a17:90b:2784:b0:35d:a0b7:960f with SMTP id\n 98e67ed59e1d1-35da0b7986emr1655526a91.5.1774789061572;\n Sun, 29 Mar 2026 05:57:41 -0700 (PDT)", "From": "Wu Haotian <rigoligo03@gmail.com>", "To": "gcc-patches@gcc.gnu.org", "Cc": "chenglulu@loongson.cn,\n\tWu Haotian <rigoligo03@gmail.com>", "Subject": "[PATCH] LoongArch: fix build failure of loongarch32-*-elf* target", "Date": "Sun, 29 Mar 2026 20:52:51 +0800", "Message-Id": "<20260329125251.1629-1-rigoligo03@gmail.com>", "X-Mailer": "git-send-email 2.38.1.windows.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Bare-metal LoongArch target triple loongarch*-*-elf* contains references\nto \"loongarch/linux.h\" and \"loongarch/t-linux\", causing build failure for\nGCC targeting loongarch32-*-elf*.\n\nThis commit removes the extra Linux references, and is tested by building\na cross compiler for the loongarch32-picolibc-elf target.\n\ngcc/ChangeLog:\n * config.gcc: removed linux.h and t-linux for loongarch*-*-elf* targets\n\nSigned-off-by: Wu Haotian <rigoligo03@gmail.com>\n---\n gcc/config.gcc | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/gcc/config.gcc b/gcc/config.gcc\nindex 036baa714d7..34591bff970 100644\n--- a/gcc/config.gcc\n+++ b/gcc/config.gcc\n@@ -2672,8 +2672,8 @@ loongarch*-*-linux*)\n \n loongarch*-*-elf*)\n \ttm_file=\"elfos.h newlib-stdint.h ${tm_file}\"\n-\ttm_file=\"${tm_file} loongarch/elf.h loongarch/linux.h loongarch/loongarch-driver.h\"\n-\ttmake_file=\"${tmake_file} loongarch/t-multilib loongarch/t-linux\"\n+\ttm_file=\"${tm_file} loongarch/elf.h loongarch/loongarch-driver.h\"\n+\ttmake_file=\"${tmake_file} loongarch/t-multilib\"\n \tgnu_ld=yes\n \tgas=yes\n \n", "prefixes": [] }