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 668C8384B0C1 for ; Wed, 15 Apr 2020 14:20:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 668C8384B0C1 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03FE3InB135675 for ; Wed, 15 Apr 2020 10:20:57 -0400 Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0b-001b2d01.pphosted.com with ESMTP id 30du1bgbd9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 15 Apr 2020 10:20:56 -0400 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 03FEKWVb023204 for ; Wed, 15 Apr 2020 14:20:56 GMT Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by ppma02wdc.us.ibm.com with ESMTP id 30b5h6jc72-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 15 Apr 2020 14:20:56 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 03FEKuOw53608728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 15 Apr 2020 14:20:56 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 02181112062 for ; Wed, 15 Apr 2020 14:20:56 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D2475112061 for ; Wed, 15 Apr 2020 14:20:55 +0000 (GMT) Received: from [9.85.131.218] (unknown [9.85.131.218]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP for ; Wed, 15 Apr 2020 14:20:55 +0000 (GMT) Subject: Re: [PATCH v3 1/6] ldbl-128ibm-compat: workaround GCC 9 C++ BZ 90731 To: libc-alpha@sourceware.org References: From: Paul E Murphy Message-ID: Date: Wed, 15 Apr 2020 09:20:55 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-04-15_04:2020-04-14, 2020-04-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=1 impostorscore=0 clxscore=1015 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004150098 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, 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: 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: Wed, 15 Apr 2020 14:20:58 -0000 On 4/6/20 2:12 PM, Paul E. Murphy via Libc-alpha wrote: > GCC 9 has a bug (BZ 90731) whereby __typeof does not correctly copy > exception specifiers[1]. Surprisingly, this can be quieted by declaring > "#pragma system_header", or if the headers are installed in a system > directory. > > Work around this by using the pragma for any gcc version between > 9.0 and 9.2 to ensure tests continue to compile. > > [1] Example error from g++ 9.2.1: > > In file included from ../include/sys/cdefs.h:3, > from ../include/features.h:465, > from ../bits/libc-header-start.h:33, > from ../math/math.h:27, > from ../include/math.h:7, > from test-math-isinff.cc:21: > ../libio/bits/stdio-ldbl.h:25:20: error: declaration of ‘int sprintf(char*, const char*, ...)’ has a different exception specifier > 25 | __LDBL_REDIR_DECL (sprintf) > | ^~~~~~~ > ../misc/sys/cdefs.h:461:26: note: in definition of macro ‘__LDBL_REDIR_DECL’ > 461 | extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128")); > | ^~~~ > In file included from ../include/stdio.h:5, > from test-math-isinff.cc:22: > ../libio/stdio.h:334:12: note: from previous declaration ‘int sprintf(char*, const char*, ...) throw ()’ > 334 | extern int sprintf (char *__restrict __s, > | ^~~~~~~ > --- > include/monetary.h | 8 ++++++++ > include/printf.h | 8 ++++++++ > include/stdio.h | 10 ++++++++++ > include/stdlib.h | 9 +++++++++ > include/wchar.h | 9 +++++++++ > 5 files changed, 44 insertions(+) Ping?