From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 1CBCC3858D3C for ; Mon, 24 Jan 2022 16:44:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1CBCC3858D3C Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20OFjj8G015503 for ; Mon, 24 Jan 2022 16:44:28 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3dsxnxj48s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 24 Jan 2022 16:44:28 +0000 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 20OFlFP8030335 for ; Mon, 24 Jan 2022 16:44:27 GMT Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com with ESMTP id 3dsxnxj48f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jan 2022 16:44:27 +0000 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 20OGhLMl013336; Mon, 24 Jan 2022 16:44:26 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma02wdc.us.ibm.com with ESMTP id 3dr9j9a5jg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jan 2022 16:44:26 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 20OGiPHx34079214 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jan 2022 16:44:25 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4BF11B2073; Mon, 24 Jan 2022 16:44:25 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B162DB206A; Mon, 24 Jan 2022 16:44:24 +0000 (GMT) Received: from [9.211.104.235] (unknown [9.211.104.235]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 24 Jan 2022 16:44:24 +0000 (GMT) Message-ID: Date: Mon, 24 Jan 2022 10:44:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Reply-To: wschmidt@linux.ibm.com Subject: Re: ppc64le: gcc 12 vs -mabi=ibmlongdouble To: Florian Weimer , DJ Delorie via Libc-alpha Cc: Tulio Magno Quites Machado Filho References: <87bl012lfs.fsf@oldenburg.str.redhat.com> From: Bill Schmidt In-Reply-To: <87bl012lfs.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Ozhb5c94IFgVrIv2-ZMi3xV090LzLfNj X-Proofpoint-GUID: xCnQEuJiSvBKymrpILQaJq8B6CBHbL0i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-24_08,2022-01-24_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 impostorscore=0 phishscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201240110 X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2022 16:44:30 -0000 I ran this by our GCC team, and the tentative consensus is that -mlong-double-64 should override -mabi=ibmlongdouble, rather than reporting an error in the compile flags. DJ, could you please open a bug against the GCC powerpc target? Thanks! Bill On 1/24/22 9:38 AM, Florian Weimer via Libc-alpha wrote: > * DJ Delorie via Libc-alpha: > >> I've been working on updating glibc for Fedora Rawhide, and have >> stumbled upon this issue (after working around the -Wuse-after-free >> issues with a cflags hack)... A few of the math tests explicitly add >> -mlong-double-64 but configure adds -mabi=ibmlongdouble >> >> I would guess that we need a "CFLAGS -= -mabi=ibmlongdouble" in all >> the places we add -mlong-double-64 but I don't see an easy way of >> doing that, nor am I sure that's a valid solution. Alternately, gcc >> could be changed to accept the conflicting flags in a meaningful way, >> if there is one. Is there an -mabi= that undoes the >> -mabi=ibmlongdouble that we can just add to the -mlong-double-64 flag >> lines? >> cc1: error: '-mabi=ibmlongdouble' requires '-mlong-double-128' > I was able to reproduce with a GCC 12 build configured using > --with-long-double-format=ieee. > > I tried the attached patch to remove the unwanted -mabi=ibmlongdouble, > but it does not work: it removes CFLAGS-*.c processing as a side effect. > > Any suggestions how we can fix this properly? > > Thanks, > Florian