From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26607 invoked by alias); 2 Feb 2006 18:59:09 -0000 Received: (qmail 26587 invoked by uid 22791); 2 Feb 2006 18:59:09 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 02 Feb 2006 18:59:06 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id k12Ix0k3017045; Thu, 2 Feb 2006 19:59:01 +0100 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id k12Ix0u1017044; Thu, 2 Feb 2006 19:59:00 +0100 Date: Thu, 02 Feb 2006 18:59:00 -0000 From: Jakub Jelinek To: Roland McGrath Cc: Glibc hackers Subject: [PATCH] Fix math.h for C++ with -mlong-double-64 Message-ID: <20060202185900.GE4625@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00013.txt.bz2 Hi! C++ has strict rules where it wants to see throw (). 2006-02-02 Jakub Jelinek * math/math.h (__nldbl_nexttowardf): Put __THROW before __attribute__ ((__const__)). (__MATHDECL_2): Use __REDIRECT_NTH instead of __REDIRECT followed by __THROW. --- libc/math/math.h 2006-02-02 05:23:04.000000000 -0500 +++ libc/math/math.h 2006-02-02 13:54:37.000000000 -0500 @@ -103,7 +103,7 @@ __BEGIN_DECLS # ifdef __USE_ISOC99 extern float __nldbl_nexttowardf (float __x, long double __y) - __attribute__ ((__const__)) __THROW; + __THROW __attribute__ ((__const__)); # ifdef __REDIRECT_NTH extern float __REDIRECT_NTH (nexttowardf, (float __x, long double __y), __nldbl_nexttowardf) @@ -118,8 +118,8 @@ extern double __REDIRECT_NTH (nexttoward # undef __MATHDECL_1 # define __MATHDECL_2(type, function,suffix, args, alias) \ - extern type __REDIRECT(__MATH_PRECNAME(function,suffix), \ - args, alias) __THROW + extern type __REDIRECT_NTH(__MATH_PRECNAME(function,suffix), \ + args, alias) # define __MATHDECL_1(type, function,suffix, args) \ __MATHDECL_2(type, function,suffix, args, __CONCAT(function,suffix)) # endif Jakub