{"id":2219569,"url":"http://patchwork.ozlabs.org/api/patches/2219569/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/2b4f2c2f-7206-4ea5-a544-d8bf54297c0f@gmail.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","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":"<2b4f2c2f-7206-4ea5-a544-d8bf54297c0f@gmail.com>","list_archive_url":null,"date":"2026-04-03T13:23:02","name":"[v3] mips: Fix ICE on mips64-elf by removing MAX_FIXED_MODE_SIZE [PR120144]","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"d4e1326646e2a9f26b48d9e96ef4ba19ca48402b","submitter":{"id":92812,"url":"http://patchwork.ozlabs.org/api/people/92812/?format=json","name":"Carter Rennick","email":"carter.rennick@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/2b4f2c2f-7206-4ea5-a544-d8bf54297c0f@gmail.com/mbox/","series":[{"id":498630,"url":"http://patchwork.ozlabs.org/api/series/498630/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=498630","date":"2026-04-03T13:23:02","name":"[v3] mips: Fix ICE on mips64-elf by removing MAX_FIXED_MODE_SIZE [PR120144]","version":3,"mbox":"http://patchwork.ozlabs.org/series/498630/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2219569/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2219569/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=n3k6YGPg;\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 (2048-bit key,\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=n3k6YGPg","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=74.125.224.43"],"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 4fnKG32m57z1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 00:24:59 +1100 (AEDT)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 405CA4BA23DB\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  3 Apr 2026 13:24:57 +0000 (GMT)","from mail-yx1-f43.google.com (mail-yx1-f43.google.com\n [74.125.224.43])\n by sourceware.org (Postfix) with ESMTPS id 45D7B4BA900B\n for <gcc-patches@gcc.gnu.org>; Fri,  3 Apr 2026 13:23:04 +0000 (GMT)","by mail-yx1-f43.google.com with SMTP id\n 956f58d0204a3-64eaf8aa893so1655135d50.3\n for <gcc-patches@gcc.gnu.org>; Fri, 03 Apr 2026 06:23:04 -0700 (PDT)","from [10.34.18.235] ([151.240.205.41])\n by smtp.gmail.com with ESMTPSA id\n 00721157ae682-7a36e42ff31sm21538087b3.6.2026.04.03.06.23.02\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Fri, 03 Apr 2026 06:23:02 -0700 (PDT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 405CA4BA23DB","OpenDKIM Filter v2.11.0 sourceware.org 45D7B4BA900B"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 45D7B4BA900B","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 45D7B4BA900B","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775222584; cv=none;\n b=C45zkO0C6ViSzuarLUHGF/b2FOS8/nxKLNZUsrdvriWtJR/ylToHaJPVgjzzTFsVedUwaoNcMasikCoFrawh6wLiF9w0uRQ4Icj6DywYlR8PDeH2Dk2Rum2qv57lvfqngDWgYw8NDx5C+8T7NskFmFlrvhv61LS4aFW3MEAPIZY=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775222584; c=relaxed/simple;\n bh=5ddT1HO4bGpDxj2ii4EOrJjfBI5OCKYa/qfX7yC1Mj0=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;\n b=KD6l2RDxYJ7JxAuB1fGBbbhCvgYYdGdhgQe8kdXL+WALB3JSAHZWzyB6cab7G3vmo1oOK4Zn4XP86JEhXslFJOber22c+xan0HZZRR+cD7kKCmEzHQj3ed4iKJNGQUvZeWFlSNynjTBfn+boLss5A3YzNIvWipbcc0gEteInYIA=","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=1775222583; x=1775827383; darn=gcc.gnu.org;\n h=in-reply-to:from:content-language:references:cc:to:subject\n :user-agent:mime-version:date:message-id:from:to:cc:subject:date\n :message-id:reply-to;\n bh=R5/Gxamnrp27pqFRf5KxGKTjZuX5ZA2EqQST5qKPVGk=;\n b=n3k6YGPg20uC0SJdjNs/6RKB/BdNVtSIbVZSErF89pcI45Y6tPA8efbWZyxfVHu4mi\n Y91J7tsLjUupym8u4flYsYyuwx/5Pg+E4OSECrU94gQgLc2AbeHkpn4kIim9x4Skpzwu\n wTDFKkCDNhd6i+LmSa+nEtXEe5HQG8yJNh+0mVtAfLwv5eNqEM30YtXsj3spU3HtSDuR\n FnEprwKS+h9f2PTe4j7o1j4vxWPCxrZ6BL71o3zjw6tfg4pAXf/1wslx+OHp0H+Pm9A8\n 2Nwq/mP2MfV+bLlkbTyL2tIVCssgE+E36Jglv86wPtaKF5/QgN1HtR74W+VOxIi25lId\n aYZw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775222583; x=1775827383;\n h=in-reply-to:from:content-language:references:cc:to:subject\n :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state\n :from:to:cc:subject:date:message-id:reply-to;\n bh=R5/Gxamnrp27pqFRf5KxGKTjZuX5ZA2EqQST5qKPVGk=;\n b=a2Jx+MmlfqD+ub5vtRCp3l8ZxxX5xcelb2LNty2SWTsv/7IAtDwOcpfYkA1C6krM+x\n nYKTDBsiyTCclPxc1qha9x0JN9PPgwYQXbW7rp1uokeCl2TnGETM7X3uo1fZ4rFj8W53\n WIk5s1fx7lCrvINc4dAU+kH1SKu4C0sURwkFhEmKJJNZYnSkbwfq/kttHXrCgzMO55Kj\n JALrBPp4KjPGaCPBo8bo7qsbYiUm2NI7QZFRvbp94N/QJPW9HeGj1FVW4Fjln3k3hPUn\n 3aegwZuaQ0rd0IHod6OvXILVO+nfFa4Ie7ft9PQBo/jAxL8LdVL2RUI0uXTXqUEccJQp\n gfFg==","X-Forwarded-Encrypted":"i=1;\n AJvYcCWyirEurn52lu0kbVFA9POgm56FLFZ9jO+DNKQNzcGFf/tdsudQVWYdpY8OomKcCzrkpvNWpLEn5Dyjpg==@gcc.gnu.org","X-Gm-Message-State":"AOJu0YzicI+7scAnClrI5EDOF0Zbd2Iutm2xmlyEJ8pCrj4m6JT58u0g\n UvZpFhSe4uzCHVXZ3snhS/j1QbWxbz7+rKayUqJ+8OiG6nTMpkMO2qkgedCaHUFUM1ye5Q==","X-Gm-Gg":"AeBDietDPqZp31XTllDlMIknnS6v5CQnXaaLX2U5O06kCU3ahQZZvep1fvhBr4t7wik\n bkI38lF3/PaMtdV5vslNLNef8Gm+g7k0je5oioB8a8iPffTLWs2C04lbLM/j8txz5PDiu7xEIF+\n puCHRUCeqzOdy2J9BXjLPAXdEqCIquXMjzkSNIi47pWlWxOLG93pAKeVG32KmPhxXMUta8AqCtr\n j+E9kjo3WjqWN74J3lapSGP7ma/y/DwvSWuIZwlWXYtykg24ms0V2r5Eaqa3FS6A5SLeyKfYlrr\n ad1HfSNVAqLlPIvSPBCmXu/eYdKRj1d978i7gZN00pvOoxdLc4aUt59P3xvgi9vEz8jNm28NuE/\n Ux7wJnQC2GSl7L42AFpk9LMdtvMA5VucUlUHTt+wu3T3/5yJ0NqZsTpULy+IdApG7/USTbgQkOW\n f+URIyeYkgia2eo8DJT9mo9NWS0SOv158xNP/er4vYcdzsTLU=","X-Received":"by 2002:a05:690c:6e85:b0:7a2:1f26:3d98 with SMTP id\n 00721157ae682-7a4d6c2a9ccmr31098567b3.23.1775222583267;\n Fri, 03 Apr 2026 06:23:03 -0700 (PDT)","Content-Type":"multipart/alternative;\n boundary=\"------------abJHZlJYTpNznq3utNSBqY8t\"","Message-ID":"<2b4f2c2f-7206-4ea5-a544-d8bf54297c0f@gmail.com>","Date":"Fri, 3 Apr 2026 09:23:02 -0400","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"[PATCH v3] mips: Fix ICE on mips64-elf by removing\n MAX_FIXED_MODE_SIZE [PR120144]","To":"Hans-Peter Nilsson <hp@bitrange.com>","Cc":"Andrew Pinski <andrew.pinski@oss.qualcomm.com>,\n \"Maciej W. Rozycki\" <macro@orcam.me.uk>, gcc-patches@gcc.gnu.org,\n syq@gcc.gnu.org, pinskia@gcc.gnu.org","References":"<a5faf1a4-fb0f-4bed-84e9-f1708b97abac@gmail.com>\n <alpine.DEB.2.21.2603141707450.55200@angie.orcam.me.uk>\n <alpine.DEB.2.21.2603141957040.55200@angie.orcam.me.uk>\n <CALvbMcCmnPAe9ZiaOhGZPXvBgiYCkQpqrbLfBuBc+w2kyASE0g@mail.gmail.com>\n <bc0b2fa5-b38a-48d7-9546-04d2c23c32bf@gmail.com>\n <alpine.BSF.2.20.16.2604012156050.4961@arjuna.pair.com>","Content-Language":"en-US","From":"Carter Rennick <carter.rennick@gmail.com>","In-Reply-To":"<alpine.BSF.2.20.16.2604012156050.4961@arjuna.pair.com>","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":"On 2026-04-01 10:03 p.m., Hans-Peter Nilsson wrote:\n> Just one thing I noticed:\n>\n>> gcc/testsuite/ChangeLog:\n>> \t* gcc.target/mips/pr120144.c: New test.\n> This should *not* be a mips-only test-case.  There's nothing\n> mips-specific about it; it has a sufficient int128-guard.  I\n> guess gcc.dg/torture is best?\n\nGood call. I've updated the patch with the test moved to gcc.dg/torture.\n\n---\n\n From 54dbf47c95509bbc7aafcfa171e0a9b1aff21c3f Mon Sep 17 00:00:00 2001\nFrom: Carter Rennick<carter.rennick@gmail.com>\nDate: Fri, 3 Apr 2026 13:07:38 +0000\nSubject: [PATCH] mips: Fix ICE on mips64-elf by removing MAX_FIXED_MODE_SIZE\n  override [PR120144]\n\nThe definition of MAX_FIXED_MODE_SIZE did not account for MIPS supporting\nTImode, which causes an internal compiler error when building libstdc++. Upon further\ninvestigation, this definition appears to be a historical mistake.\n\nThis patch removes the MAX_FIXED_MODE_SIZE override, which fixes the error.\n\n\tPR target/120144\n\ngcc/ChangeLog:\n\t* config/mips/mips.h (MAX_FIXED_MODE_SIZE): Remove erroneous definition.\n\ngcc/testsuite/ChangeLog:\n\t* gcc.dg/torture/pr120144.c: New test.\n\nSigned-off-by: Carter Rennick<carter.rennick@gmail.com>\n---\n  gcc/config/mips/mips.h                  | 4 ----\n  gcc/testsuite/gcc.dg/torture/pr120144.c | 8 ++++++++\n  2 files changed, 8 insertions(+), 4 deletions(-)\n  create mode 100644 gcc/testsuite/gcc.dg/torture/pr120144.c","diff":"diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h\nindex f52d0d2358c..c461d8aea3d 100644\n--- a/gcc/config/mips/mips.h\n+++ b/gcc/config/mips/mips.h\n@@ -1706,10 +1706,6 @@ FP_ASM_SPEC \"\\\n     doesn't support 128-bit integers for MIPS32 currently.  */\n  #define LONG_LONG_ACCUM_TYPE_SIZE (TARGET_64BIT ? 128 : 64)\n  \n-/* long double is not a fixed mode, but the idea is that, if we\n-   support long double, we also want a 128-bit integer type.  */\n-#define MAX_FIXED_MODE_SIZE MIPS_LONG_DOUBLE_TYPE_SIZE\n-\n  /* Width in bits of a pointer.  */\n  #ifndef POINTER_SIZE\n  #define POINTER_SIZE ((TARGET_LONG64 && TARGET_64BIT) ? 64 : 32)\ndiff --git a/gcc/testsuite/gcc.dg/torture/pr120144.c b/gcc/testsuite/gcc.dg/torture/pr120144.c\nnew file mode 100644\nindex 00000000000..e254771ea78\n--- /dev/null\n+++ b/gcc/testsuite/gcc.dg/torture/pr120144.c\n@@ -0,0 +1,8 @@\n+/* PR target/120144 */\n+/* { dg-do compile } */\n+/* { dg-require-effective-target int128 } */\n+\n+int f(unsigned __int128 t)\n+{\n+  return __builtin_clzg(t);\n+}\n","prefixes":["v3"]}