public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] testsuite fix for math tests on darwin
@ 2004-06-06 16:12 Andreas Tobler
  2004-06-06 16:46 ` Gabriel Dos Reis
  2004-06-06 17:25 ` Dale Johannesen
  0 siblings, 2 replies; 14+ messages in thread
From: Andreas Tobler @ 2004-06-06 16:12 UTC (permalink / raw)
  To: GCC Patches, libstdc++

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

Hi,

darwin has some C99 math functions in the libmx instead of libm, so we 
should add the -lmx to the tests where we need these functions.
The attached patch fixes three failures of the libstdc++ suite.
Unfortunately I did not find the cabsl in libmx.

Ok for main?

Andreas

2004-06-06  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/26_numerics/c_math_dynamic.cc: Add -lmx for C99 functions
	on target darwin.
	* testsuite/26_numerics/complex_value.cc: Likewise.
	* testsuite/26_numerics/complex/pow.cc: Likewise.


[-- Attachment #2: darwin-c99.diff --]
[-- Type: text/plain, Size: 1744 bytes --]

Index: testsuite/26_numerics/c_math_dynamic.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/26_numerics/c_math_dynamic.cc,v
retrieving revision 1.2
diff -u -r1.2 c_math_dynamic.cc
--- testsuite/26_numerics/c_math_dynamic.cc	23 Sep 2003 20:02:52 -0000	1.2
+++ testsuite/26_numerics/c_math_dynamic.cc	6 Jun 2004 13:15:18 -0000
@@ -29,6 +29,7 @@
 
 // { dg-do link }
 // { dg-options "-D_XOPEN_SOURCE" { target *-*-freebsd* } }
+// { dg-options "-lmx" { target powerpc-apple-darwin7* } }
 
 #include <cmath>
 
Index: testsuite/26_numerics/complex_value.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/26_numerics/complex_value.cc,v
retrieving revision 1.6
diff -u -r1.6 complex_value.cc
--- testsuite/26_numerics/complex_value.cc	4 Mar 2004 23:29:41 -0000	1.6
+++ testsuite/26_numerics/complex_value.cc	6 Jun 2004 13:15:18 -0000
@@ -20,6 +20,8 @@
 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 // USA.
 
+// { dg-options "-lmx" { target powerpc-apple-darwin7* } }
+
 #include <complex>
 #include <testsuite_hooks.h>
 
Index: testsuite/26_numerics/complex/pow.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/26_numerics/complex/pow.cc,v
retrieving revision 1.1
diff -u -r1.1 pow.cc
--- testsuite/26_numerics/complex/pow.cc	10 Mar 2004 09:16:12 -0000	1.1
+++ testsuite/26_numerics/complex/pow.cc	6 Jun 2004 13:15:18 -0000
@@ -1,5 +1,6 @@
 // PR libbstdc++/10689
 // Origin: Daniel.Levine@jhuaph.edu
+// { dg-options "-lmx" { target powerpc-apple-darwin7* } }
 
 #include <complex>
 #include <testsuite_hooks.h>

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

end of thread, other threads:[~2004-06-09 17:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-06 16:12 [patch] testsuite fix for math tests on darwin Andreas Tobler
2004-06-06 16:46 ` Gabriel Dos Reis
2004-06-06 17:25 ` Dale Johannesen
2004-06-06 20:28   ` Gabriel Dos Reis
2004-06-06 21:47     ` Andreas Tobler
2004-06-06 23:47       ` Andrew Pinski
2004-06-09  1:23         ` Benjamin Kosnik
2004-06-09  2:21           ` Andrew Pinski
2004-06-09  7:23             ` Gabriel Dos Reis
2004-06-09  8:37               ` Benjamin Kosnik
2004-06-09 17:33                 ` Andrew Pinski
2004-06-09 18:10                   ` Benjamin Kosnik
2004-06-09 18:24                   ` Geoff Keating
2004-06-06 23:45     ` Dale Johannesen

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).