os_defines.h: Don't define __glibcpp_long_bits.
authorRichard Henderson <rth@gcc.gnu.org>
Sat, 29 Dec 2001 19:18:32 +0000 (11:18 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 29 Dec 2001 19:18:32 +0000 (11:18 -0800)
        * config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
        * config/os/hpux/bits/cpu_limits.h: New file.
        * configure.target (CPULIMITSH): Use it.

From-SVN: r48379

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/hpux/bits/cpu_limits.h [new file with mode: 0644]
libstdc++-v3/config/os/hpux/bits/os_defines.h
libstdc++-v3/configure.target

index f5d885ff01986c0dd1686526b4c28be5bc270cf3..1560e1c84a035be050f472353c70abab23ffb8d0 100644 (file)
@@ -1,3 +1,9 @@
+2001-12-29  Richard Henderson  <rth@redhat.com>
+
+       * config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
+       * config/os/hpux/bits/cpu_limits.h: New file.
+       * configure.target (CPULIMITSH): Use it.
+
 2001-12-28  Richard Henderson  <rth@redhat.com>
 
        * config/cpu/ia64/bits/cpu_limits.h: New file.
@@ -26,7 +32,7 @@
        * testsuite/ext/headers.cc:  Include <ext/algorithm>.
 
 2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
-            Nathan Myers  <ncm@cantrip.org>
+           Nathan Myers  <ncm@cantrip.org>
 
        * include/bits/basic_string.h (insert(__pos, __s, __n)):
        Optimize by avoiding temporaries and working in-place when possible.
@@ -89,7 +95,7 @@
 2001-12-22  Jeffrey A Law  <law@redhat.com>
 
        * config/os/hpux/bits/os_defines.h: Update to avoid #defines
-        for strtoll and strtoull.
+       for strtoll and strtoull.
 
 2001-12-21  Jeffrey A Law  <law@redhat.com>
        
        * configure: Rebuild.
        
 2001-12-18  Paolo Carlini  <pcarlini@unitus.it>
-            Nathan Myers  <ncm@cantrip.org>
+           Nathan Myers  <ncm@cantrip.org>
        
        * include/bits/basic_string.h (assign(__str, __pos, __n)):
        Call assign(__s, __n).
        * testsuite/21_strings/assign.cc (test01): Add tests.
 
 2001-12-15  Paolo Carlini  <pcarlini@unitus.it>
-            Nathan Myers  <ncm@cantrip.org>
+           Nathan Myers  <ncm@cantrip.org>
 
        * include/bits/basic_string.h
        (assign(__str, __pos, __n), assign(__s, __n)):  Optimize
        * testsuite/22_locale/facet.cc: Fix spelling.
        
        Named locale support for ctype<wchar_t>.
-        * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add variable
-        ctype_members_* bits.
-        * aclocal.m4: Regenerate.
-        * configure: Regenerate.
-        * src/Makefile.am (sources): Add ctype.cc.
-        * src/Makefile.in: Regenerate.
-        * config/locale/ctype_members_generic.cc: New file.
-        * config/locale/ctype_members_gnu.cc: New file.
-        * src/locale.cc: Remove ctype<wchart_t> definitions.
+       * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add variable
+       ctype_members_* bits.
+       * aclocal.m4: Regenerate.
+       * configure: Regenerate.
+       * src/Makefile.am (sources): Add ctype.cc.
+       * src/Makefile.in: Regenerate.
+       * config/locale/ctype_members_generic.cc: New file.
+       * config/locale/ctype_members_gnu.cc: New file.
+       * src/locale.cc: Remove ctype<wchart_t> definitions.
 
 2001-12-13  Roger Sayle <roger@eyesopen.com>
 
        XFAIL for non-gnu locale models.
 
 2001-12-12  Philip Martin  <philip@codematters.co.uk>
-            Ross Smith     <r-smith@ihug.co.nz>
-            Paolo Carlini  <pcarlini@unitus.it>
+           Ross Smith     <r-smith@ihug.co.nz>
+           Paolo Carlini  <pcarlini@unitus.it>
 
        libstdc++/5045
        * include/bits/std_limits.h (defines, numeric_limits<bool>::digits10):
        * include/bits/basic_string.h:  Fix typos.
 
 2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
-            Nathan Myers  <ncm@cantrip.org>
+           Nathan Myers  <ncm@cantrip.org>
 
        * include/bits/basic_string.tcc (_M_replace_safe):  New function.
        (_M_replace(input_iterator_tag), append members):  Use it.
        * include/bits/basic_string.tcc (_M_mutate, _M_clone): Implement
        exponential growth policy to meet linear amortized time
        requirements of the standard.
-        (_S_create): Adjust comment.
+       (_S_create): Adjust comment.
 
 2001-12-06  Benjamin Kosnik  <bkoz@redhat.com>
 
 
 2001-12-04  Paolo Carlini <pcarlini@unitus.it>
 
-        libstdc++/4402
-        * testsuite/27_io/ostream_inserter_arith.cc (test02): Add testcase
+       libstdc++/4402
+       * testsuite/27_io/ostream_inserter_arith.cc (test02): Add testcase
        from the PR.
-        * include/bits/locale_facets.tcc (num_put::_M_convert_float):
-        Deal properly with long ios_base::fixed floats.
-        (num_put::_M_widen_float): use
+       * include/bits/locale_facets.tcc (num_put::_M_convert_float):
+       Deal properly with long ios_base::fixed floats.
+       (num_put::_M_widen_float): use
        __len in __builtin_alloca call.
 
 2001-12-04  Benjamin Kosnik  <bkoz@redhat.com>
 
 2001-12-03  Steve Ellcey  <sje@cup.hp.com>
 
-        * libstdc++-v3/configure.in: Add support for hpux cross compiles,
-        combine common linux/hpux/generic cross compile support to reduce
-        redundent lines.
-        * libstdc++-v3/configure: Regenerate.
+       * libstdc++-v3/configure.in: Add support for hpux cross compiles,
+       combine common linux/hpux/generic cross compile support to reduce
+       redundent lines.
+       * libstdc++-v3/configure: Regenerate.
 
 2001-12-03  Loren J. Rittle  <ljrittle@acm.org>
 
 
 2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>
 
-        * testsuite/23_containers/list_capacity.cc: New file.
-        * testsuite/23_containers/list_ctor.cc: New file.
-        * testsuite/23_containers/list_modifiers.cc: New file.
-        * testsuite/23_containers/list_operators.cc: New file.
+       * testsuite/23_containers/list_capacity.cc: New file.
+       * testsuite/23_containers/list_ctor.cc: New file.
+       * testsuite/23_containers/list_modifiers.cc: New file.
+       * testsuite/23_containers/list_operators.cc: New file.
 
 2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>
 
 
 2001-10-19  Brendan Kehoe  <brendan@zen.org>
 
-        * include/bits/std_complex.h: Default initialize second argument
+       * include/bits/std_complex.h: Default initialize second argument
        of polar to 0, as specified in Library DR #79
 
 2001-10-19  Brendan Kehoe  <brendan@zen.org>
 
-        * include/bits/stl_raw_storage_iter.h (operator=): Fix to call
+       * include/bits/stl_raw_storage_iter.h (operator=): Fix to call
        _Construct instead of construct.
 
 2001-10-19  Brendan Kehoe  <brendan@zen.org>
 
-        * include/bits/basic_string.tcc (find_first_not_of): Take out check for
-        __n being non-zero, since the standard does not mandate that.
-        e.g., a search for "" in "" should yield position 0, not npos.
-        (find_last_not_of): Likewise.
+       * include/bits/basic_string.tcc (find_first_not_of): Take out check for
+       __n being non-zero, since the standard does not mandate that.
+       e.g., a search for "" in "" should yield position 0, not npos.
+       (find_last_not_of): Likewise.
 
 2001-10-19  Brendan Kehoe  <brendan@zen.org>
 
-        * include/bits/stl_bvector.h (vector<bool>::_M_range_check): Fix
+       * include/bits/stl_bvector.h (vector<bool>::_M_range_check): Fix
        to throw out_of_range, not range_error, thus sayeth $23.1.1.13.
 
 2001-10-19  Brendan Kehoe  <brendan@zen.org>
 
-        * include/bits/stl_iterator.h (reverse_iterator::current): Rename
-        member from _M_current, and change all uses; thus sayeth $24.4.1.1.
+       * include/bits/stl_iterator.h (reverse_iterator::current): Rename
+       member from _M_current, and change all uses; thus sayeth $24.4.1.1.
 
 2001-10-19  Brendan Kehoe  <brendan@zen.org>
 
-        * include/bits/stl_algo.h (partial_sort): Add missing `>' on the
-        template parameter _ValueType.
+       * include/bits/stl_algo.h (partial_sort): Add missing `>' on the
+       template parameter _ValueType.
 
 2001-10-19  Brendan Kehoe  <brendan@zen.org>
 
        * include/bits/std_limits.h: Clean up extra semicolons.
-        * include/bits/locale_facets.h: Likewise.
-        * include/bits/type_traits.h: Likewise.
+       * include/bits/locale_facets.h: Likewise.
+       * include/bits/type_traits.h: Likewise.
 
 2001-10-19  Brendan Kehoe  <brendan@zen.org>
 
-        * include/bits/localefwd.h (locale::combine): Add const for lib DR 14.
-        * include/bits/locale_facets.tcc (locale::combine): Likewise.
+       * include/bits/localefwd.h (locale::combine): Add const for lib DR 14.
+       * include/bits/locale_facets.tcc (locale::combine): Likewise.
 
 2001-10-19  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/bits/std_sstream.h (basic_ostringstream): Fix ctor.
 
 2001-08-24  Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
-            Phil Edwards  <pme@sources.redhat.com>
+           Phil Edwards  <pme@sources.redhat.com>
 
        PR libstdc++/3349
        * include/bits/stl_tree.h (insert_unique):  Revert last change.
 
 2001-07-31  Loren J. Rittle  <ljrittle@acm.org>
 
-        * src/gen-num-limits.cc:  Use __LONG_LONG_MAX__.
+       * src/gen-num-limits.cc:  Use __LONG_LONG_MAX__.
 
 2001-07-30  Benjamin Kosnik  <bkoz@redhat.com>
 
        * testsuite/25_algorithms/unique.cc: New file.
 
 2001-07-19  Phil Edwards  <pme@sources.redhat.com>
-            Mark Mitchell <mark@codesourcery.com>
+           Mark Mitchell <mark@codesourcery.com>
 
        Merge from cp-parser-branch.
        * include/bits/basic_string.h:  Qualify symbols with 'template'.
        * src/locale.cc:  Likewise.
 
 2001-07-19  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
-            Bert De Knuydt <Bert.Deknuydt@esat.kuleuven.ac.be>
+           Bert De Knuydt <Bert.Deknuydt@esat.kuleuven.ac.be>
 
        * src/gen-num-limits.cc (set_signals_handler): New function.
        Factor out signals setting.  Set signal handler for SIGILL.
        * docs/html/faq/index.txt:  Regenerated.
 
 2001-07-18  Stephen M. Webb  <stephen@bregmasoft..com>
-            Roman Sulzhyk  <roman_sulzhyk@yahoo.com>
+           Roman Sulzhyk  <roman_sulzhyk@yahoo.com>
 
        libstdc++/3599
        * include/bits/ostream.tcc (ostream::put): Fixed error condition check.
        * include/bits/std_iosfwd.h:  Cosmetic spacing.
 
 2001-07-13  Stephen M. Webb  <stephen@bregmasoft.com>
-            Loren J. Rittle  <ljrittle@acm.org>
-            Phil Edwards  <pme@sources.redhat.com>
+           Loren J. Rittle  <ljrittle@acm.org>
+           Phil Edwards  <pme@sources.redhat.com>
 
        * include/Makefile.am:  New file encapsulating header generation rules.
        * Makefile.am (SUBDIRS):  Prepend 'include' directory.
        (istream_iterator::operator*): Same.
 
 2001-06-26  Benjamin Kosnik  <bkoz@redhat.com>
-            Alexandre Petit-Bianco  <apbianco@redhat.com>
+           Alexandre Petit-Bianco  <apbianco@redhat.com>
 
        * testsuite/21_strings/element_access.cc (test01): Chill Out Cafe
        is on 41st, not 14th.
        iterator_traits members.  Can't imagine why that used to work.
 
 2001-06-25  Phil Edwards  <pme@sources.redhat.com>
-            Kurt Garloff <garloff@suse.de>
+           Kurt Garloff <garloff@suse.de>
 
        PR libstdc++/3377
        * src/cmath.cc:  New [version of an old] file; instantiate
        * testsuite/20_util/binders.cc: New test.
 
 2001-06-11  Matthias Klose  <doko@debian.org>
-            Phil Edwards  <pme@sources.redhat.com>
+           Phil Edwards  <pme@sources.redhat.com>
 
        * docs/doxygen/run_doxygen (find_doxygen):  Tweak version check.
        (main script):  Echo more information.
        * testsuite/22_locale/ctype.cc: Add test.
 
 2001-06-04  Kenny Simpson <theonetruekenny@yahoo.com>
-            Phil Edwards  <pme@sources.redhat.com>
+           Phil Edwards  <pme@sources.redhat.com>
 
        PR libstdc++/3035 and PR libstdc++/3036
        * include/bits/stl_pair.h:  Fix pair ctor and make_pair according
        * include/bits/stl_set.h:  Likewise.
 
 2001-06-04  Brendan Kehoe  <brendan@zen.org>
-            Phil Edwards  <pme@sources.redhat.com>
+           Phil Edwards  <pme@sources.redhat.com>
 
        PR libstdc++/3018
        * include/bits/std_bitset.h (bitset::test):  Fix __pos >= _Nb
        * configure: Same.
 
 2001-05-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
-            Phil Edwards  <pme@sources.redhat.com>
-            Alexandre Oliva  <aoliva@redhat.com>
+           Phil Edwards  <pme@sources.redhat.com>
+           Alexandre Oliva  <aoliva@redhat.com>
 
        * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir
        in an amd-safe manner. Revert glibcpp_prefixdir.
        * include/backward/backward_warning.h: Re-enable.
 
 2001-04-06  Benjamin Kosnik  <bkoz@redhat.com>
-            Alexandre Oliva  <aoliva@redhat.com>
+           Alexandre Oliva  <aoliva@redhat.com>
 
        * tests_flags.in (CROSS_LIB_PATH): Add as -B flag.
 
        * testsuite/27_io/istream_manip.cc (test01): Fix.
 
 2001-03-06  Nathan Myers  <ncm@cantrip.org>
-            Benjamin Kosnik  <bkoz@redhat.com>
+           Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/c_std/bits/std_cerrno.h: Don't define errno in std::.
        * testsuite/17_intro/header_cerrno.cc (test01): New file.
        dejagnu/dg.exp.
 
 2001-02-13  Dirk Mueller <dmuell@gmx.net>
-            Phil Edwards  <pme@sources.redhat.com>
+           Phil Edwards  <pme@sources.redhat.com>
 
        * include/backward/function.h:  Do not use rel_ops for older
          headers either.
        (_S_copy_streambufs): Likewise.
 
 2001-02-06  Hyman Rosen  <Hyman.Rosen@kbcfp.com>
-            Phil Edwards  <pme@sources.redhat.com>
+           Phil Edwards  <pme@sources.redhat.com>
 
        * include/bits/std_istream.h (op>> signed,unsigned char):  Must
          use reinterpret_cast, not static_cast.
diff --git a/libstdc++-v3/config/os/hpux/bits/cpu_limits.h b/libstdc++-v3/config/os/hpux/bits/cpu_limits.h
new file mode 100644 (file)
index 0000000..1c28295
--- /dev/null
@@ -0,0 +1,35 @@
+// Copyright (C) 2001 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, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// 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.
+
+#ifndef _GLIBCPP_CPU_LIMITS
+#define _GLIBCPP_CPU_LIMITS 1
+
+#ifdef __LP64__
+#define __glibcpp_long_bits 64
+#endif
+
+#endif
index 29b32ea9c9991b05103fabeee98a54a827211c23..a548125a7e604f54821ee1628f9dc94899d3d4b7 100644 (file)
 
 #define __glibcpp_wchar_t_is_signed false
 
-#ifdef __LP64__
-#define __glibcpp_long_bits 64
-#endif
-
 /* HP-UX, for reasons unknown choose to use a different name for
    the string to [unsigned] long long conversion routines.
 
index 33c5b7285d25df30c267b8af609a98a87878b02c..71487991c59ffc10f20c7d0efb896ae6a47c314e 100644 (file)
@@ -138,6 +138,9 @@ esac
 # cpu_limits.h can be found.
 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
 case "${target}" in
+   *-*-hpux*)
+     CPULIMITSH=config/os/hpux
+     ;;
    alpha*-*-*osf5*)
      CPULIMITSH=config/os/osf/osf5.0
      ;;