From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 72ADD3858439; Wed, 5 Jan 2022 22:31:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 72ADD3858439 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 205Kat6j024924; Wed, 5 Jan 2022 22:31:26 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3dcrb7e8nx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jan 2022 22:31:25 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 205MRlxh006695; Wed, 5 Jan 2022 22:31:25 GMT Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0b-001b2d01.pphosted.com with ESMTP id 3dcrb7e8nk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jan 2022 22:31:25 +0000 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 205MQbMY011218; Wed, 5 Jan 2022 22:31:24 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma01wdc.us.ibm.com with ESMTP id 3daekb80uu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jan 2022 22:31:24 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 205MVN1P27984268 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 5 Jan 2022 22:31:23 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3F12FBE058; Wed, 5 Jan 2022 22:31:23 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 96552BE054; Wed, 5 Jan 2022 22:31:22 +0000 (GMT) Received: from toto.the-meissners.org (unknown [9.65.244.214]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTPS; Wed, 5 Jan 2022 22:31:22 +0000 (GMT) Date: Wed, 5 Jan 2022 17:31:20 -0500 From: Michael Meissner To: Jakub Jelinek Cc: Thomas Koenig , Michael Meissner , Bill Schmidt , "fortran@gcc.gnu.org" , Segher Boessenkool , Peter Bergner , David Edelsohn , gcc-patches@gcc.gnu.org Subject: Re: [power-ieee128] libquadmath: Use -mno-gnu-attribute in libquadmath Message-ID: Mail-Followup-To: Michael Meissner , Jakub Jelinek , Thomas Koenig , Bill Schmidt , "fortran@gcc.gnu.org" , Segher Boessenkool , Peter Bergner , David Edelsohn , gcc-patches@gcc.gnu.org References: <20220103152450.GK2664@tucnak> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220103152450.GK2664@tucnak> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: iA7sOG7CjcRV4eCGvuWxC1WWu80f0qmY X-Proofpoint-GUID: jyv6kaW6jXWxbPSRBCmaxvPYVY7N7FN5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-05_07,2022-01-04_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 spamscore=0 mlxlogscore=827 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201050140 X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, 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: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2022 22:31:27 -0000 On Mon, Jan 03, 2022 at 04:24:50PM +0100, Jakub Jelinek wrote: > Hi! > > Testing found that we also need libquadmath to be built with > -mno-gnu-attribute, otherwise -mabi=ieeelongdouble programs don't link. > > Ok for power-ieee128? > > 2022-01-03 Jakub Jelinek > > * configure.ac: Set XCFLAGS to -mno-gnu-attribute on > powerpc64le*-linux*. > * configure: Regenerated. I'm wondering whether we want to change things so that Fortran never uses long double on PowerPC, but instead it explicitly uses __float128 and __ibm128. But this breaks down in using printf/scanf, which don't have format options for those types. Unfortunately this won't work with the current code, since passing any of the 128-bit floating point types causes the flag 'rs6000_passes_long_double' to be set (and then the gnu attribute #4 is set). In theory, that should be set only if an explicit long double type is used. But the problem is when those things are set, you tend to only have modes and not types. To do it 'right', you probably need a GIMPLE pass that looks at the actual types used, not the modes. -- Michael Meissner, IBM PO Box 98, Ayer, Massachusetts, USA, 01432 email: meissner@linux.ibm.com