Commit f9e84b31 by Alexandre Oliva Committed by Alexandre Oliva

reject macros in math decl check

The C++ headers #undef the functions we are testing for, just in case
they're implemented as macros, so do that in the cross math decl tests
as well.


for  libstdc++-v3/ChangeLog

	* crossconfig.m4 (GLIBCXX_CHECK_MATH_DECL): Reject macros.
	* configure: Rebuild.
parent 7a900bce
2020-01-23 Alexandre Oliva <oliva@adacore.com> 2020-01-23 Alexandre Oliva <oliva@adacore.com>
* crossconfig.m4 (GLIBCXX_CHECK_MATH_DECL): Reject macros.
* configure: Rebuild.
* testsuite/27_io/fpos/mbstate_t/1.cc: Zero-init mbstate_t. * testsuite/27_io/fpos/mbstate_t/1.cc: Zero-init mbstate_t.
2020-01-23 Jonathan Wakely <jwakely@redhat.com> 2020-01-23 Jonathan Wakely <jwakely@redhat.com>
......
...@@ -72956,6 +72956,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -72956,6 +72956,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef acosl
int int
main () main ()
...@@ -73006,6 +73007,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73006,6 +73007,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef asinl
int int
main () main ()
...@@ -73056,6 +73058,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73056,6 +73058,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef atan2l
int int
main () main ()
...@@ -73106,6 +73109,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73106,6 +73109,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef atanl
int int
main () main ()
...@@ -73156,6 +73160,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73156,6 +73160,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef ceill
int int
main () main ()
...@@ -73206,6 +73211,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73206,6 +73211,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef cosl
int int
main () main ()
...@@ -73256,6 +73262,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73256,6 +73262,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef coshl
int int
main () main ()
...@@ -73306,6 +73313,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73306,6 +73313,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef expl
int int
main () main ()
...@@ -73356,6 +73364,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73356,6 +73364,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef fabsl
int int
main () main ()
...@@ -73406,6 +73415,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73406,6 +73415,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef floorl
int int
main () main ()
...@@ -73456,6 +73466,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73456,6 +73466,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef fmodl
int int
main () main ()
...@@ -73506,6 +73517,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73506,6 +73517,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef frexpl
int int
main () main ()
...@@ -73556,6 +73568,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73556,6 +73568,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef ldexpl
int int
main () main ()
...@@ -73606,6 +73619,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73606,6 +73619,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef log10l
int int
main () main ()
...@@ -73656,6 +73670,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73656,6 +73670,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef logl
int int
main () main ()
...@@ -73706,6 +73721,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73706,6 +73721,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef modfl
int int
main () main ()
...@@ -73756,6 +73772,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73756,6 +73772,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef powl
int int
main () main ()
...@@ -73806,6 +73823,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73806,6 +73823,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef sinl
int int
main () main ()
...@@ -73856,6 +73874,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73856,6 +73874,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef sinhl
int int
main () main ()
...@@ -73906,6 +73925,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73906,6 +73925,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef sqrtl
int int
main () main ()
...@@ -73956,6 +73976,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -73956,6 +73976,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef tanl
int int
main () main ()
...@@ -74006,6 +74027,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ...@@ -74006,6 +74027,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef tanhl
int int
main () main ()
...@@ -333,6 +333,7 @@ AC_DEFUN([GLIBCXX_CHECK_MATH_DECL], [ ...@@ -333,6 +333,7 @@ AC_DEFUN([GLIBCXX_CHECK_MATH_DECL], [
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
# include <ieeefp.h> # include <ieeefp.h>
#endif #endif
#undef $1
], [ ], [
void (*f)(void) = (void (*)(void))$1; void (*f)(void) = (void (*)(void))$1;
], [glibcxx_cv_func_$1_use=yes ], [glibcxx_cv_func_$1_use=yes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment