diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-12 10:16:16 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-12 10:16:16 +0000 |
commit | 30d7ce75b57c6304cddb569fbf870bfa8ad7f543 (patch) | |
tree | 2d76e3d8757792bd9701218ed5be3b73acbd8501 /libstdc++-v3/src | |
parent | ccb1cd1e1f6f1a06271d920b6a2cb21224f4be84 (diff) | |
download | gcc-30d7ce75b57c6304cddb569fbf870bfa8ad7f543.tar.gz |
2008-07-12 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/date_time: Remove, per N2549, in WP.
* src/date_time.cc: Likewise.
* config/abi/pre/gnu.ver: Remove <date_time> symbols.
* include/Makefile.am: Remove date_time in std headers.
* src/Makefile.am: Remove date_time.cc to source files.
* include/Makefile.in: Regenerate.
* src/Makefile.in: Likewise.
* testsuite/31_date_time/headers/date_time/types_std.cc: Remove.
* testsuite/31_date_time/headers/date_time/std_c++0x_neg.cc: Likewise.
* testsuite/31_date_time/headers/date_time/functions_std.cc: Likewise.
* testsuite/31_date_time/headers/date_time/synopsis.cc: Likewise.
* testsuite/31_date_time/nanoseconds/requirements/traits.cc: Likewise.
* testsuite/31_date_time/nanoseconds/requirements/duration.cc: Likewise.
* testsuite/31_date_time/system_time/requirements: Likewise.
* testsuite/31_date_time/system_time/requirements/traits.cc: Likewise.
* testsuite/17_intro/headers/c++200x/all.cc: Adjust.
* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137736 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/Makefile.am | 6 | ||||
-rw-r--r-- | libstdc++-v3/src/Makefile.in | 40 | ||||
-rw-r--r-- | libstdc++-v3/src/date_time.cc | 46 |
3 files changed, 17 insertions, 75 deletions
diff --git a/libstdc++-v3/src/Makefile.am b/libstdc++-v3/src/Makefile.am index f5d99c63525..8d2cbf5e14b 100644 --- a/libstdc++-v3/src/Makefile.am +++ b/libstdc++-v3/src/Makefile.am @@ -143,7 +143,6 @@ sources = \ compatibility.cc \ complex_io.cc \ ctype.cc \ - date_time.cc \ debug.cc \ functexcept.cc \ hash.cc \ @@ -268,11 +267,6 @@ limits_c++0x.lo: limits_c++0x.cc limits_c++0x.o: limits_c++0x.cc $(CXXCOMPILE) -std=gnu++0x -c $< -date_time.lo: date_time.cc - $(LTCXXCOMPILE) -std=gnu++0x -c $< -date_time.o: date_time.cc - $(CXXCOMPILE) -std=gnu++0x -c $< - atomic.lo: atomic.cc $(LTCXXCOMPILE) -x c++ -std=gnu++0x -c $< atomic.o: atomic.cc diff --git a/libstdc++-v3/src/Makefile.in b/libstdc++-v3/src/Makefile.in index 508a399e7e8..f0e98973d3f 100644 --- a/libstdc++-v3/src/Makefile.in +++ b/libstdc++-v3/src/Makefile.in @@ -74,20 +74,20 @@ toolexeclibLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(toolexeclib_LTLIBRARIES) am__libstdc___la_SOURCES_DIST = atomic.cc bitmap_allocator.cc \ pool_allocator.cc mt_allocator.cc codecvt.cc compatibility.cc \ - complex_io.cc ctype.cc date_time.cc debug.cc functexcept.cc \ - hash.cc hash_c++0x.cc globals_io.cc hashtable.cc \ - hashtable_c++0x.cc ios.cc ios_failure.cc ios_init.cc \ - ios_locale.cc limits.cc limits_c++0x.cc list.cc debug_list.cc \ - locale.cc locale_init.cc locale_facets.cc localename.cc \ - stdexcept.cc strstream.cc system_error.cc tree.cc \ - allocator-inst.cc concept-inst.cc fstream-inst.cc ext-inst.cc \ - ios-inst.cc iostream-inst.cc istream-inst.cc istream.cc \ - locale-inst.cc misc-inst.cc ostream-inst.cc sstream-inst.cc \ - streambuf-inst.cc streambuf.cc string-inst.cc valarray-inst.cc \ - wlocale-inst.cc wstring-inst.cc mutex.cc condition_variable.cc \ - atomicity.cc codecvt_members.cc collate_members.cc \ - ctype_members.cc messages_members.cc monetary_members.cc \ - numeric_members.cc time_members.cc basic_file.cc c++locale.cc \ + complex_io.cc ctype.cc debug.cc functexcept.cc hash.cc \ + hash_c++0x.cc globals_io.cc hashtable.cc hashtable_c++0x.cc \ + ios.cc ios_failure.cc ios_init.cc ios_locale.cc limits.cc \ + limits_c++0x.cc list.cc debug_list.cc locale.cc locale_init.cc \ + locale_facets.cc localename.cc stdexcept.cc strstream.cc \ + system_error.cc tree.cc allocator-inst.cc concept-inst.cc \ + fstream-inst.cc ext-inst.cc ios-inst.cc iostream-inst.cc \ + istream-inst.cc istream.cc locale-inst.cc misc-inst.cc \ + ostream-inst.cc sstream-inst.cc streambuf-inst.cc streambuf.cc \ + string-inst.cc valarray-inst.cc wlocale-inst.cc \ + wstring-inst.cc mutex.cc condition_variable.cc atomicity.cc \ + codecvt_members.cc collate_members.cc ctype_members.cc \ + messages_members.cc monetary_members.cc numeric_members.cc \ + time_members.cc basic_file.cc c++locale.cc \ compatibility-ldbl.cc parallel_list.cc parallel_settings.cc am__objects_1 = atomicity.lo codecvt_members.lo collate_members.lo \ ctype_members.lo messages_members.lo monetary_members.lo \ @@ -99,9 +99,9 @@ am__objects_4 = basic_file.lo c++locale.lo $(am__objects_2) \ $(am__objects_3) am__objects_5 = atomic.lo bitmap_allocator.lo pool_allocator.lo \ mt_allocator.lo codecvt.lo compatibility.lo complex_io.lo \ - ctype.lo date_time.lo debug.lo functexcept.lo hash.lo \ - hash_c++0x.lo globals_io.lo hashtable.lo hashtable_c++0x.lo \ - ios.lo ios_failure.lo ios_init.lo ios_locale.lo limits.lo \ + ctype.lo debug.lo functexcept.lo hash.lo hash_c++0x.lo \ + globals_io.lo hashtable.lo hashtable_c++0x.lo ios.lo \ + ios_failure.lo ios_init.lo ios_locale.lo limits.lo \ limits_c++0x.lo list.lo debug_list.lo locale.lo locale_init.lo \ locale_facets.lo localename.lo stdexcept.lo strstream.lo \ system_error.lo tree.lo allocator-inst.lo concept-inst.lo \ @@ -379,7 +379,6 @@ sources = \ compatibility.cc \ complex_io.cc \ ctype.cc \ - date_time.cc \ debug.cc \ functexcept.cc \ hash.cc \ @@ -862,11 +861,6 @@ limits_c++0x.lo: limits_c++0x.cc limits_c++0x.o: limits_c++0x.cc $(CXXCOMPILE) -std=gnu++0x -c $< -date_time.lo: date_time.cc - $(LTCXXCOMPILE) -std=gnu++0x -c $< -date_time.o: date_time.cc - $(CXXCOMPILE) -std=gnu++0x -c $< - atomic.lo: atomic.cc $(LTCXXCOMPILE) -x c++ -std=gnu++0x -c $< atomic.o: atomic.cc diff --git a/libstdc++-v3/src/date_time.cc b/libstdc++-v3/src/date_time.cc deleted file mode 100644 index 0286917b779..00000000000 --- a/libstdc++-v3/src/date_time.cc +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (C) 2008 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library is free -// software; you can redistribute it and/or modify it under the -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 2, or (at your option) -// any later version. - -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING. If not, write to the Free -// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, -// USA. - -// As a special exception, you may use this file as part of a free software -// library without restriction. Specifically, if other files instantiate -// templates or use macros or inline functions from this file, or you compile -// this file and link it with other files to produce an executable, this -// file does not by itself cause the resulting executable to be covered by -// the GNU General Public License. This exception does not however -// invalidate any other reasons why the executable file might be covered by -// the GNU General Public License. - -#include <date_time> - -namespace std -{ - system_time - get_system_time() - { - std::time_t sec = std::time(0); - return system_time(sec); - } - - const nanoseconds::tick_type nanoseconds::ticks_per_second; - const nanoseconds::tick_type nanoseconds::seconds_per_tick; - const bool nanoseconds::is_subsecond; - - const system_time::tick_type system_time::ticks_per_second; - const system_time::tick_type system_time::seconds_per_tick; - const bool system_time::is_subsecond; -} |