From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27957 invoked by alias); 14 May 2006 10:25:10 -0000 Received: (qmail 27937 invoked by uid 22791); 14 May 2006 10:25:10 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 14 May 2006 10:25:06 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 161A0EFF0 for ; Sun, 14 May 2006 12:25:03 +0200 (CEST) From: Andreas Schwab To: libc-hacker@sourceware.org Subject: Fix parse error with __LDBL_COMPAT X-Yow: Do I have a lifestyle yet? Date: Sun, 14 May 2006 10:25:00 -0000 Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-05/txt/msg00015.txt.bz2 GCC can't parse this as C++ code: extern long double _Complex cacosl (long double _Complex __z) __asm__ ("" "= cacos") throw (); complex.cc:1: error: expected initializer before =E2=80=98throw=E2=80=99 This breaks configuring libstdc++, when it tries to find out whether is C99 complatible. __REDIRECT_NTH takes care of that. Andreas. 2006-05-14 Andreas Schwab * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH. --- math/complex.h.~1.16.~ 2006-01-16 11:23:00.000000000 +0100 +++ math/complex.h 2006-05-14 12:20:44.000000000 +0200 @@ -89,7 +89,7 @@ __BEGIN_DECLS # ifdef __LDBL_COMPAT # undef __MATHDECL_1 # define __MATHDECL_1(type, function, args) \ - extern type __REDIRECT(__MATH_PRECNAME(function), args, function) __THROW + extern type __REDIRECT_NTH(__MATH_PRECNAME(function), args, function) # endif =20 # ifndef _Mlong_double_ --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=C3=9Fe 5, 90409 N=C3=BCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."