[gcc(refs/users/iains/heads/darwin-gcc-8-3r0)] [libstdc++, darwin, testsuite] Use -U__STRICT_ANSI__ on earlier darwin.

Iain D Sandoe iains@gcc.gnu.org
Mon Jan 13 20:19:00 GMT 2020


https://gcc.gnu.org/g:61644b33b173ffc7afd81627a743128849cb340a

commit 61644b33b173ffc7afd81627a743128849cb340a
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Mon Apr 1 10:16:52 2019 +0100

    [libstdc++, darwin, testsuite] Use -U__STRICT_ANSI__ on earlier darwin.
    
    This is needed to expose the ll* functions.

Diff:
---
 .../special_functions/07_conf_hyperg/compile_cxx17.cc                    | 1 +
 .../5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc  | 1 +
 libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc          | 1 +
 3 files changed, 3 insertions(+)

diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc
index f0b0f96..0913812 100644
--- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc
+++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc
@@ -17,6 +17,7 @@
 
 // { dg-options "-std=c++17" }
 // { dg-do compile { target c++17 } }
+// { dg-additional-options "-U__STRICT_ANSI__" { target { *-*-darwin9* *-*-darwin10* } } }
 
 #include <tr1/cmath>
 
diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc
index 048328b..93eec6c 100644
--- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc
+++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc
@@ -17,6 +17,7 @@
 
 // { dg-options "-std=c++17" }
 // { dg-do compile { target c++17 } }
+// { dg-additional-options "-U__STRICT_ANSI__" { target { *-*-darwin9* *-*-darwin10* } } }
 
 #include <tr1/cmath>
 
diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc
index 7fa340b..a2cae82 100644
--- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc
+++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc
@@ -18,6 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-options "-std=c++98" }
+// { dg-additional-options "-U__STRICT_ANSI__" { target { *-*-darwin9* *-*-darwin10* } } }
 
 #include <cmath>
 using std::pow;



More information about the Libstdc++-cvs mailing list