public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Fix <complex.h> parse error with __LDBL_COMPAT
@ 2006-05-14 10:25 Andreas Schwab
  2006-05-15 14:41 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2006-05-14 10:25 UTC (permalink / raw)
  To: libc-hacker

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 ‘throw’

This breaks configuring libstdc++, when it tries to find out whether
<complex.h> is C99 complatible.

__REDIRECT_NTH takes care of that.

Andreas.

2006-05-14  Andreas Schwab  <schwab@suse.de>

	* 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
 
 # ifndef _Mlong_double_

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fix <complex.h> parse error with __LDBL_COMPAT
  2006-05-14 10:25 Fix <complex.h> parse error with __LDBL_COMPAT Andreas Schwab
@ 2006-05-15 14:41 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2006-05-15 14:41 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: libc-hacker

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]

Applied.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-15 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-14 10:25 Fix <complex.h> parse error with __LDBL_COMPAT Andreas Schwab
2006-05-15 14:41 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).