From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id 708803858404 for ; Tue, 7 Feb 2023 14:22:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 708803858404 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x12c.google.com with SMTP id cf42so22579183lfb.1 for ; Tue, 07 Feb 2023 06:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ypX3A1IlE97kp3RPaj3EBrPPVCrwk5hf82H2M1fyKr0=; b=ossKlzNMrFWqGq1ExQ3frTnvebjDEQSxV21+37CClIbucXfE7Yc0rAF3nAqk49P2YA tmldJWbvozimInRJHUa/wEULEr/saKkOlLfia5kqUPDjQuTZmcmdAWk3/HYZXO5JUURN CtdVo4MKACU8tL63lGs1UBslPl45EH1J1kv22oBIrPij1ZJFPE63Eo70zX2Z20fdWMZR JA5WMY91Pgi+XGaXARHTuHTPkls/tRhF2TfEesdjvup6PXRY/ylu9nUXDYQOniCEVsUF 7P2BfH2otP+oFxrPcjfgWzZR7u6ldq0vulEBbcJkySdm8Qd0H9vNH6696Qpc2zoyjtC7 vB3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ypX3A1IlE97kp3RPaj3EBrPPVCrwk5hf82H2M1fyKr0=; b=xQaLrU3ooKUz7XPsRS2RGKLjMH15+tmFjBm+fEmclqtV2sURkUZ6Hu/+UsMfEzcATs QRCGh99e+Wo79ACmP66pM9dcVqUd9dhNlcgZNbxALRgrnOrEKdMl+IuerFRQfsCpBy7+ iy5eugf13mMH+DSmAWL1C9tiIdFSaFYHPAS2wXzOJtesUjLRVBprdxfwFdS9C+vGPoQa ggb/3t4w5sKeiCgqGDEO1PAQAIU+Lnw+MpMgRqR5rSVbbBQPo5tFZCW90mXHCJk2v+st G15HmkQV16IOZnZuyfgYq63pqRH8X6lWQ0T4cbAp7SpE7SmoeprU9Yfx6xuN7qBMKU/N 1Csg== X-Gm-Message-State: AO0yUKUQS/AH4Q+4X01Qfk04AMVWPW8odrEiOtWnJHIJMiT1h5dkrzbv qPco/cq/vITF72iZYdthmlHMkEJV2cKKhX6eiXg= X-Google-Smtp-Source: AK7set8n1qXUL+3jTQZACfZnOQDUDYbx0y6yEQH+9s3bJ2uWUCC3XCRdX+hqEi2TWCGP+dXn6H6LHZAQhNvZZhvzUqg= X-Received: by 2002:a19:5212:0:b0:4d5:77b2:1773 with SMTP id m18-20020a195212000000b004d577b21773mr539196lfb.82.1675779773748; Tue, 07 Feb 2023 06:22:53 -0800 (PST) MIME-Version: 1.0 References: <21a6708b-f226-6def-fe28-42d804fc4f5f@linux.ibm.com> In-Reply-To: <21a6708b-f226-6def-fe28-42d804fc4f5f@linux.ibm.com> From: Richard Biener Date: Tue, 7 Feb 2023 15:22:41 +0100 Message-ID: Subject: Re: [PATCH 0/2] Repost of patches for solving the build on Fedora 36 problem To: Peter Bergner Cc: Michael Meissner , gcc-patches@gcc.gnu.org, Segher Boessenkool , "Kewen.Lin" , David Edelsohn , Will Schmidt , Bill Seurer Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, Feb 6, 2023 at 7:28 PM Peter Bergner wrote: > > On 2/3/23 1:42 AM, Richard Biener wrote: > > On Fri, Feb 3, 2023 at 6:44 AM Michael Meissner via Gcc-patches > > wrote: > >> > >> I'm reposting these two patches that allow GCC to build on Fedora 36 just to be > >> clear which patches I'm talking about. The issue is that if GCC is configured > >> with long double using the IEEE 128-bit representation, it currently cannot > >> build _mulkc3 and _divkc3 in libgcc. > > > > It's interesting that we do not see this with openSUSE where I configure with > > > > --with-cpu=power8 --with-tune=power9 --with-long-double-format=ieee > > --with-long-double-128 > > > > note this is ppc64le, we leave ppc64 and ppc with their default. > > That's strange, Bill just retested on our ppc64le openSUSE Tumbleweed system > using basically the same configure options and sees the ICE: > > /home/seurer/gcc/git/gcc-trunk/libgcc/config/rs6000/_mulkc3.c: In function '__mulkc3_sw': > /home/seurer/gcc/git/gcc-trunk/libgcc/config/rs6000/_mulkc3.c:97:1: internal compiler error: in fold_stmt, at gimple-range-fold.cc:522 > > He did not specify --with=cpu= or --with-tune=, which means he got > power8 defaults for both of those. It's hard for me to believe that > --with-tune=power9 could hide the issue, but we'll try that configuration > too. Do you have any other configure options that might affect things? The full configure is ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go,jit,m2 --enable-host-shared --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/13 --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --enable-ssp --disable-libssp --disable-libvtv --enable-cet=auto --disable-libcc1 --enable-plugin --with-bugurl=https://bugs.opensuse.org/ '--with-pkgversion=SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-13 --without-system-libunwind --with-cpu=power8 --with-tune=power9 --with-long-double-format=ieee --enable-secureplt --with-long-double-128 --enable-targets=powerpcle-linux --disable-multilib --with-build-config=bootstrap-lto-lean --enable-link-mutex --build=powerpc64le-suse-linux --host=powerpc64le-suse-linux and _mulkc3.c is built like /home/abuild/rpmbuild/BUILD/gcc-13.0.1+git5679/obj-powerpc64le-suse-linux/./gcc/xgcc -B/home/abuild/rpmbuild/BUILD/gcc-13.0.1+git5679/obj-powerpc64le-suse-linux/./gcc/ -B/usr/powerpc64le-suse-linux/bin/ -B/usr/powerpc64le-suse-linux/lib/ -isystem /usr/powerpc64le-suse-linux/include -isystem /usr/powerpc64le-suse-linux/sys-include -fno-checking -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -U_FORTIFY_SOURCE -O2 -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -U_FORTIFY_SOURCE -DIN_GCC -fPIC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include -I../../../libgcc/../libdecnumber/dpd -I../../../libgcc/../libdecnumber -DHAVE_CC_TLS -Wno-type-limits -mvsx -mfloat128 -mno-float128-hardware -mno-gnu-attribute -I../../../libgcc/soft-fp -I../../../libgcc/config/rs6000 -DFLOAT128_HW_INSNS -DFLOAT128_HW_INSNS_ISA3_1 -o _mulkc3.o -MT _mulkc3.o -MD -MP -MF _mulkc3.dep -c ../../../libgcc/config/rs6000/_mulkc3.c -fvisibility=hidden -DHIDE_EXPORTS > > Peter > >