functions_std.cc: Without C99 support, _GLIBCXX_USE_WCHAR_T not defined, so dg-require-c-std.
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. From-SVN: r123130
This commit is contained in:
parent
1e863adf83
commit
803f183a94
20 changed files with 48 additions and 2 deletions
|
@ -1,3 +1,28 @@
|
|||
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<>&):
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#
|
||||
# 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.
|
||||
|
|
|
@ -635,6 +635,7 @@ endif
|
|||
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
|
||||
|
||||
|
|
|
@ -860,6 +860,7 @@ c_compatibility_srcdir = ${glibcxx_srcdir}/include/c_compatibility
|
|||
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 =
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
#if _GLIBCXX_USE_C99_FENV_TR1
|
||||
|
||||
#include <fenv.h>
|
||||
#include_next <fenv.h>
|
||||
|
||||
#undef feclearexcept
|
||||
#undef fegetexceptflag
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
//
|
||||
|
|
|
@ -579,6 +579,7 @@ proc check_v3_target_fileio { } {
|
|||
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
|
||||
|
@ -606,15 +607,19 @@ proc check_v3_target_c_std { } {
|
|||
|
||||
# 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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-require-c-std "" }
|
||||
|
||||
// 2007-02-04 Benjamin Kosnik <bkoz@redhat.com>
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue