From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 0F04A398702E for ; Thu, 29 Oct 2020 17:05:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0F04A398702E Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09TGYiiU191714; Thu, 29 Oct 2020 13:05:58 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 34fyx8v8fn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Oct 2020 13:05:58 -0400 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 09TGZnxQ002420; Thu, 29 Oct 2020 13:05:58 -0400 Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 34fyx8v8f5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Oct 2020 13:05:57 -0400 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 09TH49vx018745; Thu, 29 Oct 2020 17:05:57 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma05wdc.us.ibm.com with ESMTP id 34fy75h57s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Oct 2020 17:05:57 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 09TH5uQK53871006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Oct 2020 17:05:56 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE5B8112064; Thu, 29 Oct 2020 17:05:56 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E4DA112062; Thu, 29 Oct 2020 17:05:56 +0000 (GMT) Received: from ibm-toto.the-meissners.org (unknown [9.160.70.240]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTPS; Thu, 29 Oct 2020 17:05:56 +0000 (GMT) Date: Thu, 29 Oct 2020 13:05:54 -0400 From: Michael Meissner To: will schmidt Cc: Michael Meissner , gcc-patches@gcc.gnu.org, Segher Boessenkool , David Edelsohn , Bill Schmidt , Peter Bergner , Jeff Law , Jonathan Wakely Subject: Re: PowerPC: Allow C/C++ to change long double type on GLIBC 2.32. Message-ID: <20201029170554.GG10730@ibm-toto.the-meissners.org> Mail-Followup-To: Michael Meissner , will schmidt , gcc-patches@gcc.gnu.org, Segher Boessenkool , David Edelsohn , Bill Schmidt , Peter Bergner , Jeff Law , Jonathan Wakely References: <20201022221547.GA12469@ibm-toto.the-meissners.org> <422fd0751bf4d9a34960502f5f8e235ebbb2e768.camel@vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <422fd0751bf4d9a34960502f5f8e235ebbb2e768.camel@vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-10-29_08:2020-10-29, 2020-10-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 phishscore=0 clxscore=1015 suspectscore=0 impostorscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010290112 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2020 17:06:00 -0000 On Mon, Oct 26, 2020 at 05:48:48PM -0500, will schmidt wrote: > On Thu, 2020-10-22 at 18:15 -0400, Michael Meissner via Gcc-patches wrote: > > PowerPC: Allow C/C++ to change long double type on GLIBC 2.32. > > > > This is a new patch. It turns off the warning about switching the long double > > type via compile line if the GLIBC is 2.32 or newer. It only does this if the > > languages are C or C++, since those language libraries support switching the > > long double type. Other languages like Fortran don't have any current support > > to provide both sets of interfaces to the library. > > > > 2020-10-21 Michael Meissner > > > > * config/rs6000/rs6000.c (rs6000_option_override_internal): Allow > > long double type to be changed for C/C++ if glibc 2.32 or newer. > > --- > > gcc/config/rs6000/rs6000.c | 10 ++++++++-- > > 1 file changed, 8 insertions(+), 2 deletions(-) > > > > diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c > > index 50039c0a53d..940c15f3265 100644 > > --- a/gcc/config/rs6000/rs6000.c > > +++ b/gcc/config/rs6000/rs6000.c > > @@ -4158,10 +4158,16 @@ rs6000_option_override_internal (bool global_init_p) > > > > if (rs6000_ieeequad != TARGET_IEEEQUAD_DEFAULT && TARGET_LONG_DOUBLE_128) > > { > > + /* Determine if the user can change the default long double type at > > + compilation time. Only C and C++ support this, and you need GLIBC > > + 2.32 or newer. Only issue one warning. */ > > > static bool warned_change_long_double; > > - if (!warned_change_long_double) > > + > > + if (!warned_change_long_double > > + && (!OPTION_GLIBC > > + || (!lang_GNU_C () && !lang_GNU_CXX ()) > > + || ((TARGET_GLIBC_MAJOR * 1000) + TARGET_GLIBC_MINOR) < 2032)) > > { > > - warned_change_long_double = true; > > Does this need to be added back elsewhere? At the present time, we are not contemplating adding the full support to enable configuring GCC to use IEEE 128-bit long double in GCC 10 or earlier. This may change depending on customer demands. -- Michael Meissner, IBM IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA email: meissner@linux.ibm.com, phone: +1 (978) 899-4797