+2007-03-22 Benjamin Kosnik <bkoz@redhat.com>
+
+ * testsuite/21_strings/headers/cstdlib/functions_std.cc: Without
+ C99 support, _GLIBCXX_USE_WCHAR_T not defined, so
+ dg-require-c-std.
+ * testsuite/tr1/6_containers/headers/functional/synopsis.cc: Same.
+ * testsuite/27_io/headers/iostream/synopsis.cc: Same.
+ * testsuite/27_io/headers/streambuf/types_std.cc: Same.
+ * testsuite/27_io/headers/sstream/types_std.cc: Same.
+ * testsuite/27_io/headers/ostream/types_std.cc: Same.
+ * testsuite/27_io/headers/istream/types_std.cc: Same.
+ * testsuite/27_io/headers/iostream/types_std.cc: Same.
+ * testsuite/27_io/headers/fstream/types_std.cc: Same.
+ * testsuite/21_strings/headers/string/types_std.cc: Same.
+ * testsuite/21_strings/headers/cwctype/functions_std.cc: Same.
+ * testsuite/21_strings/headers/cwctype/types_std.cc: Same.
+ * testsuite/21_strings/headers/cwchar/functions_std.cc: Same.
+ * testsuite/21_strings/headers/cwchar/types_std.cc: Same.
+
+ * include/Makefile.am (c_compatibility_headers): Add fenv.h.
+ * include/Makefile.in: Regenerate.
+ * configure.host: Update comment.
+
+ * include/tr1/cfenv: Use include_next.
+
2007-03-19 Paolo Carlini <pcarlini@suse.de>
* include/tr1/tuple (get(_Tuple_impl<>&, get(const _Tuple_impl<>&):
#
# os_include_dir OS-specific directory, defaults to os/generic.
#
-# c_model the "C" header model, defaults to c_std.
+# c_model the "C" header model, defaults to c_global.
#
# c_compatibility if "C" compatibility headers are necessary,
# defaults to no.
if GLIBCXX_C_HEADERS_C_GLOBAL
c_compatibility_headers = \
${c_compatibility_srcdir}/complex.h \
+ ${c_compatibility_srcdir}/fenv.h \
${c_compatibility_srcdir}/tgmath.h
endif
c_compatibility_builddir = .
@GLIBCXX_C_HEADERS_C_GLOBAL_TRUE@c_compatibility_headers = \
@GLIBCXX_C_HEADERS_C_GLOBAL_TRUE@ ${c_compatibility_srcdir}/complex.h \
+@GLIBCXX_C_HEADERS_C_GLOBAL_TRUE@ ${c_compatibility_srcdir}/fenv.h \
@GLIBCXX_C_HEADERS_C_GLOBAL_TRUE@ ${c_compatibility_srcdir}/tgmath.h
@GLIBCXX_C_HEADERS_C_STD_TRUE@c_compatibility_headers =
#if _GLIBCXX_USE_C99_FENV_TR1
-#include <fenv.h>
+#include_next <fenv.h>
#undef feclearexcept
#undef fegetexceptflag
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-c-std "" }
// Copyright (C) 2007 Free Software Foundation, Inc.
//
return $et_fileio_saved
}
+# Eventually we want C90/C99 determining and switching from this.
proc check_v3_target_c_std { } {
global et_c_std_saved
global et_c_std_target_name
# Set up, compile, and execute a C++ test program that tries to use
# C99 functionality.
+ # For math bits, could use check_effective_target_c99_math.
set src fileio[pid].cc
set exe fileio[pid].x
set f [open $src "w"]
puts $f "#include <tr1/cmath>"
+ puts $f "#include <cstdlib>"
puts $f "int main ()"
puts $f "{"
puts $f " float f = 45.55;"
puts $f " int i = std::tr1::isnan(f);"
+ puts $f " "
+ puts $f " using std::wctomb;"
puts $f " return 0;"
puts $f "}"
close $f
// { dg-do compile }
+// { dg-require-c-std "" }
// 2007-02-04 Benjamin Kosnik <bkoz@redhat.com>
//