Paolo Carlini
aa53f832ac
localefwd.h (class locale): Add static member _S_num_extra_categories...
...
2002-10-08 Paolo Carlini <pcarlini@unitus.it>
Benjamin Kosnik <bkoz@redhat.com>
* include/bits/localefwd.h (class locale): Add static member
_S_num_extra_categories, encoding the number of additional
categories.
Change _S_num_categories to _S_categories_size.
(class locale::_Impl): Add _M_c_cats.
(class locale::_Impl::_M_names): Change to array of chars.
(class locale::_Impl::_M_check_same_name): Use
_S_extra_categories_size, tweak.
(locale::locale(const locale&, _Facet*)): Ditto.
* src/locale.cc (locale::locale(const char* )): Rewrite to deal
with the environment in a POSIX-compliant way while being thread
safe.
(locale::name()): Update to output POSIX environment strings.
* src/localename.cc
(locale::_Impl::_Impl(const _Impl&, size_t): Use
_S_categories_size_*, tweak.
(locale::_Impl::_Impl(facet**, size_t, bool)): Ditto.
(locale::_Impl::_Impl(const char*, size_t)): Name each category
individually.
(locale::_Impl::_M_replace_categories): Use strcpy.
* include/bits/locale_facets.h (numpunct::_M_initialize_numpunct):
Change default argument to NULL from _S_c_locale.
(timepunct::_M_initialize_timepunct): Same.
_S_c_locale cleanups.
* src/codecvt.c: _S_c_locale simplification.
* src/ctype.c: Same.
* src/globals.cc: Add fake_name.
* src/locale-inst.cc: Remove extra includes.
* src/locale.cc: Remove extra includes.
Add _S_extra_categories_size definition.
Correct "C" initialization.
(locale::facet::facet): Don't initialize _S_c_locale.
(locale::facet::_M_remove_reference): Adjust.
* src/localename: Use facet_vec, facet_name.
(locale::_Impl::_Impl(facet** __f, size_t __refs, bool)): Set
facet ref counts to one. Initialize _S_c_locale.
(locale::_Impl::_M_install_facet(id*, facet*)): Adjust facet ref
counts when installing unilaterally.
* config/locale/generic/c_locale.cc: Add _S_categories definition.
* config/locale/generic/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
* config/locale/generic/time_members.cc: _S_c_locale cleanup.
* config/locale/gnu/c_locale.cc: Add _S_categories definition.
(_S_destroy_c_locale): Move checks against _S_c_locale here.
* config/locale/gnu/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
* config/locale/gnu/ctype_members.cc: Simplify _S_destroy_c_locale
calls, _S_c_locale usage.
* config/locale/gnu/monetary_members.cc: Same, tweaks.
* config/locale/gnu/monetary_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
* config/os/gnu-linux/ctype_noninline.h: Use locale::classic().
* docs/html/22_locale/locale.html: Add bits about global locales
and "C" setlocale.
* testsuite/22_locale/facet.cc (test02): Add.
* testsuite/22_locale/static_members.cc (test02): Add.
* testsuite/22_locale/ctor_copy_dtor.cc (test04): Add.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r57964
2002-10-08 23:32:23 +00:00
Jonathan Wakely
ba43f4ebc4
configopts.html, [...]: Add DOCTYPEs.
...
2002-10-07 Jonathan Wakely <jw@kayari.org>
* docs/html/configopts.html, docs/html/documentation.html,
docs/html/explanations.html, docs/html/install.html,
docs/html/17_intro/contribute.html, docs/html/17_intro/howto.html,
docs/html/17_intro/license.html, docs/html/18_support/howto.html,
docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
docs/html/21_strings/howto.html, docs/html/22_locale/codecvt.html,
docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
docs/html/27_io/howto.html, docs/html/ext/howto.html,
docs/html/ext/sgiexts.html, docs/html/faq/index.html: Add DOCTYPEs.
From-SVN: r57903
2002-10-07 18:11:23 +00:00
Richard Earnshaw
bfc1eae300
re PR libstdc++/3584 (arm-specific atomic operations not atomic)
...
PR libstdc++/3584
* config/cpu/arm/atomicity.h (__exchange_and_add): Don't try to use
ASM sequences that don't give us atomic addition operations. Instead
just add a comment explaining why it doesn't work.
(__atomic_add): Just use __exchange_and_add.
(__test_and_set, __always_swap): Delete.
From-SVN: r57778
2002-10-03 15:58:29 +00:00
Andreas Jaeger
f6c772fef4
Add forgotten ChangeLog entry.
...
From-SVN: r57764
2002-10-03 08:59:13 +02:00
Phil Edwards
db1a6d8676
Makefile.am (check-abi): Add @ to rule.
...
2002-10-01 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (check-abi): Add @ to rule.
* Makefile.in: Regenerated.
From-SVN: r57715
2002-10-02 01:05:13 +00:00
Paolo Carlini
b1af5a30a5
locale_facets.tcc (num_put::_M_widen_int): Deal correctly with grouped, showbased (oct or hex) zero.
...
2002-09-27 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (num_put::_M_widen_int):
Deal correctly with grouped, showbased (oct or hex) zero.
* testsuite/22_locale/num_put_members_char.cc: Add test05.
* testsuite/22_locale/num_put_members_wchar_t.cc: Ditto.
From-SVN: r57598
2002-09-27 23:08:22 +00:00
Richard Henderson
d3d09886b3
std_limits.h (numeric_limits<T>::is_iec559): False if denormals are not supported.
...
* include/std/std_limits.h (numeric_limits<T>::is_iec559): False
if denormals are not supported.
From-SVN: r57595
2002-09-27 15:39:28 -07:00
Benjamin Kosnik
ca017eef3a
Makefile.am (target_headers): Remove cpu_limits.h.
...
2002-09-25 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (target_headers): Remove cpu_limits.h.
* include/Makefile.in: Regenerate.
* configure.in (CPU_LIMITS_INC_SRCDIR): Remove
* configure: Regenerate.
* configure.target (CPULIMITS): Remove.
* include/std/std_limits.h: Remove cpu_limits.h include.
* config/os/solaris/solaris2.7/os_defines.h (__glibcpp_long_bits):
Remove.
* config/os/irix/irix6.5/os_defines.h
(__glibcpp_long_double_bits): Remove.
(__glibcpp_wchar_t_bits): Remove.
(__glibcpp_long_bits): Remove.
* config/os/irix/irix5.2/os_defines.h
(__glibcpp_long_double_bits): Remove.
(__glibcpp_long_bits): Remove.
* config/os/hpux/os_defines.h (__glibcpp_wchar_t_is_signed): Remove.
* config/os/bsd/freebsd/os_defines.h:
(__glibcpp_long_double_bits): Remove.
* config/os/aix/os_defines.h (__glibcpp_wchar_t_bits): Remove.
(__glibcpp_wchar_t_is_signed): Remove.
(__glibcpp_long_bits): Remove.
* config/os/gnu-linux/os_defines.h (__glibcpp_long_bits): Remove.
(__glibcpp_long_double_bits): Remove.
* config/os/osf/osf5.0/cpu_limits.h: Remove.
* config/cpu/alpha/cpu_limits.h: Remove.
* config/cpu/arm/cpu_limits.h: Remove.
* config/cpu/cris/cpu_limits.h: Remove.
* config/cpu/generic/cpu_limits.h: Remove.
* config/cpu/generic/limits.h: Remove.
* config/cpu/ia64/cpu_limits.h: Remove.
* config/cpu/m68k/cpu_limits.h: Remove.
* config/cpu/mmix/cpu_limits.h: Remove.
* config/cpu/powerpc/cpu_limits.h: Remove.
* config/cpu/S390/cpu_limits.h: Remove.
From-SVN: r57524
2002-09-26 05:25:14 +00:00
Peter Schmid
dac2c906db
numeric_limits.cc: Check the maximum and minimum values of the wchar_t type.
...
2002-09-25 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/18_support/numeric_limits.cc: Check the maximum and
minimum values of the wchar_t type.
From-SVN: r57512
2002-09-25 19:37:04 +00:00
Mark Mitchell
0b4c7d8042
std_limits.h (numeric_limits<unsigned char>::digits): Fix typo.
...
* include/std/std_limits.h (numeric_limits<unsigned char>::digits):
Fix typo.
From-SVN: r57507
2002-09-25 18:32:14 +00:00
Richard Henderson
6ad8f94953
std_limits.h (__glibcpp_plain_char_is_signed, [...]): Remove.
...
* include/std/std_limits.h (__glibcpp_plain_char_is_signed,
__glibcpp_wchar_t_is_signed, __glibcpp_s8_max, __glibcpp_s8_min,
__glibcpp_s8_digits, __glibcpp_s8_digits10, __glibcpp_u8_min,
__glibcpp_u8_max, __glibcpp_u8_digits, __glibcpp_u8_digits10,
__glibcpp_s16_max, __glibcpp_s16_min, __glibcpp_s16_digits,
__glibcpp_s16_digits10, __glibcpp_u16_min, __glibcpp_u16_max,
__glibcpp_u16_digits, __glibcpp_u16_digits10, __glibcpp_s32_max,
__glibcpp_s32_min, __glibcpp_s32_digits, __glibcpp_s32_digits10,
__glibcpp_u32_min, __glibcpp_u32_max, __glibcpp_u32_digits,
__glibcpp_u32_digits10, __glibcpp_s64_max, __glibcpp_s64_min,
__glibcpp_s64_digits, __glibcpp_s64_digits10, __glibcpp_u64_min,
__glibcpp_u64_max, __glibcpp_u64_digits, __glibcpp_u64_digits10,
__glibcpp_bool_digits, __glibcpp_signed_char_min,
__glibcpp_signed_char_max, __glibcpp_signed_char_digits,
__glibcpp_signed_char_digits10, __glibcpp_unsigned_char_min,
__glibcpp_unsigned_char_max, __glibcpp_unsigned_char_digits,
__glibcpp_unsigned_char_digits10, __glibcpp_char_min,
__glibcpp_char_max, __glibcpp_char_digits, __glibcpp_char_digits10,
__glibcpp_signed_short_min, __glibcpp_signed_short_max,
__glibcpp_signed_short_digits, __glibcpp_signed_short_digits10,
__glibcpp_unsigned_short_min, __glibcpp_unsigned_short_max,
__glibcpp_unsigned_short_digits, __glibcpp_unsigned_short_digits10,
__glibcpp_signed_int_min, __glibcpp_signed_int_max,
__glibcpp_signed_int_digits, __glibcpp_signed_int_digits10,
__glibcpp_unsigned_int_min, __glibcpp_unsigned_int_max,
__glibcpp_unsigned_int_digits, __glibcpp_unsigned_int_digits10,
__glibcpp_signed_long_min, __glibcpp_signed_long_max,
__glibcpp_unsigned_long_digits, __glibcpp_unsigned_long_digits10,
__glibcpp_signed_long_long_min, __glibcpp_signed_long_long_max,
__glibcpp_signed_long_long_digits, __glibcpp_signed_long_long_digits10,
__glibcpp_wchar_t_min, __glibcpp_wchar_t_max, __glibcpp_wchar_t_digits,
__glibcpp_wchar_t_digits10): Remove.
(__glibcpp_byte, __glibcpp_word_bits, __glibcpp_word): Remove.
(__float_storage, __double_storage, __long_double_storage): Remove.
(__glibcpp_signed, __glibcpp_min, __glibcpp_max): New.
(__glibcpp_digits, __glibcpp_digits10): New.
(numeric_limits<T>::min): Use __glibcpp_min or limits.h builtins.
(numeric_limits<T>::max): Use __glibcpp_max or limits.h builtins.
(numeric_limits<T>::is_signed, T=char,wchar_t): Use __glibcpp_signed.
(numeric_limits<T>::digits): Use __glibcpp_digits.
(numeric_limits<T>::digits10): Use __glibcpp_digits10.
* testsuite/18_support/numeric_limits.cc (test03): Don't use
__glibcpp_s8_digits10 et al; check vs the installed versions
of digits10 for particular sizes.
* include/std/std_limits.h (__glibcpp_float_is_modulo,
__glibcpp_double_is_modulo, __glibcpp_long_double_is_modulo): Kill.
(numeric_limits<T>::is_modulo, T floating): Use false.
From-SVN: r57434
2002-09-23 04:24:57 -07:00
Kaveh R. Ghazi
6c5d742e3b
Makefile.am (all-multi): Fix multilib parallel build.
...
boehm-gc:
* Makefile.am (all-multi): Fix multilib parallel build.
libf2c:
* Makefile.in (all): Fix multilib parallel build.
libffi:
* Makefile.am (all-multi): Fix multilib parallel build.
libiberty:
* Makefile.in (all): Fix multilib parallel build.
libjava:
* Makefile.am (all-multi): Fix multilib parallel build.
libobjc:
* Makefile.in (all): Fix multilib parallel build.
libstdc++-v3:
* Makefile.am (all-multi): Fix multilib parallel build.
zlib:
* Makefile.am (all-multi): Fix multilib parallel build.
From-SVN: r57423
2002-09-23 03:52:55 +00:00
Richard Henderson
da28539cd6
std_limits.h (__glibcpp_integral_traps): New.
...
* include/std/std_limits.h (__glibcpp_integral_traps): New.
(__glibcpp_char_traps, __glibcpp_short_traps, __glibcpp_int_traps,
__glibcpp_long_traps, __glibcpp_wchar_t_traps,
__glibcpp_long_long_traps, __glibcpp_plain_char_traps,
__glibcpp_signed_char_traps, __glibcpp_unsigned_char_traps,
__glibcpp_signed_short_traps, __glibcpp_unsigned_short_traps,
__glibcpp_signed_int_traps, __glibcpp_unsigned_int_traps,
__glibcpp_signed_long_traps, __glibcpp_unsigned_long_traps,
__glibcpp_signed_long_long_traps, __glibcpp_unsigned_long_long_traps,
__glibcpp_char_is_modulo, __glibcpp_signed_char_is_modulo,
__glibcpp_signed_short_is_modulo, __glibcpp_signed_int_is_modulo,
__glibcpp_signed_long_is_modulo, __glibcpp_signed_long_long_is_modulo,
__glibcpp_wchar_t_is_modulo, __glibcpp_float_is_bounded,
__glibcpp_double_is_bounded, __glibcpp_long_double_is_bounded): Kill.
(numeric_limits<T>::traps, T integral): Use __glibcpp_integral_traps.
(numeric_limits<T>::is_modulo, T integral): Use true.
(numeric_limits<T>::is_bounded, T floating): Use true.
From-SVN: r57414
2002-09-22 11:37:51 -07:00
Richard Henderson
cf2214db0c
std_limits.h (__glibcpp_f32_is_iec559, [...]): Remove.
...
* include/std/std_limits.h (__glibcpp_f32_is_iec559,
__glibcpp_f64_is_iec559, __glibcpp_f80_is_iec559,
__glibcpp_f96_is_iec559, __glibcpp_f128_is_iec559,
__glibcpp_float_is_iec559, __glibcpp_double_is_iec559,
__glibcpp_long_double_is_iec559): Remove.
(numeric_limits<float>::is_iec559): Use has_infinity & has_quiet_NaN.
(numeric_limits<double>, numeric_limits<long double>): Similarly.
From-SVN: r57413
2002-09-22 11:36:38 -07:00
Richard Henderson
be71ea9dae
std_limits.h (__glibcpp_f32_round_error, [...]): Kill.
...
* include/std/std_limits.h (__glibcpp_f32_round_error,
__glibcpp_f64_round_error, __glibcpp_f80_round_error,
__glibcpp_f96_round_error, __glibcpp_f128_round_error,
__glibcpp_float_round_error, __glibcpp_double_round_error,
__glibcpp_long_double_round_error, __glibcpp_float_round_style,
__glibcpp_double_round_style, __glibcpp_long_double_round_style): Kill.
(numeric_limits<char>::epsilon, round_error): Use constant 0.
(numeric_limits<float>::round_error): Use constant 0.5.
(numeric_limits<float>::round_style): Use round_to_nearest.
(numeric_limits<double>, numeric_limits<long double>): Similarly.
From-SVN: r57412
2002-09-22 11:35:24 -07:00
Loren J. Rittle
b433da3cac
* testsuite/18_support/numeric_limits.cc (test_epsilon): New.
...
From-SVN: r57295
2002-09-19 04:26:25 +00:00
Richard Henderson
62f1a74c0f
* testsuite/18_support/numeric_limits.cc: Add -mieee for alpha.
...
From-SVN: r57280
2002-09-18 11:06:13 -07:00
Benjamin Kosnik
8c7820a0de
c_shadow: Remove.
...
2002-09-16 Benjamin Kosnik <bkoz@redhat.com>
* include/c_shadow: Remove.
* include/bits/generic_shadow.h: Remove.
* include/Makefile.am: Remove generic_shadow.h.
* acinclude.m4: Remove c_shadow references.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* mkcshadow: Remove.
* mkinclosure: Remove.
From-SVN: r57231
2002-09-17 05:50:44 +00:00
Loren J. Rittle
ad17a52a21
stl_rope.h (rope<>): Qualify dependent names with `typename'.
...
libstdc++/7922
* include/ext/stl_rope.h (rope<>): Qualify dependent names
with `typename'.
From-SVN: r57222
2002-09-17 01:56:06 +00:00
Richard Henderson
1472e41cb3
builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
...
gcc/
* builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
(BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
* builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
(__builtin_nans, __builtin_nansf, __builtin_nansl): New.
* builtins.c (fold_builtin_nan): New.
(fold_builtin): Call it.
* real.c (real_nan): Parse a non-empty string.
(round_for_format): Fix NaN significand truncation.
* real.h (real_nan): Return bool.
* doc/extend.texi: Document new builtins.
libstdc++/
* include/std/std_limits.h (__glibcpp_f32_QNaN_bytes,
__glibcpp_f32_has_QNaN, __glibcpp_f32_SNaN_bytes,
__glibcpp_f32_has_SNaN, __glibcpp_f64_QNaN_bytes,
__glibcpp_f64_has_QNaN, __glibcpp_f64_SNaN_bytes,
__glibcpp_f64_has_SNaN, __glibcpp_f80_QNaN_bytes,
__glibcpp_f80_has_QNaN, __glibcpp_f80_SNaN_bytes,
__glibcpp_f80_has_SNaN, __glibcpp_f96_QNaN_bytes,
__glibcpp_f96_has_QNaN, __glibcpp_f96_SNaN_bytes,
__glibcpp_f96_has_SNaN, __glibcpp_f128_QNaN_bytes,
__glibcpp_f128_has_QNaN, __glibcpp_f128_SNaN_bytes,
__glibcpp_f128_has_SNaN, __glibcpp_float_QNaN_bytes,
__glibcpp_float_has_QNaN, __glibcpp_float_SNaN_bytes,
__glibcpp_float_has_SNaN, __glibcpp_double_QNaN_bytes,
__glibcpp_double_has_QNaN, __glibcpp_double_SNaN_bytes,
__glibcpp_double_has_SNaN, __glibcpp_long_double_QNaN_bytes,
__glibcpp_long_double_has_QNaN, __glibcpp_long_double_SNaN_bytes,
__glibcpp_long_double_has_SNaN): Remove.
(__glibcpp_f128_is_iec559): True if IEEE.
(__glibcpp_float_QNaN, __glibcpp_float_SNaN): Remove.
(__glibcpp_double_QNaN, __glibcpp_double_SNaN): Remove.
(__glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN): Remove.
(std::numeric_limits<float>::has_quiet_NaN): Use __builtin_nanf.
(std::numeric_limits<float>::has_signaling_NaN): Mirror has_quiet_NaN.
(std::numeric_limits<float>::quiet_NaN): Use __builtin_nanf.
(std::numeric_limits<float>::signaling_NaN): Use __builtin_nansf.
(std::numeric_limits<double>): Similarly.
(std::numeric_limits<long double>): Similarly.
* src/limits.cc (__glibcpp_float_QNaN, __glibcpp_float_SNaN): Remove.
(__glibcpp_double_QNaN, __glibcpp_double_SNaN): Remove.
(__glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN): Remove.
* testsuite/18_support/numeric_limits.cc (test_infinity): New.
(test_denorm_min, test_qnan, test_is_iec559): New.
From-SVN: r57221
2002-09-16 18:28:50 -07:00
Phil Edwards
0e9cab878b
abi_check.cc: Pull shell fragments out into...
...
2002-09-16 Phil Edwards <pme@gcc.gnu.org>
* testsuite/abi_check.cc: Pull shell fragments out into...
* config/abi/extract_symvers: ...here. New file.
* Makefile.am (check_abi): Change to match.
(new-abi-baseline): New target.
* Makefile.in: Regenerated.
From-SVN: r57208
2002-09-16 18:58:48 +00:00
Richard Henderson
ac520ec919
c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
...
gcc/
* c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
libstdc++/
* include/std/std_limits.h (__glibcpp_f32_denorm_min_bytes,
__glibcpp_f32_has_denorm, __glibcpp_f64_denorm_min_bytes,
__glibcpp_f64_has_denorm, __glibcpp_f80_denorm_min_bytes,
__glibcpp_f80_has_denorm, __glibcpp_f96_denorm_min_bytes,
__glibcpp_f96_has_denorm, __glibcpp_f128_denorm_min_bytes,
__glibcpp_f128_has_denorm, __glibcpp_float_denorm_min_bytes,
__glibcpp_float_has_denorm, __glibcpp_double_denorm_min_bytes,
__glibcpp_double_has_denorm, __glibcpp_long_double_denorm_min_bytes,
__glibcpp_long_double_has_denorm): Remove.
(__glibcpp_float_denorm_min, __glibcpp_double_denorm_min,
__glibcpp_long_double_denorm_min): Remove.
(std::numeric_limits<float>::has_denorm): Use __FLT_DENORM_MIN__.
(std::numeric_limits<float>::denorm_min): Likewise.
(std::numeric_limits<double>): Similarly.
(std::numeric_limits<long double>): Similarly.
* src/limits.cc (__glibcpp_float_denorm_min,
__glibcpp_double_denorm_min, __glibcpp_long_double_denorm_min): Remove.
From-SVN: r57200
2002-09-16 09:58:42 -07:00
Phil Edwards
61e6e65a6a
[multiple changes]
...
2002-09-13 Andy Felt <afelt@uwsp.edu>
* docs/html/17_intro/howto.html: Update link.
2002-09-13 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/run_doxygen: Massage man page for Iterator_types.3.
* docs/html/faq/index.html: Whitespace fixes.
From-SVN: r57125
2002-09-14 00:35:18 +00:00
Benjamin Kosnik
714e9334c4
Makefile.am (LIBTOOL): Use --tag CC always for this directory.
...
2002-09-12 Benjamin Kosnik <bkoz@redhat.com>
* libmath/Makefile.am (LIBTOOL): Use --tag CC always for this
directory.
* libmath/Makefile.in: Regenerate.
* src/Makefile.am: Tweak comment.
* src/Makefile.in: Regenerate.
* config/locale/gnu/c_locale.h: Remove warnings.
Inject __uselocale into __gnu_cxx.
* config/locale/generic/c_locale.h: Match.
From-SVN: r57082
2002-09-12 23:27:30 +00:00
Benjamin Kosnik
145163253a
[multiple changes]
...
2002-09-11 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc (__convert_from_v): Remove.
* config/locale/gnu/c_locale.h (__convert_from_v): Add.
* config/locale/generic/c_locale.h (__convert_from_v): Add.
2002-09-11 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (__convert_from_v):
Use __uselocale instead of setlocale for glibc 2.3+.
From-SVN: r57021
2002-09-11 04:25:41 +00:00
Benjamin Kosnik
38cca75024
Makefile.am (sources): Edit.
...
2002-09-10 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (sources): Edit.
(target_sources): New.
(target_sources_extra): New.
* src/Makefile.in: Regenerate.
* acinclude.m4: Set CCODECVT_CC.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/locale.cc: Move ctype definitions...
* src/ctype.cc: ...here. New file.
* src/locale.cc: Move codecvt definitions...
* src/codecvt.cc: ...here.
* config/generic/codecvt_members.cc: ...and here.
* config/gnu/codecvt_members.cc: ...and here.
* include/bits/codecvt.h: Tweak.
* include/bits/locale_facets: Tweak.
* src/bitset.cc: Correct license text.
* src/concept-inst.cc: Same.
* src/strstream.cc: Same.
* src/vterminate.cc: Same.
From-SVN: r57020
2002-09-11 03:36:45 +00:00
Gabriel Dos Reis
be26865df1
stl_vector.h (vector<>): Don't use a name with different meanings before and after re-evaluation in the...
...
2002-09-10 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
* include/bits/stl_vector.h (vector<>): Don't use a name with
different meanings before and after re-evaluation in the completed
scope.
* include/bits/basic_string.h (basic_string<>): Likewise.
* include/bits/stl_bvector.h (vector<bool>): Likewise.
* include/bits/stl_deque.h (std): Likewise.
* include/bits/stl_list.h (list<>): Likewise.
* include/bits/stl_tree.h (_Rb_tree<>): Likewise.
From-SVN: r57014
2002-09-10 23:19:10 +00:00
Paolo Carlini
c6b5df5351
codecvt.h (class __codecvt_abstract_base): Add __c_locale type _M_c_locale_codecvt member.
...
2002-09-10 Paolo Carlini <pcarlini@unitus.it>
* include/bits/codecvt.h (class __codecvt_abstract_base):
Add __c_locale type _M_c_locale_codecvt member.
(class codecvt<char, char, mbstate_t>,
class codecvt<wchar_t, char, mbstate_t>): Add new
codecvt(__c_locale, size_t) constructor.
(codecvt_byname::codecvt_byname): Update.
* src/codecvt.cc (class codecvt<char, char, mbstate_t>,
class codecvt<wchar_t, char, mbstate_t>): Update codecvt(size_t)
constructor and ~codecvt() destructor; define
codecvt(__c_locale, size_t) constructor.
(codecvt::do_out): Switch to _M_c_locale_codecvt around wcsrtombs call.
(codecvt::do_in): Ditto for mbsrtowcs call.
* src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
Tweak construction of codecvt facets.
From-SVN: r57011
2002-09-10 19:35:04 +00:00
Danny Smith
57c4e0cd35
locale_facets.tcc (__convert_from_v): Replace strdup with ISO malloc and strcpy.
...
* include/bits/locale_facets.tcc (__convert_from_v):
Replace strdup with ISO malloc and strcpy.
From-SVN: r56991
2002-09-10 02:41:55 +00:00
Benjamin Kosnik
f7be254940
configopts.html: Change grouping.
...
2002-09-09 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/configopts.html: Change grouping. Note ABI impacts.
Update information for locale model defaults.
* docs/html/install.html: Update include directory
information.
Update testing information.
Update linux issues for named locales.
* docs/html/abi.txt: Fix typos.
Add more info.
* src/misc-inst.cc: Add missing instantiations.
* testsuite/abi_check.cc: Make output results more verbose.
* config/os/gnu-linux/ctype_base.h: Remove shadow headers injections.
From-SVN: r56979
2002-09-09 20:26:42 +00:00
Jakub Jelinek
7d9857fde0
messages_members.cc: Add specialization for messages<wchar_t>.
...
* config/locale/generic/messages_members.cc: Add specialization for
messages<wchar_t>.
* config/locale/ieee_1003.1-20021/messages_members.cc: Likewise.
From-SVN: r56920
2002-09-07 21:06:57 +02:00
Benjamin Kosnik
09ff0ee4cf
localefwd.h: Tweak formatting.
...
2002-09-06 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/localefwd.h: Tweak formatting.
* docs/html/abi.txt: Add.
From-SVN: r56903
2002-09-06 19:52:38 +00:00
Jakub Jelinek
750db234b1
configure.target: Use cpu_include_dir="config/cpu/sparc" for all sparc targets.
...
* configure.target: Use cpu_include_dir="config/cpu/sparc" for all
sparc targets.
* config/cpu/sparc/bits/atomicity.h: New file.
* config/cpu/sparc/sparc32/bits/atomicity.h: Removed.
* config/cpu/sparc/sparc64/bits/atomicity.h: Removed.
[[Split portion of a mixed commit.]]
From-SVN: r56897.2
2002-09-06 20:32:08 +02:00
Jakub Jelinek
1c28b93579
ctype_noninline.h [...]: Remove using _C_legacy::__ctype_*.
...
* config/os/gnu-linux/ctype_noninline.h
[_GLIBCPP_USE_SHADOW_HEADERS]: Remove using _C_legacy::__ctype_*.
(ctype<char>::classic_table): If _GLIBCPP_C_LOCALE_GNU, return
_S_c_locale->__ctype_b, otherwise temporarily switch to "C" locale
and return __ctype_b.
(ctype<char>::ctype(__c_locale, const mask*, bool, size_t)): If not
_GLIBCPP_C_LOCALE_GNU, temporarily switch to "C" locale and
initialize using __ctype_{b,tolower,toupper}.
(ctype<char>::ctype(const mask*, bool, size_t)): If
_GLIBCPP_C_LOCALE_GNU, initialize using
_S_c_locale->__ctype_{b,tolower,toupper}, otherwise temporarily
switch to "C" locale and initialize using __ctype_{b,tolower,toupper}.
From-SVN: r56893
2002-09-06 19:58:27 +02:00
Paolo Carlini
e2cbee7fd1
re PR libstdc++/7811 (default locale not taken from environment)
...
2002-09-05 Paolo Carlini <pcarlini@unitus.it>
Roland McGrath <roland@redhat.com>
PR libstdc++/7811
* src/locale.cc (locale::locale(__s)): Use getenv instead
of setenv for the environment locale.
* testsuite/22_locale/ctor_copy_dtor.cc (test03): New.
Co-Authored-By: Roland McGrath <roland@redhat.com>
From-SVN: r56865
2002-09-05 21:13:07 +00:00
Jakub Jelinek
fcfe9bce2d
ia64-unknown-linux-gnu: Add.
...
* config/abi/ia64-unknown-linux-gnu: Add.
* config/abi/ia64-unknown-linux-gnu/baseline_symbols.txt: New file.
* config/abi/alphaev67-unknown-linux-gnu: Add.
* config/abi/alphaev67-unknown-linux-gnu/baseline_symbols.txt: New file.
From-SVN: r56847
2002-09-05 18:21:55 +02:00
Jonathan Wakely
64a6f97186
Makefile: Use more portable shell wildcard.
...
2002-09-05 Jonathan Wakely <jw@kayari.org>
* docs/html/Makefile: Use more portable shell wildcard.
* docs/html/makedoc.awk: Nest elements correctly for XHTML conversion.
* docs/html/configopts.html, docs/html/documentation.html,
docs/html/explanations.html, docs/html/install.html,
docs/html/17_intro/contribute.html, docs/html/17_intro/howto.html,
docs/html/17_intro/license.html, docs/html/18_support/howto.html,
docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
docs/html/21_strings/howto.html, docs/html/22_locale/codecvt.html,
docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
docs/html/27_io/howto.html, docs/html/ext/howto.html,
docs/html/ext/sgiexts.html, docs/html/faq/index.html: Convert
to XHTML.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r56845
2002-09-05 15:47:54 +00:00
Jakub Jelinek
f373d4c761
ctype_members.cc (ctype<wchar_t>::do_widen(char)): Switch to _M_c_locale_ctype around btowc call.
...
* config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_widen(char)):
Switch to _M_c_locale_ctype around btowc call.
(ctype<wchar_t>::do_widen(const char*, const char *, wchar_t*)):
Switch to _M_c_locale_ctype around mbsrtowcs call.
(ctype<wchar_t>::do_narrow(char)): Switch to _M_c_locale_ctype around
wctob call.
(ctype<wchar_t>::do_narrow(const char*, const char *, wchar_t*)):
Switch to _M_c_locale_ctype around wcsrtombs call.
From-SVN: r56841
2002-09-05 09:54:26 +02:00
Jakub Jelinek
9a6d20712b
monetary_members.cc (moneypunct<wchar_t, [...]): Use __uselocale instead of setlocale for glibc 2.3.
...
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true>::_M_initialize_moneypunct,
moneypunct<wchar_t, false>::_M_initialize_moneypunct): Use
__uselocale instead of setlocale for glibc 2.3.
From-SVN: r56839
2002-09-05 09:51:16 +02:00
Jakub Jelinek
89671b7067
c++locale_internal.h: New header.
...
* config/locale/generic/c++locale_internal.h: New header.
* config/locale/gnu/c++locale_internal.h: New header.
* config/locale/gnu/c_locale.cc: Include it.
* config/locale/gnu/collate_members.cc: Include it.
* config/locale/gnu/ctype_members.cc: Include it.
* config/locale/gnu/messages_members.cc: Include it.
* config/locale/gnu/monetary_members.cc: Include it.
* config/locale/gnu/numeric_members.cc: Include it.
* config/locale/gnu/time_members.cc: Include it.
(_M_put): Reorder __strftime_l and __wcsftime_l arguments to match
glibc.
(_M_initialize_timepunct): Initialize _M_c_locale_timepunct for
C locale.
* acinclude.m4: Include string.h when testing strcoll_l.
For glibc 2.3 provide __-prefixed prototypes.
(CLOCALE_INTERNAL_H): Set, add AC_LINK_FILES line.
* aclocal.m4, configure: Rebuilt.
* include/bits/locale_facets.h: Add declaration of specialization
here.
* config/locale/gnu/messages_members.cc: Add specialization for
messages<wchar_t>.
* config/locale/gnu/messages_members.h: Remove generic definition
of do_get.
From-SVN: r56837
2002-09-05 09:46:17 +02:00
Richard Henderson
65e32b88a6
std_limits.h (__glibcpp_f32_infinity_bytes, [...]): Remove.
...
* include/std/std_limits.h (__glibcpp_f32_infinity_bytes,
__glibcpp_f32_has_infinity, __glibcpp_f64_infinity_bytes,
__glibcpp_f64_has_infinity, __glibcpp_f80_infinity_bytes,
__glibcpp_f80_has_infinity, __glibcpp_f96_infinity_bytes,
__glibcpp_f96_has_infinity, __glibcpp_f128_infinity_bytes,
__glibcpp_f128_has_infinity, __glibcpp_float_infinity_bytes,
__glibcpp_float_has_infinity, __glibcpp_double_infinity_bytes,
__glibcpp_double_has_infinity, __glibcpp_long_double_infinity_bytes,
__glibcpp_long_double_has_infinity): Remove.
(std::numeric_limits<float>, std::numeric_limits<double>,
std::numeric_limits<long double>): Use __builtin_huge_val
to implement has_infinity and infinity().
* src/limits.cc (__glibcpp_float_infinity, __glibcpp_double_infinity,
__glibcpp_long_double_infinity): Remove.
From-SVN: r56821
2002-09-04 16:22:18 -07:00
Richard Henderson
5e25fa2263
std_limits.h (__glibcpp_f32_min, [...]): Remove macros.
...
* include/std/std_limits.h (__glibcpp_f32_min, __glibcpp_f32_max,
__glibcpp_f32_digits, __glibcpp_f32_digits10, __glibcpp_f32_radix,
__glibcpp_f32_epsilon, __glibcpp_f32_min_exponent,
__glibcpp_f32_min_exponent10, __glibcpp_f32_max_exponent,
__glibcpp_f32_max_exponent10, __glibcpp_f64_min, __glibcpp_f64_max,
__glibcpp_f64_digits, __glibcpp_f64_digits10, __glibcpp_f64_radix,
__glibcpp_f64_min_exponent, __glibcpp_f64_min_exponent10,
__glibcpp_f64_max_exponent, __glibcpp_f64_max_exponent10,
__glibcpp_f80_min, __glibcpp_f80_max, __glibcpp_f80_digits,
__glibcpp_f80_digits10, __glibcpp_f80_radix, __glibcpp_f80_epsilon,
__glibcpp_f80_min_exponent, __glibcpp_f80_min_exponent10,
__glibcpp_f80_max_exponent, __glibcpp_f80_max_exponent10,
__glibcpp_f96_min, __glibcpp_f96_max, __glibcpp_f96_digits,
__glibcpp_f96_digits10, __glibcpp_f96_radix, __glibcpp_f96_epsilon,
__glibcpp_f96_min_exponent, __glibcpp_f96_min_exponent10,
__glibcpp_f96_max_exponent, __glibcpp_f96_max_exponent10,
__glibcpp_f128_min, __glibcpp_f128_max, __glibcpp_f128_digits,
__glibcpp_f128_digits10, __glibcpp_f128_radix, __glibcpp_f128_epsilon,
__glibcpp_f128_min_exponent, __glibcpp_f128_min_exponent10,
__glibcpp_f128_max_exponent, __glibcpp_f128_max_exponent10,
__glibcpp_float_min, __glibcpp_float_max, __glibcpp_float_digits,
__glibcpp_float_digits10, __glibcpp_float_radix,
__glibcpp_float_epsilon, __glibcpp_float_min_exponent,
__glibcpp_float_min_exponent10, __glibcpp_float_max_exponent,
__glibcpp_float_max_exponent10, __glibcpp_double_min,
__glibcpp_double_max, __glibcpp_double_digits,
__glibcpp_double_digits10, __glibcpp_double_radix,
__glibcpp_double_epsilon, __glibcpp_double_min_exponent,
__glibcpp_double_min_exponent10, __glibcpp_double_max_exponent,
__glibcpp_double_max_exponent10, __glibcpp_long_double_min,
__glibcpp_long_double_max, __glibcpp_long_double_digits,
__glibcpp_long_double_digits10, __glibcpp_long_double_radix,
__glibcpp_long_double_epsilon, __glibcpp_long_double_min_exponent,
__glibcpp_long_double_min_exponent10,
__glibcpp_long_double_max_exponent,
__glibcpp_long_double_max_exponent10): Remove macros.
(std::numeric_limits<float>, std::numeric_limits<double>,
std::numeric_limits<long double>): Use protected float.h macros.
From-SVN: r56770
2002-09-03 13:22:06 -07:00
Phil Edwards
5ec62d440b
Makefile.am: Use LD_RUN_PATH when linking abi_check.
...
2002-09-01 Phil Edwards <pme@gcc.gnu.org>
* testsuite/Makefile.am: Use LD_RUN_PATH when linking abi_check.
Fix spelling in comment.
* testsuite/Makefile.in: Regenerate.
* testsuite/abi_check.cc: Use string literals to build 'cmd' rather
than 'quote' and 'bslash'.
From-SVN: r56722
2002-09-01 18:09:18 +00:00
Phil Edwards
51122a4242
acinclude.m4: Minor comment tweaks.
...
2002-08-31 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4: Minor comment tweaks.
* docs/html/makedoc.awk: New file...
* docs/html/Makefile: ...called from here...
* docs/html/documentation.html: ...to help generate this.
* docs/html/21_strings/howto.html: Prepare for new entry.
* include/bits/basic_string.h: Initial basic_stirng hook for
doxygen. Remove trailing whitespace.
* include/bits/char_traits.h: Point to onlinedocs for new entry.
* include/bits/stringfwd.h: Add doxygen hooks for string and
wstring typedefs.
From-SVN: r56711
2002-09-01 00:33:53 +00:00
Richard Earnshaw
25cf83980b
cpu_limits.h: New file.
...
* config/cpu/arm/cpu_limits.h: New file.
* configure.target: Use config/cpu/arm for XScale and StrongARM
configurations.
From-SVN: r56653
2002-08-29 09:14:27 +00:00
Gabriel Dos Reis
585e661a79
c-common.c (builtin_define_type_precision): New function.
...
gcc/
2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
* c-common.c (builtin_define_type_precision): New function.
(cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is
wchar_t is unsigned in C++.
* doc/cpp.texi (Common Predefined Macros): Document
__WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
__INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
__DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
libstdc++-v3/
2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
* include/std/std_limits.h (__glibcpp_char_bits,
__glibcpp_short_bits, __glibcpp_int_bits,
__glibcpp_long_bits,
__glibcpp_long_long_bits, __glibcpp_float_bits,
__glibcpp_double_bits, __glibcpp_long_double_bits):
Remove. Use
compiler predifined macros.
(__glibcpp_wchar_t_is_signed): Define based on compiler
predefined
__WCHAR_UNSIGNED__.
From-SVN: r56646
2002-08-28 21:41:55 +00:00
Gabriel Dos Reis
2559486f3e
std_limits.h (__glibcpp_f32_infinity_bytes, [...]): New macros.
...
* include/std/std_limits.h (__glibcpp_f32_infinity_bytes,
__glibcpp_f32_has_infinity, __glibcpp_f32_QNaN_bytes,
__glibcpp_f32_has_QNaN, __glibcpp_f32_SNaN_bytes,
__glibcpp_f32_has_SNaN, __glibcpp_f32_denorm_min_bytes,
__glibcpp_f32_has_denorm, __glibcpp_f32_is_iec559,
__glibcpp_f64_infinity_bytes,
__glibcpp_f64_has_infinity, __glibcpp_f64_QNaN_bytes,
__glibcpp_f64_has_QNaN, __glibcpp_f64_SNaN_bytes,
__glibcpp_f64_has_SNaN, __glibcpp_f64_denorm_min_bytes,
__glibcpp_f64_has_denorm, __glibcpp_f64_is_iec559,
__glibcpp_f80_infinity_bytes,
__glibcpp_f80_has_infinity, __glibcpp_f80_QNaN_bytes,
__glibcpp_f80_has_QNaN, __glibcpp_f80_SNaN_bytes,
__glibcpp_f80_has_SNaN, __glibcpp_f80_denorm_min_bytes,
__glibcpp_f80_has_denorm, __glibcpp_f80_is_iec559,
__glibcpp_f96_infinity_bytes,
__glibcpp_f96_has_infinity, __glibcpp_f96_QNaN_bytes,
__glibcpp_f96_has_QNaN, __glibcpp_f96_SNaN_bytes,
__glibcpp_f96_has_SNaN, __glibcpp_f96_denorm_min_bytes,
__glibcpp_f96_has_denorm, __glibcpp_f96_is_iec559,
__glibcpp_f128_infinity_bytes,
__glibcpp_f128_has_infinity, __glibcpp_f128_QNaN_bytes,
__glibcpp_f128_has_QNaN, __glibcpp_f128_SNaN_bytes,
__glibcpp_f128_has_SNaN, __glibcpp_f128_denorm_min_bytes,
__glibcpp_f128_has_denorm, __glibcpp_f128_is_iec559,
__glibcpp_float_infinity_bytes,
__glibcpp_float_has_infinity, __glibcpp_float_QNaN_bytes,
__glibcpp_float_has_QNaN, __glibcpp_float_SNaN_bytes,
__glibcpp_float_has_SNaN, __glibcpp_float_denorm_min_bytes,
__glibcpp_float_has_denorm, __glibcpp_float_is_iec559,
__glibcpp_double_infinity_bytes,
__glibcpp_double_has_infinity, __glibcpp_double_QNaN_bytes,
__glibcpp_double_has_QNaN, __glibcpp_double_SNaN_bytes,
__glibcpp_double_has_SNaN, __glibcpp_double_denorm_min_bytes,
__glibcpp_double_has_denorm, __glibcpp_double_is_iec559,
__glibcpp_long_double_infinity_bytes,
__glibcpp_long_double_has_infinity, __glibcpp_long_double_QNaN_bytes,
__glibcpp_long_double_has_QNaN, __glibcpp_long_double_SNaN_bytes,
__glibcpp_long_double_has_SNaN, __glibcpp_long_double_denorm_min_bytes,
__glibcpp_long_double_has_denorm, __glibcpp_long_double_is_iec559:
New macros.
(__glibcpp_word_bits, __glibcpp_word): Likewise.
(__glibcpp_byte): New typedef.
(__float_storage, __double_storage, __long_double_storage): New types.
(__glibcpp_float_infinity, __glibcpp_float_QNaN,
__glibcpp_float_SNaN, __glibcpp_float_denorm_min): Now
objects. Declare.
(__glibcpp_double_infinity, __glibcpp_double_QNaN,
__glibcpp_double_SNaN, __glibcpp_double_denorm_min): Likewise.
(__glibcpp_long_double_infinity, __glibcpp_long_double_QNaN,
__glibcpp_long_double_SNaN, __glibcpp_long_double_denorm_min):
Likewise.
* src/limits.cc (__glibcpp_float_infinity, __glibcpp_float_QNaN,
__glibcpp_float_SNaN, __glibcpp_float_denorm_min): Define.
(__glibcpp_double_infinity, __glibcpp_double_QNaN,
__glibcpp_double_SNaN, __glibcpp_double_denorm_min): Likewise.
(__glibcpp_long_double_infinity, __glibcpp_long_double_QNaN,
__glibcpp_long_double_SNaN, __glibcpp_long_double_denorm_min):
Likewise.
From-SVN: r56613
2002-08-27 20:30:26 +00:00
Gabriel Dos Reis
f3cd98c4d6
std_limits.h: Indent conditional macro definitions.
...
* include/std/std_limits.h: Indent conditional macro
definitions.
From-SVN: r56570
2002-08-25 20:17:01 +00:00
Phil Edwards
314b5a68e3
Makefile.am (check-abi): Specify current directory.
...
2002-08-23 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (check-abi): Specify current directory.
* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Fix shell syntax, use
abi_baseline_triplet in baseline_file.
* Makefile.in, aclocal.m4, configure: Regenerate.
* configure.target: Add abi_baseline_triplet with default.
* testsuite/abi_check.cc: More error checking.
From-SVN: r56545
2002-08-23 19:33:41 +00:00
Phil Edwards
6dc5fdfd5f
linker-map.gnu: Verbose comments, clean up spacing.
...
2002-08-23 Phil Edwards <pme@gcc.gnu.org>
* config/linker-map.gnu: Verbose comments, clean up spacing.
* include/bits/stl_alloc.h: Fix indentation of 'if' bodies, return
statements.
__allocator: Change class declaration to struct.
* docs/html/17_intro/C++STYLE: Fix typo.
* include/bits/stl_deque.h, include/bits/stl_list.h,
include/bits/stl_map.h, include/bits/stl_multimap.h,
include/bits/stl_vector.h: Fix fallout from typo.
From-SVN: r56540
2002-08-23 16:52:29 +00:00
Benjamin Kosnik
e21c2e1c38
acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Set GLIBCPP_BUILD_ABI_CHECK based on cross compiling, build, host variables.
...
2002-08-22 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Set
GLIBCPP_BUILD_ABI_CHECK based on cross compiling, build, host
variables.
* aclocal.m4: Regenerate.
* testsuite/Makefile.am (noinst_PROGRAMS): Make conditional on
native compiling.
* testsuite/Makefile.in: Regenerate.
From-SVN: r56531
2002-08-23 03:39:51 +00:00
Loren J. Rittle
809abaff7e
* testsuite/abi_check.cc: Support older binutils/readelf.
...
From-SVN: r56530
2002-08-23 02:57:11 +00:00
Loren J. Rittle
1f8151cf73
abi_check.cc: Enhance shell portability.
...
* testsuite/abi_check.cc: Enhance shell portability.
* config/abi/i386-unknown-freebsd4.6: Add.
* config/abi/i386-unknown-freebsd4.6/baseline_symbols.txt: New file.
From-SVN: r56527
2002-08-23 01:50:15 +00:00
Paolo Carlini
9acd8e650b
index.html: Add Loren James Rittle and Paolo Carlini to the list of v3 maintainers.
...
2002-08-22 Paolo Carlini <pcarlini@unitus.it>
* docs/html/faq/index.html: Add Loren James Rittle and
Paolo Carlini to the list of v3 maintainers.
* docs/html/faq/index.txt: Ditto.
* docs/html/17_intro/RELEASE-NOTES: Ditto.
From-SVN: r56516
2002-08-22 20:30:13 +00:00
Benjamin Kosnik
747d096709
Makefile.am (check-abi): New rule.
...
2002-08-22 Benjamin Kosnik <bkoz@redhat.com>
Phil Edwards <pme@gcc.gnu.org>
Ulrich Drepper <drepper@redhat.com>
* Makefile.am (check-abi): New rule.
* Makefile.in: Regenerate.
* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Export baseline_file.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/Makefile.am (noinst_PROGRAMS): Add abi_check.
(abi_check_SOURCES): Add.
* testsuite/Makefile.in: Regenerate.
* testsuite/abi_check.cc: New file.
* config/abi: Add.
* config/abi/i686-pc-linux-gnu: Add.
* config/abi/i686-pc-linux-gnu/baseline_symbols.txt: New file.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
Co-Authored-By: Ulrich Drepper <drepper@redhat.com>
From-SVN: r56515
2002-08-22 20:06:01 +00:00
Benjamin Kosnik
81eec873ab
configure.in (libtool_VERSION): Update to 5:1:0.
...
2002-08-19 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (libtool_VERSION): Update to 5:1:0.
* configure: Regenerate.
From-SVN: r56462
2002-08-20 07:32:10 +00:00
Jonathan Wakely
1860e6ab05
configopts.html, [...]: Conform to HTML 4.01 standard.
...
2002-08-19 Jonathan Wakely <jw@kayari.org>
* docs/html/configopts.html, docs/html/documentation.html,
docs/html/install.html, docs/html/22_locale/codecvt.html,
docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
docs/html/22_locale/locale.html,
docs/html/22_locale/messages.html: Conform to HTML 4.01 standard.
From-SVN: r56449
2002-08-20 00:44:19 +00:00
Benjamin Kosnik
6e52332ec7
re PR libstdc++/7445 (poor performance of std::locale::classic() in multi-threaded applications)
...
2002-08-15 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stdio_filebuf.h (stdio_filebuf): Explicitly set
_M_buf_size_opt to zero when unbuffering.
* include/bits/fstream.tcc (filebuf::showmanyc): Simplify.
Consistency checks for _M_buf_size_opt.
Revert PR libstdc++/7445
* src/locale.cc (locale::classic): Revert.
* docs/html/17_intro/TODO: Add.
From-SVN: r56365
2002-08-15 22:25:39 +00:00
Phil Edwards
0053afb965
documentation.html: Update doxygen links for 3.2.
...
2002-08-15 Phil Edwards <pme@gcc.gnu.org>
* docs/html/documentation.html: Update doxygen links for 3.2.
From-SVN: r56357
2002-08-15 20:19:11 +00:00
Steve Ellcey
cb94b1559a
unwind-cxx.h (__cxa_exception): Change catchTemp type from void* to _Unwind_Ptr.
...
* libstdc++-v3/libsupc++/unwind-cxx.h (__cxa_exception):
Change catchTemp type from void* to _Unwind_Ptr.
* libstdc++-v3/libsupc++/eh_personality.cc (PERSONALITY_FUNCTION):
Do not cast landing_pad or base_of_encoded_value to (void *).
* libstdc++-v3/libsupc++/eh_throw.cc (__gxx_exception_cleanup):
Accept _URC_NO_REASON as a valid reason code.
From-SVN: r56352
2002-08-15 18:05:41 +00:00
Jonathan Wakely
615d009f6d
messages.html: Use HTML entities for punctuation.
...
2002-08-14 Jonathan Wakely <jw@kayari.org>
* docs/html/22_locale/messages.html: Use HTML entities for
punctuation.
From-SVN: r56300
2002-08-14 17:29:19 +00:00
Jonathan Wakely
b2659518d1
documentation.html: Use HTML entities for punctuation.
...
2002-08-13 Jonathan Wakely <jw@kayari.org>
Phil Edwards <pme@gcc.gnu.org>
* docs/html/documentation.html: Use HTML entities for punctuation.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r56257
2002-08-13 16:26:13 +00:00
Phil Edwards
3971a4d235
deque.tcc, [...]: Re-indent contents of namespace std, re-wrap comment lines as necessary.
...
2002-08-09 Phil Edwards <pme@gcc.gnu.org>
* include/bits/deque.tcc, include/bits/list.tcc,
include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
include/bits/stl_list.h, include/bits/stl_map.h,
include/bits/stl_multimap.h, include/bits/stl_queue.h,
include/bits/stl_stack.h, include/bits/stl_vector.h,
include/bits/vector.tcc: Re-indent contents of namespace std,
re-wrap comment lines as necessary.
From-SVN: r56165
2002-08-09 16:51:15 +00:00
Danny Smith
a2554733cc
istream.tcc (basic_istream::ignore): Use sbumpc, not snextc.
...
2002-08-08 Danny Smith <dannysmith@users.sourceforge.net>
Benjamin Kosnik <bkoz@redhat.com>
* include/bits/istream.tcc (basic_istream::ignore): Use sbumpc,
not snextc.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r56153
2002-08-09 06:00:18 +00:00
John David Anglin
a98b7b289a
Makefile.am (LTCOMPILE): Add LIBSUPCXX_PICFLAGS.
...
* libsupc++/Makefile.am (LTCOMPILE): Add LIBSUPCXX_PICFLAGS.
* libsupc++/Makefile.in: Regenerate.
From-SVN: r56099
2002-08-07 15:56:11 +00:00
Gabriel Dos Reis
00386a9be1
slice_array.h (_DEFINE_VALARRAY_OPERATOR): Instantiate with new function objects.
...
PR/7491
* include/bits/slice_array.h(_DEFINE_VALARRAY_OPERATOR):
Instantiate with new function objects.
* include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR): Likewise.
Reformat. Uglify.
* include/bits/gslice_array.h: Likewise.
* include/bits/indirect_array.h: Likewise.
From-SVN: r56036
2002-08-05 02:09:27 +00:00
Gabriel Dos Reis
7a9ffd82b6
valarray_name_lookup.cc: Rename from testsuite/26_numerics/valarray_name_lookup.C
...
* testsuite/26_numerics/valarray_name_lookup.cc: Rename from
testsuite/26_numerics/valarray_name_lookup.C
From-SVN: r56008
2002-08-03 19:56:17 +00:00
Gabriel Dos Reis
971cfc6f10
valarray_array.h (_DEFINE_ARRAY_FUNCTION): Use our object function surrogates.
...
* include/bits/valarray_array.h (_DEFINE_ARRAY_FUNCTION): Use our
object function surrogates.
* include/bits/valarray_meta.h (__shift_left): Fix typo.
(_BinFunClos<>): Remove.
(_BinFunBase<>): Likewise.
(_BinFunBase1<>):Likewise.
(_BinFunBase2<>): Likewise.
(_DEFINE_EXPR_RELATIONAL_OPERATOR): Likewise.
(_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
(_DEFINE_EXPR_BINARY_OPERATOR): Likewise.
(_DEFINE_EXPR_BINARY_FUNCTION): Likewise.
* include/std/std_valarray.h: Dont #include <functional> anymore.
(_Bitwise_or<>, _Bitwise_and<>, _Bitwise_xor<>, _Shift_left<>,
_Shift_right<>): Remove.
(_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT): Adjust instantiation.
(_DEFINE_BINARY_OPERATOR): Tweak definition.
(_DEFINE_LOGICAL_OPERATOR): Remove.
* testsuite/26_numerics/valarray_name_lookup.C (main): Add more tests.
From-SVN: r56001
2002-08-02 23:08:40 +00:00
Gabriel Dos Reis
74d6b8ca63
valarray_meta.h (_UnFunBase<>): Remove.
...
* include/bits/valarray_meta.h (_UnFunBase<>): Remove.
(_UnFunClos<>): Same.
(_UnBase<>): Reformat. Make first template-parameter non
template.
(_UnClos<>): Likewise.
(_Expr<>): Reformate. Adjust unary member operator return types.
(_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
(_DEFINE_EXPR_UNARY_FUNCTION): Likewise.
* include/std/std_valarray.h (_UnClos<>): Adjust declaration.
(valarray<>::_UnaryOp<>): New nested traits. Adjust unary member
operator return types. Reformat.
(_Bitwise_not): Remove.
(_DEFINE_VALARRAY_UNARY_OPERATOR): Adjust definition.
* testsuite/26_numerics/valarray_name_lookup.C: New test.
From-SVN: r55993
2002-08-02 18:10:38 +00:00
Benjamin Kosnik
3a7491fbb9
ctype_inline.h (is): Don't offset _M_table.
...
2002-08-02 Danny Smith <dannysmith@users.sourceforge.net>
* config/os/newlib/ctype_inline.h (is): Don't offset _M_table.
(scan_is): Use this->is.
(scan_not): Likewise.
From-SVN: r55990
2002-08-02 16:10:37 +00:00
Danny Smith
b5028f5e8b
ctype_inline.h (is): Don't offset _M_table.
...
2002-08-02 Danny Smith <dannysmith@users.sourceforge.net>
* config/os/newlib/ctype_inline.h (is): Don't offset _M_table.
(scan_is): Use this->is.
(scan_not): Likewise.
From-SVN: r55989
2002-08-02 16:10:12 +00:00
Benjamin Kosnik
49bc23b7f9
Revert PR libstdc++/6594
...
2002-08-02 Benjamin Kosnik <bkoz@redhat.com>
Revert PR libstdc++/6594
* src/strstream.cc (strstreambuf): Revert.
(strstreambuf::overflow): Same.
(strstreambuf::~strstreambuf): Same.
* testsuite/backward/strstream_members.cc (test02): Add.
* docs/html/abi.txt: Update. Spell check.
* testsuite/19_diagnostics/stdexceptions.cc (test04): Add bool test.
* testsuite/Makefile.am (INCLUDES): Add LIBSUPCXX_INCLUDES.
* testsuite/Makefile.in: Regenerate.
* testsuite/testsuite_hooks.h: Use __throw_exception_again,
include functexcept.h so that -fno-exceptions will build.
From-SVN: r55988
2002-08-02 16:04:16 +00:00
Gabriel Dos Reis
2b1a407046
valarray_meta.h (__unary_plus, [...]): New function object classes.
...
* include/bits/valarray_meta.h (__unary_plus, __negate,
__bitwise_not, __plus, __minus, __multiplies, __divides,
__modulus, __bitwise_xor, __bitwise_or, __bitwise_and,
__shift_left, __shift_right, __logical_and, __logical_or,
__logical_not, __equal_to, __not_equal_to, __less, __less_equal,
__greater_equal, __greater, __atan2, __pow): New function object
classes.
(__fun<>): New function traits class.
From-SVN: r55985
2002-08-02 13:51:46 +00:00
Benjamin Kosnik
3450b8d03c
re PR libstdc++/7461 (ctype<char>::classic_table() returns offset array on Cygwin)
...
2002-08-01 Rick Danos <rdanos@hotmail.com>
PR libstdc++/7461
* config/os/newlib/ctype_noninline.h (classic_table): Add offset.
* config/os/newlib/ctype_inline.h (is): Use static_cast.
From-SVN: r55955
2002-08-01 22:17:23 +00:00
Benjamin Kosnik
0870a49046
linker-map.gnu: Change CXXABI_1 to CXXABI_1.2, GLIBCPP_3.1 to GLIBCPP_3.2.
...
2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
Jakub Jelinek <jakub@redhat.com>
* config/linker-map.gnu: Change CXXABI_1 to CXXABI_1.2,
GLIBCPP_3.1 to GLIBCPP_3.2.
From-SVN: r55938
2002-08-01 17:25:56 +00:00
Benjamin Kosnik
7fed1a0444
re PR libstdc++/7442 (cxxabi.h does not match the C++ ABI)
...
2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
Mark Mitchell <mark@codesourcery.com>
PR libstdc++/7442
* libsupc++/cxxabi.h (class __base_class_type_info::hwm_bit):
Change to __hwm_bit.
(__class_type_info): And here.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r55911
2002-07-31 21:50:33 +00:00
Benjamin Kosnik
3bba6ebbe4
re PR libstdc++/7442 (cxxabi.h does not match the C++ ABI)
...
2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7442
* libsupc++/cxxabi.h
(__base_class_info): Change to __base_class_type_info. 2.9.5p6c
(__base_class_info::__base): Change to __base_type. 2.9.5p6c
(__base_class_info::offset_shift): Change to __offset_shift. 2.9.5p6c
(__vmi_class_type_info::__base_info): Don't make const, of type
__base_class_type_info, as per 2.9.5p6c
(__pbase_type_info::__qualifier_flags): Change to __flags, as per
2.9.5p7.
(__pbase_type_info::__qualifier_masks): Change to __masks, as per
2.9.5p7.
(__pointer_to_member_type_info::__context_class): Change member to
__context, as per 2.9.5p9.
* libsupc++/tinfo2.cc (__pointer_catch): Change __context_class to
__context.
* libsupc++/tinfo2.cc (__do_catch): Change __qualifier_flags to
__flags.
* libsupc++/tinfo.cc (__do_find_public_src): Change __base to
__base_type.
* libsupc++/tinfo.cc (__do_dyncast): Same.
* libsupc++/tinfo.cc (__do_upcast): Same.
From-SVN: r55910
2002-07-31 21:24:18 +00:00
Benjamin Kosnik
5a53872d08
fstream.cc: Add _GLIBCPP_USE_WCHAR_T guards.
...
2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
* src/fstream.cc: Add _GLIBCPP_USE_WCHAR_T guards.
From-SVN: r55909
2002-07-31 20:48:38 +00:00
Benjamin Kosnik
de17e15428
[multiple changes]
...
2002-07-31 Simon Whomsley <whomsley@avacadcam.com>
* docs/html/22_locale/howto.html: Fix.
2002-07-31 Alex Kompel <shurik@sequoiap.com>
PR libstdc++/7445
* src/locale.cc (locale::classic): Move locks inside !_S_classic
block.
2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/abi.txt: Update.
From-SVN: r55908
2002-07-31 19:34:08 +00:00
Benjamin Kosnik
f13a69eccf
char_traits.h: Remove generic definitions.
...
2002-07-30 Benjamin Kosnik <bkoz@redhat.com>
Gabriel Dos Reis <gdr@nerim.net>
* include/bits/char_traits.h: Remove generic definitions.
* include/bits/streambuf_iterator.h (istreambuf_iterator): Use
eof, not -2.
* include/bits/istream.tcc (istream::readsome): Don't check
against eof, instead use constants.
(istream::sync): Same.
(istream::sentry::sentry): Use eq_int_type.
(istream::get): Same.
* include/bits/ostream.tcc: Change __pad to
__pad<_CharT, _Traits>::_S_pad.
* include/bits/locale_facets.h: Add __pad_traits generic and
ostreambuf_iterator specialization.
* include/bits/locale_facets.tcc: Change __pad into struct __pad
with a _CharT and _Traits template parameter and _S_pad static
member function.
* src/locale-inst.cc: Update __pad instantiations.
* include/std/std_fstream.h: Declare _M_underflow_common
specializations.
* src/fstream.cc: New. Add _M_underflow_common specializations.
* include/bits/fstream.tcc (filebuf::close): Use traits_type.
(filebuf::_M_underflow_common(bool)): Remove generic version, as
sys_ungetc and custom int_types don't get along.
* include/std/std_streambuf.h: Add _M_pos.
* src/Makefile.am (sources): Add fstream.cc.
* src/Makefile.in: Regenerate.
* testsuite/21_strings/capacity.cc: Add char_traits specializations.
* testsuite/22_locale/codecvt_members_unicode_char.cc: Same.
* testsuite/22_locale/codecvt_members_unicode_wchar_t.cc: Same.
* testsuite/22_locale/ctor_copy_dtor.cc: Same.
* testsuite/27_io/filebuf_virtuals.cc (test07): Move to...
* testsuite/27_io/filebuf.cc: ...here.
* testsuite/testsuite_hooks.h: Add gnu_char, gnu_int, char_traits
specialization for both.
* testsuite/27_io/streambuf.cc: Add instantiation test,
testsuite_hooks include.
* testsuite/27_io/istream.cc: Same.
* testsuite/27_io/ostream.cc: Same.
* testsuite/27_io/fstream.cc: Same.
* testsuite/27_io/stringstream.cc: Same.
* testsuite/27_io/filebuf.cc: Same.
* testsuite/27_io/stringbuf.cc: Same.
Co-Authored-By: Gabriel Dos Reis <gdr@nerim.net>
From-SVN: r55893
2002-07-31 02:47:36 +00:00
Alan Modra
bd11db39e8
cpu_limits.h (__glibcpp_long_bits): Define.
...
* config/cpu/powerpc/cpu_limits.h (__glibcpp_long_bits): Define.
* configure.target (cpu_include_dir): Use cpu/powerpc for powerpc64.
* config/cpu/powerpc/atomicity.h (__always_swap): Remove.
(__test_and_set): Remove.
(_STWCX): Define and use.
From-SVN: r55854
2002-07-30 08:56:00 +09:30
Phil Edwards
bacb811db6
new (placement delete): Remove unused paramater names.
...
2002-07-26 Phil Edwards <pme@gcc.gnu.org>
* libsupc++/new (placement delete): Remove unused paramater names.
From-SVN: r55782
2002-07-26 20:12:00 +00:00
Benjamin Kosnik
bcc6a03a0a
re PR libstdc++/7216 (basic_iostream::traits_type is ambiguous issue)
...
2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7216
* include/std/std_istream.h (basic_iostream): Add typedefs for
char_type, int_type, pos_type, off_type, and traits_type.
* testsuite/27_io/iostream.cc (test01): Add typedef tests.
* testsuite/27_io/istream.cc: Same.
* testsuite/27_io/ostream.cc: Same.
* testsuite/27_io/filebuf.cc: Same.
* testsuite/27_io/stringbuf.cc: Replace content, move to...
* testsuite/27_io/stringbuf_members.cc: ...here.
* testsuite/27_io/streambuf.cc: Replace content, move to...
* testsuite/27_io/streambuf_members.cc: ...here.
* testsuite/27_io/stringstream.cc: Replace content, move to...
* testsuite/27_io/stringstream_members.cc: ...here.
* testsuite/27_io/ios.cc: New file.
* testsuite/27_io/fstream.cc: New file.
* testsuite/27_io/ifstream.cc: New file.
* testsuite/27_io/ofstream.cc: New file.
* testsuite/27_io/istringstream.cc: New file.
* testsuite/27_io/ostringstream.cc: New file.
From-SVN: r55767
2002-07-26 01:49:36 +00:00
Benjamin Kosnik
325fceb395
re PR libstdc++/7220 (g++ 3.1: basic_istream::ignore(0,delimiter) issue.)
...
2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7220
* include/bits/istream.tcc (istream::ignore): Don't extract on
zero.
* testsuite/27_io/istream_unformatted.cc (test10): Add.
From-SVN: r55763
2002-07-25 23:20:49 +00:00
Benjamin Kosnik
ef6838b11c
ios_base_type.cc: Move to...
...
2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/27_io/ios_base_type.cc: Move to...
* testsuite/27_io/ios_base_types.cc: ...here.
From-SVN: r55743
2002-07-25 07:19:40 +00:00
Benjamin Kosnik
c82efc81c0
re PR libstdc++/7222 (g++ 3.1: locale::operator ==() doesn`t work on std::locale("") locales)
...
2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7222
* src/locale.cc (locale::locale(const char*)): Use setlocale NULL.
* testsuite/22_locale/ctor_copy_dtor.cc (test02): New.
From-SVN: r55736
2002-07-25 06:42:00 +00:00
Benjamin Kosnik
9a56333e55
re PR libstdc++/7230 (<strstream> header file is missing (trunk))
...
2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7230
* config/linker-map.gnu: Revert strstream patch from 2002-07-01.
* include/Makefile.am (backward_headers): Use strstream, not
strstream.h.
* include/Makefile.in: Regenerate.
* include/backward/strstream: Revert.
* include/backward/strstream.h: Remove.
* src/strstream.cc: Revert.
* testsuite/backward/strstream_members.cc: Change include.
From-SVN: r55730
2002-07-25 00:04:37 +00:00
Benjamin Kosnik
922045978d
re PR libstdc++/7219 (_GLIBCPP_DEPRECATED on (ios_base::streamoff and ios_base::streampos types))
...
2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7219
* testsuite/27_io/ios_base_type.cc: New.
* include/bits/ios_base.h (ios_base::streampos): Add.
(ios_base::streamoff): Add.
From-SVN: r55726
2002-07-24 23:17:13 +00:00
Benjamin Kosnik
51937d2c98
re PR libstdc++/7286 (placement operator delete issue)
...
2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7286
* libsupc++/new: Add placement delete.
* testsuite/18_support/new_delete_placement.cc: New.
* docs/html/abi.txt: Fix typos.
From-SVN: r55718
2002-07-24 19:49:21 +00:00
Benjamin Kosnik
6364054f3a
documentation.html: Remove libstdc++-v3.0.86 links...
...
2002-07-23 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/documentation.html: Remove libstdc++-v3.0.86 links,
confusing usage of "latest."
De-tangle contributor information from introductory notes.
Move abi.txt link placement, activate.
Re-organize.
Move chapter info into old FAQ format.
* docs/html/organization.html: Removed, obsoleted by doxygen work.
* docs/html/abi.txt: Add notes on testing ABI changes.
From-SVN: r55702
2002-07-24 07:55:34 +00:00
Phil Edwards
aa2d5ba2c7
abi.txt: New file.
...
2002-07-20 Phil Edwards <pme@gcc.gnu.org>
* docs/html/abi.txt: New file.
* docs/html/23_containers/howto.html: Tweak vector-overhead text.
* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
Import from upstream, R22.
* include/bits/char_traits.h, include/bits/stl_iterator.h,
include/bits/stl_iterator_base_types.h, libsupc++/exception,
libsupc++/new, libsupc++/typeinfo: Use @brief markup.
* include/bits/deque.tcc, include/bits/stl_alloc.h,
include/bits/stl_deque.h, include/bits/stl_list.h: Postpone removal
of deprecated functions until 3.4. (Same timeframe, different text.)
* include/bits/stl_vector.h: Ditto. Also do the same cleanups that
the other sequence classes received.
From-SVN: r55602
2002-07-20 06:26:27 +00:00
Brendan Kehoe
926479c2b1
e <brendan@zen.org>
...
* bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR): Fix typo of
_Nname to _Name.
From-SVN: r55578
2002-07-19 04:51:42 +00:00
Gabriel Dos Reis
bb403d6917
slice_array.h (slice_array<T>::operator=(const T&)): Constify.
...
* include/bits/slice_array.h
(slice_array<T>::operator=(const T&)): Constify.
* include/bits/gslice_array.h
(gslice_array<T>::operator=(const T&)): Likewise.
* include/bits/mask_array.h
(mask_array<T>::operator=(const T&)): Likewise.
* include/bits/indirect_array.h
(indirect_array<T>::operator=(const T&): Likewise.
:w
From-SVN: r55577
2002-07-19 04:45:20 +00:00
Phil Edwards
a1fa4e3170
run_doxygen: Remove template parameter names from "Compound List" summary page.
...
2002-07-17 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/run_doxygen: Remove template parameter names from
"Compound List" summary page. Reformat.
* docs/html/documentation.html: XHTML fixes.
From-SVN: r55543
2002-07-17 22:02:32 +00:00
Andreas Schwab
984812cd39
new (set_new_handler): Declare to not throw any exceptions.
...
* libsupc++/new (set_new_handler): Declare to not throw any
exceptions.
* libsupc++/new_handler.cc (set_new_handler): Likewise.
From-SVN: r55480
2002-07-16 08:28:40 +00:00
Gabriel Dos Reis
5068f54685
Makefile.am (bits_headers): Remove slice.h
...
* include/Makefile.am (bits_headers): Remove slice.h
* include/Makefile.in: Regenerate.
* include/bits/slice.h (slice): move to include/bits/slice_array.h
* include/bits/slice.h Remove.
* include/std/std_valarray.h: Don't #include bits/slice.h anymore.
* include/bits/slice_array.h: Comply to official coding styles.
* testsuite/26_numerics/slice.cc: New test.
:w
:q
From-SVN: r55470
2002-07-16 00:19:18 +00:00
Rainer Orth
b62024ef52
ctype_base.h (ctype_base): Fix print to match vendor <ctype.h>.
...
* config/os/solaris/solaris2.5/ctype_base.h (ctype_base): Fix
print to match vendor <ctype.h>.
From-SVN: r55463
2002-07-15 20:23:38 +00:00
Phil Edwards
be3798c151
index.html: Fix download links.
...
2002-07-15 Phil Edwards <pme@gcc.gnu.org>
* docs/html/faq/index.html: Fix download links.
* docs/html/faq/index.txt: Regenerate.
* docs/html/17_intro/porting.html: Regenerate from earlier changes.
From-SVN: r55462
2002-07-15 20:05:54 +00:00
Rainer Orth
789b7de56b
configure.in (mips*-*-irix6*o32): Enable stabs.
...
* configure.in (mips*-*-irix6*o32): Enable stabs.
gcc:
* config.gcc (mips-sgi-irix6*o32): New configuration.
* configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
configurations.
* configure: Regenerate.
* config/mips/iris6-o32-as.h: New file.
* config/mips/iris6-o32.h: New file.
* config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
(NM_FLAGS): Define.
(HAVE_AS_SHF_MERGE): Undefine.
* config/mips/t-iris5-as: New file.
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
* config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
dp-bit.c, fp-bit.c): Move ...
* config/mips/t-iris5-6: ... here.
New file, shared by IRIX 5 and IRIX 6.
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
mips-sgi-irix5*): Use it.
* config/mips/iris6.h: Remove duplicate comment.
* config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
!TARGET_IRIX6]: Define.
(mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
* config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
gcc/testsuite:
* gcc.misc-tests/linkage.exp: Handle mips-sgi-irix6*o32
configuration and IRIX 6 O32 ABI.
libstdc++-v3:
* configure.target (target_os switch): Allow for irix6*o32
configurations.
From-SVN: r55401
2002-07-11 18:56:58 +00:00
Gabriel Dos Reis
c963e6b00c
valarray_meta.h (_UnFunBase): Take a second template parameter.
...
* include/bits/valarray_meta.h (_UnFunBase): Take a second
template parameter. Remove _M_func data member.
(_UnFunClos): Take a third template parameter.
(__abs, __cos, __acos, __cosh, __sin, __asin, __sinh, __tan,
__atan, __tanh, __exp, __log, __log10, __sqrt): New classes.
(_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
From-SVN: r55365
2002-07-10 12:06:37 +00:00
Eric Christopher
17640f249b
configure.target: Fix comment for mips atomicity.
...
2002-07-08 Eric Christopher <echristo@redhat.com>
* configure.target: Fix comment for mips atomicity. Add
mips*-*-linux* target, enable atomic operations there.
* config/cpu/mips/atomicity.h: Fix comments, remove
#ifndef/#endif. Add push/pop mips2.
From-SVN: r55331
2002-07-08 19:41:57 +00:00
Peter Schmid
7766810445
stl_deque.h (_Deque_alloc_base): Change order of member declarations to avoid compiler warnings and restore 3.1 ABI.
...
2002-07-08 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/stl_deque.h (_Deque_alloc_base): Change order of
member declarations to avoid compiler warnings and restore 3.1 ABI.
From-SVN: r55325
2002-07-08 12:24:52 +00:00
Phil Edwards
51d9c5cdcf
howto.html: Link to dk_std::vector paper and homepage.
...
2002-07-08 Phil Edwards <pme@gcc.gnu.org>
* docs/html/23_containers/howto.html: Link to dk_std::vector paper
and homepage.
From-SVN: r55322
2002-07-08 09:51:54 +00:00
Paolo Carlini
276e31ec6e
re PR libstdc++/7186 (DR179 for std::deque::iterator and const_iterator)
...
2002-07-07 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/7186
* include/bits/stl_deque.h (_Deque_iterator::operator-):
Make non-member, as already happens for the comparison
operators in accord with DR179 (Ready).
* testsuite/23_containers/deque_operators.cc: Add test02.
From-SVN: r55301
2002-07-07 10:15:06 +00:00
Benjamin Kosnik
49433044e4
std_streambuf.h (basic_streambuf::_M_buf): Change to size_t, from int_type.
...
2002-07-04 Benjamin Kosnik <bkoz@redhat.com>
Jack Reeves <jackw_reeves@hotmail.com>
* include/std/std_streambuf.h (basic_streambuf::_M_buf): Change to
size_t, from int_type.
(basic_streambuf::_M_buf_size_opt): Same.
(basic_streambuf::_S_pback_sizex): Same.
* include/bits/streambuf.tcc: Same.
* include/std/std_streambuf.h (basic_streambuf::snextc): Use
eq_int_type.
(basic_streambuf::uflow): Same.
* include/bits/sstream.tcc (basic_stringbuf::overflow): Use
to_char_type.
* include/bits/basic_ios.tcc (basic_ios::init): Use _CharT().
* include/bits/streambuf.tcc (basic_streambuf::xsgetn): Use
eq_int_type.
(basic_streambuf::xsputn): Same.
(__copy_streambufs): Same.
Co-Authored-By: Jack Reeves <jackw_reeves@hotmail.com>
From-SVN: r55242
2002-07-04 09:20:01 +00:00
Benjamin Kosnik
5acf59f8e1
std_memory.h: Fix formatting.
...
2002-07-03 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_memory.h: Fix formatting.
* testsuite/20_util/auto_ptr_neg.cc: New.
* testsuite/20_util/auto_ptr.cc: Tweaks.
* testsuite/23_containers/map_operators.cc (test01): Split into..
* testsuite/23_containers/map_operators_neg.cc (test01): ...this. New.
* testsuite/23_containers/set_operators.cc: Move to...
* testsuite/23_containers/set_operators_neg.cc: ...here.
* testsuite/README: Add some more naming rules.
From-SVN: r55241
2002-07-04 07:25:19 +00:00
Steev Wilcox
ec4d88f907
re PR libstdc++/7057 (Operator== on hashtables doesn't appear to work correctly (patch included))
...
2002-07-03 Steev Wilcox <steev@paradigmds.com>
PR libstdc++/7057
* include/ext/stl_hashtable.h: Fix.
* testsuite/ext/hash_map.cc: New.
From-SVN: r55229
2002-07-04 00:28:03 +00:00
Jack Reeves
16ad69a19d
re PR libstdc++/3946 (auto_ptr_ref constructor allows dangerous conversion)
...
2002-07-03 Jack Reeves <jackw_reeves@hotmail.com>
Kenny Simpson <theonetruekenny@yahoo.com>
Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/3946
* testsuite/20_util/auto_ptr.cc (test08): New test.
* include/std/std_memory.h (auto_ref_ptr): Make constructor explicit.
(auto_ptr::operator auto_ptr_ref): Fix typo.
General reformatting and doxygenating of the whole file.
Co-Authored-By: Kenny Simpson <theonetruekenny@yahoo.com>
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r55223
2002-07-03 22:25:06 +00:00
Benjamin Kosnik
fcad420e8f
re PR libstdc++/7097 (_GLIBCPP_HAVE_MBSTATE_T breaks non-GLIB systems)
...
2002-07-03 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7097
* include/c/std_cwchar.h: Fix.
From-SVN: r55216
2002-07-03 17:14:21 +00:00
Benjamin Kosnik
fdf7e80975
re PR libstdc++/6410 (Trouble with non-Ascii monetary symbols and wchar_t)
...
2002-07-02 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6410
* include/bits/locale_facets.h (moneypunct::moneypunct): Add const
char* name parameter.
* config/locale/gnu/monetary_members.cc: Use it.
* config/locale/generic/monetary_members.cc: Same.
* src/localename.cc (_Impl::_Impl(const char*, size_t)): Use it.
* include/backward/strstream.h: Update date.
From-SVN: r55203
2002-07-03 06:29:26 +00:00
Paolo Carlini
d16ecaec1d
re PR libstdc++/6642 (Constness prevents substraction of iterators)
...
2002-07-02 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6642
* include/bits/stl_iterator.h
(__normal_iterator::operator-(const __normal_iterator&)):
Make non-member, as already happens for the comparison
operators in accord with DR179 (Ready).
* testsuite/24_iterators/iterator.cc: Add test from the PR.
From-SVN: r55188
2002-07-02 18:42:58 +00:00
Phil Edwards
2f235b6d54
re PR libstdc++/7173 (_GLIBCPP_VERSION ="" on the 3.1 branch)
...
2002-07-02 Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/7173
* acinclude.m4: Simplify determination of gcc_version, and move
up to GLIBCPP_CONFIGURE.
* configure.in (release_VERSION): Really remove.
(AM_INIT_AUTOMAKE, AM_CONFIG_HEADER): Move after GLIBCPP_CONFIGURE.
* aclocal.m4, configure: Regenerate.
From-SVN: r55174
2002-07-02 06:39:04 +00:00
Phil Edwards
fc7f0a806c
configopts.html, [...]: Tweaks.
...
2002-07-02 Phil Edwards <pme@gcc.gnu.org>
* docs/html/configopts.html, docs/html/install.html: Tweaks.
* include/ext/algorithm, include/ext/hash_map, include/ext/hash_set,
include/ext/iterator, include/ext/numeric, include/ext/rb_tree,
include/ext/slist, include/ext/stl_rope.h: Add doxygen hooks.
From-SVN: r55172
2002-07-02 06:17:36 +00:00
Benjamin Kosnik
eafa1afac6
strstream: Remove namespace std.
...
2002-07-01 Benjamin Kosnik <bkoz@redhat.com>
* include/backward/strstream: Remove namespace std. Transfer to...
* include/backward/strstream.h: ...here. Qualify std names.
* src/strstream.cc: Remove namespace std.
* include/Makefile.am (backward_headers): Remove strstream.h.
* include/Makefile.in: Regenerate.
* config/linker-map.gnu: Export strstream bits.
* src/fstream-inst.cc: Tweak.
* src/io-inst.cc: Same.
* src/istream-inst.cc: Same.
* src/misc-inst.cc: Same.
* src/ostream-inst.cc: Same.
* src/sstream-inst.cc: Same.
* src/valarray-inst.cc: Same.
* src/misc-inst.cc: Remove unused instantiations.
From-SVN: r55148
2002-07-01 19:58:42 +00:00
Benjamin Kosnik
9035b63a14
configure.in (libtool_VERSION): Bump to 5:0:0.
...
2002-07-01 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (libtool_VERSION): Bump to 5:0:0.
* configure: Regenerate.
From-SVN: r55140
2002-07-01 18:08:25 +00:00
Phil Edwards
446c5b11aa
PR libstdc++/7157, PR libstdc++/7158, PR libstdc++/7161
...
2002-06-28 Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/7157, PR libstdc++/7158, PR libstdc++/7161
* include/std/std_queue.h: Include deque.tcc, vector.tcc.
* include/std/std_stack.h: Include deque.tcc.
* testsuite/23_containers/adaptors.cc: New file.
From-SVN: r55090
2002-06-29 01:10:51 +00:00
Phil Edwards
07a6e20be9
stl_alloc.h: Deprecate all 'reallocate' memfns.
...
2002-06-27 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_alloc.h: Deprecate all 'reallocate' memfns.
* docs/html/ext/howto.html: Update allocator notes.
From-SVN: r55044
2002-06-27 22:09:02 +00:00
Benjamin Kosnik
41970073a9
configure.in (INTERFACE): Remove.
...
2002-06-26 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (INTERFACE): Remove.
(release_VERSION): Remove.
* acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Change include placement.
(libstdcxx_interface): Change. Use gcc methods to determine version.
* configure: Regenerate.
* aclocal.m4: Regenerate.
From-SVN: r55028
2002-06-27 10:16:50 +00:00
DJ Delorie
aebb8c22e1
acinclude.m4 (GLIBCPP_CONFIGURE): Split out GLIBCPP_TOPREL_CONFIGURE.
...
* acinclude.m4 (GLIBCPP_CONFIGURE): Split out
GLIBCPP_TOPREL_CONFIGURE.
* aclocal.m4: Likewise.
* configure.in: Call it before AC_CANONICAL_SYSTEM.
* configure: Regenerate.
From-SVN: r55001
2002-06-25 23:53:45 -04:00
Jessica Han
0e20c0b56f
2002-06-25 Jessica Han <jessica@cup.hp.com>
...
* config/os/hpux/os_defines.h Define _GLIBCPP_VTABLE_PADDING
* libsupc++/tinfo.cc Handle the 8 byte aligned vtable entries when
_GLIBCPP_VTABLE_PADDING is defined.
From-SVN: r54991
2002-06-25 16:55:47 +00:00
Benjamin Kosnik
72ea9226fb
stl_alloc.h: Additional formatting.
...
2002-06-25 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_alloc.h: Additional formatting.
From-SVN: r54990
2002-06-25 16:45:01 +00:00
Phil Edwards
2c35c7be14
stl_alloc.h: Reformat as per C++STYLE.
...
2002-06-24 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_alloc.h: Reformat as per C++STYLE.
From-SVN: r54949
2002-06-24 08:07:05 +00:00
Phil Edwards
d32e25dffa
*: Move header files up a level.
...
2002-06-24 Phil Edwards <pme@gcc.gnu.org>
* config/cpu/*/bits/*: Move header files up a level. Remove bits.
* config/os/*/bits/*: Likewise.
* configure.in: Update.
* configure: Regenerate.
* configure.target: Update.
* docs/html/17_intro/porting.texi: Update.
From-SVN: r54943
2002-06-24 05:50:58 +00:00
Phil Edwards
224a45d026
stl_map.h, [...]: Reformat and complete doxygenation.
...
2002-06-21 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_map.h, include/bits/stl_multimap.h,
include/bits/stl_queue.h, include/bits/stl_stack.h: Reformat and
complete doxygenation.
* include/bits/boost_concept_check.h: Minor comment.
From-SVN: r54897
2002-06-22 03:03:56 +00:00
Benjamin Kosnik
8081da07e5
c_compatibility: New.
...
2002-06-21 Benjamin Kosnik <bkoz@redhat.com>
* include/c_compatibility: New.
* include/c_compatibility/assert.h: New.
* include/c_compatibility/ctype.h: New.
* include/c_compatibility/errno.h: New.
* include/c_compatibility/float.h: New.
* include/c_compatibility/iso646.h: New.
* include/c_compatibility/limits.h: New.
* include/c_compatibility/locale.h: New.
* include/c_compatibility/math.h: New.
* include/c_compatibility/setjmp.h: New.
* include/c_compatibility/signal.h: New.
* include/c_compatibility/stdarg.h: New.
* include/c_compatibility/stddef.h: New.
* include/c_compatibility/stdio.h: New.
* include/c_compatibility/stdlib.h: New.
* include/c_compatibility/string.h: New.
* include/c_compatibility/time.h: New.
* include/c_compatibility/wchar.h: New.
* include/c_compatibility/wctype.h: New.
* include/c/std_cerrno.h: Get out of the way... define errno.
* include/c/std_cmath.h: Add abs, modf overloads.
Undefine C99 isms. Still not sure how to deal with this sanely.
* include/c/std_csetjmp.h: Tweak.
* include/c/std_cwchar.h: Include cstddef for size_t.
* include/c_std/std_cmath.h: Remove extra function.
Pendantic std usage in testsuites.
* testsuite/17_intro/header_cstdlib.cc (test01): Qualify ldiv_t
with std.
* testsuite/17_intro/header_cwchar.cc: Tweak.
* testsuite/22_locale/codecvt_members_char_char.cc (test03): Use
std::setlocale.
* testsuite/22_locale/ctype_to_wchar_t.cc (test05): Same.
* testsuite/22_locale/ctype_to_char.cc (test05): Same.
* testsuite/22_locale/ctype_is_wchar_t.cc (test05): Same.
* testsuite/22_locale/ctype_is_char.cc (test05): Same.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Same.
* testsuite/22_locale/time_get_members_wchar_t.cc (test08): Same.
* testsuite/22_locale/time_get_members_char.cc (test08): Same.
* testsuite/22_locale/time_put_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/time_put_members_char.cc (test04): Same.
* testsuite/22_locale/num_put_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/num_put_members_char.cc (test04): Same.
* testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/numpunct_members_char.cc (test03): Same.
* testsuite/22_locale/num_get_members_wchar_t.cc: Same.
* testsuite/22_locale/num_get_members_char.cc: Same.
* testsuite/22_locale/money_put_members_wchar_t.cc (test07): Same.
* testsuite/22_locale/money_put_members_char.cc (test07): Same.
* testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/moneypunct_members_char.cc (test03): Same.
* testsuite/22_locale/money_get_members_wchar_t.cc (test08): Same.
* testsuite/22_locale/money_get_members_char.cc (test08): Same.
* testsuite/22_locale/messages_members_char.cc (test03): Same.
* testsuite/22_locale/collate_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/collate_members_char.cc (test04): Same.
* testsuite/26_numerics/fabs_inline.cc: Use std::printf.
* testsuite/27_io/istream_seeks.cc (test02): Qualify abort.
* testsuite/27_io/istream_extractor_arith.cc (test11): Qualify strtol.
From-SVN: r54891
2002-06-21 20:21:03 +00:00
Benjamin Kosnik
5ab23d80ec
Makefile.am (libsupc__convenience_la_SOURCES): Add c_sources.
...
2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
* libsupc++/Makefile.am (libsupc__convenience_la_SOURCES): Add
c_sources.
From-SVN: r54855
2002-06-20 20:25:44 +00:00
Benjamin Kosnik
12d0271cfd
ext-inst.cc (__gnu_cxx): Use instead of std:: for extensions.
...
2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
* src/ext-inst.cc (__gnu_cxx): Use instead of std:: for extensions.
Use size_type instead of unsigned long.
From-SVN: r54854
2002-06-20 20:13:46 +00:00
Steve Ellcey
a9c418403e
ext-inst.cc (_S_fetch): Add explicit templates for char and wchar types.
...
* src/ext-inst.cc (_S_fetch): Add explicit templates for char and
wchar types.
(_S_min_len): Ditto.
From-SVN: r54850
2002-06-20 19:20:41 +00:00
Benjamin Kosnik
e01c9849c9
Makefile.am: Add rules.
...
2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am: Add rules.
* include/Makefile.in: Regenerate.
* acinclude.m4: Define GLIBCPP_C_HEADERS_COMPATIBILITY.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* configure.target (c_model, c_compatibility): Add.
* libsupc++/Makefile.am (c_sources): New.
(libsupc___la_SOURCES): Add c_sources.
(LTCOMPILE): Remove INCLUDES.
(GCC_INCLUDES): New.
(C_COMPILE): New, like COMPILE but without INCLUDES.
(cxa_demangle.o): Use C_COMPILE.
(dyn-string.o): Use C_COMPILE.
* include/c/std_cstdarg.h: Define __need___va_list.
* include/c/std_cstddef.h: Define need_size_t, need_ptrdiff_t,
need_NULL, need_offsetof.
From-SVN: r54849
2002-06-20 19:08:42 +00:00
Steve Ellcey
a616effa58
configure.in (HAVE_FINITE*, [...]): Remove definitions in hpux11 cross-build because these functions do not exist...
...
2002-06-19 Steve Ellcey <sje@cup.hp.com>
* configure.in (HAVE_FINITE*, HAVE_ISINF*, HAVE_ISNAN*): Remove
definitions in hpux11 cross-build because these functions do
not exist on hpux11 (but some exist on hpux10); move defaults out
into existing sections.
* configure: Regenerate.
From-SVN: r54799
2002-06-19 20:30:13 +00:00
Benjamin Kosnik
93b855862a
std_cwchar.h: Guard.
...
2002-06-18 Benjamin Kosnik <bkoz@redhat.com>
* include/c/std_cwchar.h: Guard. Add mbstate_t bits.
* include/c/std_cwctype.h: Guard.
* libsupc++/eh_alloc.cc: Tweak include order.
* libsupc++/pure.cc: Use cstdio.
* libsupc++/new_op.cc: Remove malloc forward declaration, as
cstdlib brings it in. Use std::malloc.
* src/Makefile.am (sources): Remove cmath.cc.
* src/Makefile.in: Regenerate.
* src/cmath.cc: Remove.
From-SVN: r54782
2002-06-19 15:19:53 +00:00
Phil Edwards
9d7b4c5a4f
configure.target: Force mips to use the generic cpu routines.
...
2002-06-18 Phil Edwards <pme@gcc.gnu.org>
* configure.target: Force mips to use the generic cpu routines.
From-SVN: r54769
2002-06-19 01:30:39 +00:00
Phil Edwards
2c839a4e1f
configure.host: Delete file.
...
2002-06-18 Phil Edwards <pme@gcc.gnu.org>
* configure.host: Delete file.
* configure.target: More documentation. Factor out common parts of
script into "intelligent" settings about defaults. Remove redundancy.
* acinclude.m4: Update comments. Do not call configure.host.
(GLIBCPP_ENABLE_SYMVERS): If disabled, do not bother checking for
libgcc_s.
* configure.in: Slight reformatting, more comments. Factor out
"config/" from all the directories.
* docs/html/17_intro/porting.texi: Update and expand.
* testsuite/Makefile.am (AM_RUNTESTFLAGS): Move empty setting
from configure.host.
* aclocal.m4, configure, docs/html/17_intro/porting.html,
testsuite/Makefile.in: Regenerate.
From-SVN: r54757
2002-06-18 19:07:12 +00:00
Phil Edwards
4df6abc6b3
TODO: Update.
...
2002-06-16 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Update.
* docs/doxygen/tables.html: Uncomment magical middle column.
* docs/doxygen/user.cfg.in: Kludge to ignore function-like macros.
* include/bits/stl_queue.h: Doxygenate and reformat.
* include/bits/ios_base.h, include/std/std_streambuf.h: Add comment
for deprecated names required by the standard.
From-SVN: r54666
2002-06-16 11:29:53 +00:00
J.T. Conklin
6203ef88a6
configure.in (target_alias): Fix.
...
2002-06-14 J.T. Conklin <jtc@acorntoolworks.com>
* configure.in (target_alias): Fix.
* configure: Regenerate.
* aclocal.m4: Regenerate.
From-SVN: r54618
2002-06-14 18:21:24 +00:00
Phil Edwards
83144cfcfa
Makefile.am: Add new files.
...
2002-06-12 Phil Edwards <pme@gcc.gnu.org>
* include/Makefile.am: Add new files.
* include/Makefile.in: Regenerate.
* include/bits/stl_deque.h, include/bits/stl_list.h,
include/bits/stl_vector.h: Clean up, reformat. Move definitions...
* include/bits/deque.tcc, include/bits/list.tcc,
include/bits/vector.tcc: ...to here. New files.
* include/ext/stl_hashtable.h: Inclide correct full headers.
* include/std/std_deque.h: Include .tcc files for now.
* include/std/std_list.h: Likewise.
* include/std/std_vector.h: Likewise.
From-SVN: r54562
2002-06-12 22:07:53 +00:00
Daniel Jacobowitz
8ddfd7e562
Makefile.am: Add FLAGS_TO_PASS.
...
* Makefile.am: Add FLAGS_TO_PASS.
* Makefile.in: Regenerated.
From-SVN: r54551
2002-06-12 11:29:14 +00:00
J.T. Conklin
f62bef4832
configure.target: Set os_include_dir to config/os/qnx/qnx6.1 under *-qnx6.[12]*.
...
2002-06-11 J.T. Conklin <jtc@acorntoolworks.com>
Benjamin Kosnik <bkoz@redhat.com>
* configure.target: Set os_include_dir to config/os/qnx/qnx6.1
under *-qnx6.[12]*.
* configure.in: Add support for *-qnx6.[12]*.
* configure: Regenerate.
* config/os/qnx, config/os/qnx/qnx6.1, config/os/qnx/qnx6.1/bits:
New directories.
* config/os/qnx/qnx6.1/bits/ctype_base.h, ctype_inline.h,
ctype_noninline.h, os_defines.h: New files.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r54518
2002-06-11 17:54:27 +00:00
Loren J. Rittle
158d04aa28
acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and include all required headers for test against older POSIX standard.
...
* acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and
include all required headers for test against older POSIX standard.
(GLIBCPP_CHECK_SETRLIMIT): Likewise.
(ac_setrlimit): Likewise.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/testsuite_hooks.cc: Reorder and include all
required headers for use against older POSIX standard.
From-SVN: r54452
2002-06-10 20:52:12 +00:00
Benjamin Kosnik
497e42fdf4
[multiple changes]
...
2002-06-08 Paolo Carlini <pcarlini@unitus.it>
* testsuite/backwards/strstream_members.cc: New.
2002-06-08 Benjamin Kosnik <bkoz@redhat.com>
* include/backwards/strstream: Format.
* src/strstream.cc: Format.
2002-06-08 Andreas Schwab <schwab@suse.de>
* src/strstream.cc (strstreambuf::overflow): Set _M_buf,
_M_buf_size and _M_buf_size_opt to the new buffer and size.
From-SVN: r54375
2002-06-08 15:14:56 +00:00
Benjamin Kosnik
4e4bcb4e86
ctype_noninline.h: Tweak format.
...
2002-06-08 Benjamin Kosnik <bkoz@redhat.com>
* config/os/generic/bits/ctype_noninline.h: Tweak format.
From-SVN: r54371
2002-06-08 14:03:03 +00:00
Steve Ellcey
3522a91b80
locale-inst.cc (__codecvt_abstract_base): Put inside _GLIBCPP_USE_WCHAR_T ifdef.
...
* src/locale-inst.cc (__codecvt_abstract_base):
Put inside _GLIBCPP_USE_WCHAR_T ifdef.
* include/bits/istream.tcc (basic_istream): Ditto.
(ws) Ditto.
(operator>>) Ditto.
* include/bits/ostream.tcc (basic_ostream): Ditto.
(endl): Ditto.
(ends): Ditto.
(flush): Ditto.
(operator<<): Ditto.
From-SVN: r54351
2002-06-07 22:06:38 +00:00
Phil Edwards
ce5c872270
mkcheck.in: Link against local testsuite library.
...
2002-06-07 Phil Edwards <pme@gcc.gnu.org>
* mkcheck.in: Link against local testsuite library.
* testsuite/testsuite_hooks.h (__set_testsuite_memlimit): Move null
implementation out...
* testsuite/testsuite_hooks.cc: ...to here.
From-SVN: r54349
2002-06-07 20:25:04 +00:00
Loren J. Rittle
8b5fd4691d
Makefile.am (AUTOMAKE_OPTIONS): Use cygnus-style generation.
...
* src/Makefile.am (AUTOMAKE_OPTIONS): Use cygnus-style generation.
* include/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* src/Makefile.in: Regenerate (explicitly with --cygnus option).
* testsuite/Makefile.in: Likewise.
From-SVN: r54310
2002-06-06 07:32:57 +00:00
David Edelsohn
b80ee165bd
ctype_noninline.h (do_toupper,do_tolower): Call external symbol.
...
* config/os/aix/bits/ctype_noninline.h (do_toupper,do_tolower):
Call external symbol.
From-SVN: r54284
2002-06-05 10:51:59 -04:00
Rainer Orth
d6c7e0738b
libstdc++-v3-dg.exp (libstdc++-v3_target_compile): Search correct multilib testsuite dir for libv3test.
...
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3_target_compile):
Search correct multilib testsuite dir for libv3test.
From-SVN: r54256
2002-06-04 18:44:35 +00:00
Paolo Carlini
05261e700c
2002-06-04 Paolo Carlini <pcarlini@unitus.it>
...
Gaby Dos Reis <gdr@codesourcery.com>
* include/bits/basic_string.tcc
(basic_string::_S_construct(forward_iterator_tag):
Fix typo in null pointer check.
* testsuite/21_strings/ctor_copy_dtor.cc: Add test04.
Co-Authored-By: Gabriel Dos Reis <gdr@codesourcery.com>
From-SVN: r54255
2002-06-04 18:20:38 +00:00
Paolo Carlini
23992195af
2002-06-04 Paolo Carlini <pcarlini@unitus.it>
...
* testsuite/22_locale/money_get_members_char.cc
(test02): Add decimal point to long double constants.
* testsuite/22_locale/money_get_members_wchar_t.cc
(test02): Likewise.
* testsuite/22_locale/money_put_members_char.cc
(test02, test03, test06): Likewise.
* testsuite/22_locale/money_put_members_wchar_t.cc:
(test02, test03, test06): Likewise.
* testsuite/22_locale/num_get_members_char.cc:
(test02, test01): Likewise; suffix long long constants with LL.
* testsuite/22_locale/num_get_members_wchar_t.cc:
(test02, test01): Likewise.
* testsuite/22_locale/num_put_members_char.cc:
(test02, test01): Likewise.
* testsuite/22_locale/num_put_members_wchar_t.cc:
(test02, test01): Likewise.
From-SVN: r54243
2002-06-04 13:38:07 +00:00
Marc Espie
a1a56c25fb
Please nitpicker.
...
From-SVN: r54215
2002-06-03 11:48:54 +00:00
Marc Espie
04df515ada
atomicity.h (__exchange_and_add): Fix inline assembly for old assemblers.
...
* config/cpu/m68k/bits/atomicity.h(__exchange_and_add): Fix inline
assembly for old assemblers.
From-SVN: r54202
2002-06-03 05:26:00 +00:00
Phil Edwards
c619473bdf
stl_bvector.h (swap(_Bit_reference,_Bit_reference)): Move/rename...
...
2002-06-03 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_bvector.h (swap(_Bit_reference,_Bit_reference)):
Move/rename...
(vector<bool>::swap(reference,reference)): ...to this.
From-SVN: r54201
2002-06-03 05:03:50 +00:00
Phil Edwards
7f2e0dffc6
TODO: Update.
...
2002-06-03 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Update.
* docs/doxygen/user.cfg.in (SORT_MEMBER_DOCS): Set to off, now that
some class members are in 14882 order.
* docs/html/ext/howto.html: 3.1 is in the past now, not the future.
* include/std/std_bitset.h: Update comment.
* src/bitset.cc: Update comments, clean up spacing.
* src/Makefile.am (sources): Alphabetize for convenience.
* src/Makefile.in: Regenerate.
From-SVN: r54200
2002-06-03 04:45:03 +00:00
Phil Edwards
5cb6369de1
stl_deque.h, [...]: Reformat to (mostly) match C++STYLE.
...
2002-06-03 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_deque.h, include/bits/stl_list.h,
include/bits/stl_vector.h: Reformat to (mostly) match C++STYLE.
Reorder to match 14882. Doxygen blocks for all public members.
From-SVN: r54198
2002-06-03 04:34:19 +00:00
Phil Edwards
05d7f9ba6f
Fix typo in my previous changelog commit. Again.
...
From-SVN: r54129
2002-06-01 00:50:40 +00:00
Marcus Meissner
6c8ce02fcd
stl_bvector.h: Use UL suffix for unsigned longs.
...
2002-05-31 Marcus Meissner <meissner@suse.de>
* include/bits/stl_bvector.h: Use UL suffix for unsigned longs.
* testsuite/23_containers/vector_bool.cc (test02): New test.
From-SVN: r54128
2002-06-01 00:48:21 +00:00
Marc Espie
de215bc6c5
configure.in: Always check for sys/types.h
...
2002-05-30 Marc Espie <espie@openbsd.org>
* configure.in: Always check for sys/types.h
* configure: Regenerate.
From-SVN: r54071
2002-05-30 21:00:28 +00:00
Nick Clifton
6746a2999d
(libstdc++-v3-init): Rebuild the wrapper file every time this proc is called.
...
From-SVN: r53987
2002-05-29 08:59:45 +00:00
Phil Edwards
8ea08b7d7b
Makefile.am (noinst_LIBRARIES): New target.
...
2002-05-28 Phil Edwards <pme@gcc.gnu.org>
* testsuite/Makefile.am (noinst_LIBRARIES): New target. Pull in
CXX/INCLUDES.
* testsuite/Makefile.in: Regenerate.
* testsuite/testsuite_hooks.h (gnu_copy_tracker): Move from
list_modifiers.cc and rename from 'T'. Move code bodies...
* testsuite/testsuite_hooks.cc: ...to here. New file.
* testsuite/23_containers/list_modifiers.cc: Move 'T' class out.
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3_target_compile):
Add libv3test.a to link options.
From-SVN: r53977
2002-05-28 23:15:18 +00:00
Benjamin Kosnik
248a9163e1
misc-inst.cc: Define unnecessary algorithm instantiations.
...
c
2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
* src/misc-inst.cc: Define unnecessary algorithm
instantiations. Break apart instantiations into groupings below.
* src/fstream-inst.cc: New.
* src/io-inst.cc: New.
* src/istream-inst.cc: New.
* src/ostream-inst.cc: New.
* src/streambuf-inst.cc: New.
* src/sstream-inst.cc: New.
* src/Makefile.am (sources): Add files.
* src/Makefile.in: Regenerate.
* acinclude.m4: Work around automake 1.4-p5 bug, change
AM_GNU_GETTEXT in comments to AM-GNU-GETTEXT.
From-SVN: r53930
2002-05-27 14:55:57 +00:00
Benjamin Kosnik
bed1bd8c51
re PR libstdc++/6795 (stringbuf failure)
...
2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6795.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h
(classic_table): Fix.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/ctype_is_wchar_t.cc: Guard with
_GLIBCPP_USE_WCHAR_T.
* testsuite/22_locale/ctype_narrow_wchar_t.cc: Same.
* testsuite/22_locale/ctype_to_wchar_t.cc: Same.
* testsuite/22_locale/ctype_widen_wchar_t.cc: Same.
From-SVN: r53921
2002-05-27 11:42:59 +00:00
Carlo Wood
7aacf98920
re PR libstdc++/6811 (Missing 'return *this' in __enc_traits& operator=(const __enc_traits& __obj)' in 3.1 release)
...
2002-05-26 Carlo Wood <carlo@alinoe.com>
Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6811
* config/locale/ieee_1003.1-2001/codecvt_specializations.h
(__enc_traits::operator=): add missing return statement.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r53896
2002-05-26 14:35:04 +00:00
Phil Edwards
2677e7acf0
Typo in previous changelog commit.
...
From-SVN: r53846
2002-05-24 18:17:43 +00:00
Phil Edwards
bb12c8093d
std_bitset.h (_Base_biteset<0>): New specialization.
...
2002-05-24 Phil Edwards <pme@gcc.gnu.org>
libstdc++/6282
* include/std/std_bitset.h (_Base_biteset<0>): New specialization.
(operator>>): If nothing was extracted, don't fail in the
zero-length case.
* testsuite/23_containers/bitset_ctor.cc (test02): New test.
From-SVN: r53844
2002-05-24 18:16:00 +00:00
Benjamin Kosnik
f64ce6c6e8
[multiple changes]
...
2002-05-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6701
* testsuite/22_locale/ctype_narrow_char.cc: New.
* testsuite/22_locale/ctype_narrow_wchar_t.cc: New.
* testsuite/22_locale/ctype_widen_char.cc: New.
* testsuite/22_locale/ctype_widen_wchar_t.cc: New.
* testsuite/22_locale/ctype_members_char.cc: Move some bits into...
* testsuite/22_locale/ctype_is_char.cc: ...this.
* testsuite/22_locale/ctype_to_char.cc: ...and this.
* testsuite/22_locale/ctype_members_wchar_t.cc: Move some bits into...
* testsuite/22_locale/ctype_is_wchar_t.cc: ...this.
* testsuite/22_locale/ctype_to_wchar_t.cc: ...and this.
* testsuite/22_locale/ctype_scan_wchar_t.cc: Should pass.
2002-05-24 Dale Peakall <dale@peakall.net>
PR libstdc++/6701
* config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_narrow): Fix.
* config/locale/generic/ctype_members.cc: Same.
From-SVN: r53841
2002-05-24 16:02:39 +00:00
Benjamin Kosnik
da2c31aee9
configure.in (release_VERSION): Update to 3.1.1.
...
2002-05-23 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (release_VERSION): Update to 3.1.1.
(libtool_VERSION): Update to 4:1:0.
* configure: Regenerate.
From-SVN: r53791
2002-05-23 16:08:46 +00:00
Phil Edwards
d476dcad7f
stl_pair.h: Tweak comment markup.
...
2002-05-21 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_pair.h: Tweak comment markup.
From-SVN: r53700
2002-05-21 21:09:11 +00:00
Phil Edwards
844f9ba6ad
stdio_filebuf.h: Add header guards.
...
2002-05-21 Phil Edwards <pme@gcc.gnu.org>
* include/ext/stdio_filebuf.h: Add header guards. Doxygenate.
From-SVN: r53699
2002-05-21 20:53:36 +00:00
Phil Edwards
59f801a0dc
user.cfg.in (EXCLUDE): Add 'CVS'.
...
2002-05-21 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/user.cfg.in (EXCLUDE): Add 'CVS'.
From-SVN: r53698
2002-05-21 20:45:00 +00:00
Phil Edwards
e4c62b265d
stl_vector.h: Reformat to follow C++STYLE.
...
2002-05-21 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_vector.h: Reformat to follow C++STYLE.
Doxygenate all public members. Reorder to follow 14882.
(vector::push_back(void)): Remove previously-deprecated fn.
(vector::insert(iterator), vector::_M_insert_aux(iterator)):
Deprecate for removal in 3.3.
From-SVN: r53696
2002-05-21 20:41:06 +00:00
Phil Edwards
fe1cc883cd
index.html (5.4): Recommend against -I options for finding the ext headers.
...
2002-05-20 Phil Edwards <pme@gcc.gnu.org>
* docs/html/faq/index.html (5.4): Recommend against -I options for
finding the ext headers.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r53669
2002-05-20 17:55:14 +00:00
Paolo Carlini
c2f22a1230
deque_operators.cc (test01): Fix minor typo in last commit.
...
2002-05-19 Paolo Carlini <pcarlini@unitus.it>
* testsuite/23_containers/deque_operators.cc (test01):
Fix minor typo in last commit.
From-SVN: r53619
2002-05-19 09:16:21 +00:00
Paolo Carlini
770dc0c5b9
re PR libstdc++/6503 ((Deque) Iterators are not typesafe)
...
2002-05-18 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6503
* include/bits/stl_deque.h (_Deque_iterator::operator==,
operator!=, operator<, operator>, operator>=, operator<=):
Make non-member functions, to allow comparing const and
non-const iterators in any order.
* testsuite/23_containers/deque_operators.cc: New testfile.
From-SVN: r53590
2002-05-18 15:10:24 +00:00
Phil Edwards
1020e435ae
index.html: Update not-a-bug list with basic_file.h.
...
2002-05-16 Phil Edwards <pme@gcc.gnu.org>
* docs/html/faq/index.html: Update not-a-bug list with basic_file.h.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r53529
2002-05-16 20:03:46 +00:00
Rainer Orth
1e6347d8b9
Makefile.in: Allow for PWDCMD to override hardcoded pwd.
...
* Makefile.in: Allow for PWDCMD to override hardcoded pwd.
* config-ml.in: Likewise.
* configure: Likewise.
* configure.in: Likewise.
boehm-gc:
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
* aclocal.m4: Regenerate.
* configure: Regenerate.
config:
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
contrib:
* test_installed: Allow for PWDCMD to override hardcoded pwd.
* test_summary: Likewise.
gcc:
* Makefile.in: Allow for PWDCMD to override hardcoded pwd.
* configure.in: Likewise.
* fixinc/check.tpl: Likewise.
* fixinc/fixinc.dgux: Likewise.
* fixinc/fixinc.svr4: Likewise.
* fixinc/fixinc.winnt: Likewise.
* fixinc/fixincl.sh: Likewise.
* fixproto: Likewise.
* configure: Regenerate.
gcc/ada:
* Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
* Makefile.in: Likewise.
gcc/f:
* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
gcc/java:
* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
gcc/po:
* exgettext: Allow for PWDCMD to override hardcoded pwd.
gcc/treelang:
* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
libf2c:
* Makefile.in: Allow for PWDCMD to override hardcoded pwd.
* aclocal.m4: Likewise.
* configure: Regenerate.
libjava:
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
* configure.in: Likewise.
* aclocal.m4: Regenerate.
* configure: Regenerate.
libobjc:
* aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
* configure: Regenerate.
libstdc++-v3:
* Makefile.am: Allow for PWDCMD to override hardcoded pwd.
* acinclude.m4: Likewise.
* docs/html/Makefile: Likewise.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
zlib:
* configure.in: Allow for PWDCMD to override hardcoded pwd.
* configure: Regenerate.
* ChangeLog: Move entries to ChangeLog.gcj.
From-SVN: r53523
2002-05-16 17:43:21 +00:00
Loren J. Rittle
6c784d9959
c++config (__USE_MALLOC): Report case where the user improperly defined it on the command line.
...
libstdc++/6641
* include/bits/c++config (__USE_MALLOC): Report case where
the user improperly defined it on the command line.
From-SVN: r53494
2002-05-15 22:32:25 +00:00
Rainer Orth
d2aa36f5d9
testsuite_hooks.h (__set_testsuite_memlimit): Retrieve current limits before setting.
...
* testsuite/testsuite_hooks.h (__set_testsuite_memlimit):
Retrieve current limits before setting.
From-SVN: r53490
2002-05-15 15:57:05 +00:00
Benjamin Kosnik
7bd9b6d491
re PR libstdc++/6518 (???)
...
2002-05-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6518
* include/bits/ostream.tcc (ostream::operator<<(const char*)): Fix
for null case.
(ostream::operator<<(const _CharT*)): Same.
(ostream<char>::operator<<(const char*)): Same.
* testsuite/27_io/ostream_inserter_char.cc (test07): Add test.
From-SVN: r53489
2002-05-15 14:38:30 +00:00
Benjamin Kosnik
fb5b4dfdcb
re PR libstdc++/6594 (strstreambuf leaks 16 bytes - gcc 3.0.x)
...
2002-05-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6594
* src/strstream.cc (strstreambuf): Fix leak.
From-SVN: r53486
2002-05-15 13:15:17 +00:00
Paolo Carlini
bf6f276b01
re PR libstdc++/6648 (Problems with cin.getline (interactive))
...
2002-05-15 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6648
* include/bits/istream.tcc (istream::getline, ignore):
Upon __idelim (__delim) call sbumpc() not snextc().
* testsuite/27_io/narrow_stream_objects.cc:
Add test08 and test09.
From-SVN: r53481
2002-05-15 10:27:29 +00:00
Benjamin Kosnik
15dee6bf0a
ctype_scan_char.cc: Tweak.
...
2002-05-13 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/ctype_scan_char.cc: Tweak.
* testsuite/22_locale/ctype_scan_wchar_t.cc: New.
* docs/html/install.html: Fix.
From-SVN: r53424
2002-05-13 14:24:34 +00:00
Benjamin Kosnik
540f5c9b2d
2002-05-13 Benjamin Kosnik <bkoz@redhat.com>
...
* include/bits/fstream.tcc
(basic_filebuf::_M_allocate_internal_buffer): Remove extraneous
try/catch blocks.
* src/localename.cc (locale::_Impl::_M_install_facet): Same.
* docs/html/install.html: Tweak, add bits about required locales
for the 22_locale tests when using the gnu model.
* testsuite/27_io/istream_sentry.cc: Tweak.
From-SVN: r53423
2002-05-13 13:58:00 +00:00
Kaveh R. Ghazi
a8b432f4de
ctype_inline.h (scan_is, scan_not): Fix typo, use this->is() rather than manually (and perhaps incorrectly) inlining it.
...
* config/os/irix/irix5.2/bits/ctype_inline.h (scan_is, scan_not):
Fix typo, use this->is() rather than manually (and perhaps
incorrectly) inlining it.
* config/os/irix/irix6.5/bits/ctype_inline.h (scan_is, scan_not):
Likewise.
* testsuite/22_locale/ctype_scan_char.cc: New file.
From-SVN: r53422
2002-05-13 13:52:08 +00:00
Paolo Carlini
165e03670b
2002-05-13 Paolo Carlini <pcarlini@unitus.it>
...
Jakub Jelinek <jakub@redhat.com>
* testsuite/22_locale/money_get_members_char.cc
(test01, test02, test04): Use the de_DE@euro named locale
instead of de_DE to allow for an uniform behaviour with
both old and Euro-era localedata; tweak some tests.
* testsuite/22_locale/money_get_members_wchar_t.cc
(test01, test02, test04): Likewise.
* testsuite/22_locale/money_put_members_char.cc
(test01, test02, test04): Likewise.
* testsuite/22_locale/money_put_members_wchar_t.cc
(test01, test02, test04): Likewise.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r53420
2002-05-13 12:31:50 +00:00
Paolo Carlini
27b4d95a00
2002-05-13 Paolo Carlini <pcarlini@unitus.it>
...
* testsuite/22_locale/codecvt_members_char_char.cc
(test03): Robustify wrt localedata.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Likewise.
* testsuite/22_locale/collate_members_char.cc (test04): Likewise.
* testsuite/22_locale/collate_members_wchar_t.cc (test04): Likewise.
* testsuite/22_locale/ctype_members_char.cc (test05): Likewise.
* testsuite/22_locale/ctype_members_wchar_t.cc (test04): Likewise.
* testsuite/22_locale/messages_members_char.cc (test03): Likewise.
* testsuite/22_locale/money_get_members_char.cc (test08): Likewise.
* testsuite/22_locale/money_get_members_wchar_t.cc (test08): Likewise.
* testsuite/22_locale/money_put_members_char.cc (test07): Likewise.
* testsuite/22_locale/money_put_members_wchar_t.cc (test07): Likewise.
* testsuite/22_locale/moneypunct_members_char.cc (test03): Likewise.
* testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Likewise.
* testsuite/22_locale/num_get_members_char.cc (test06): Likewise.
* testsuite/22_locale/num_get_members_wchar_t.cc (test06): Likewise.
* testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
* testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
* testsuite/22_locale/numpunct_members_char.cc (test03): Likewise.
* testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Likewise.
* testsuite/22_locale/time_get_members_char.cc (test08): Likewise.
* testsuite/22_locale/time_get_members_wchar_t.cc (test08): Likewise.
* testsuite/22_locale/time_put_members_char.cc (test04): Likewise.
* testsuite/22_locale/time_put_members_wchar_t.cc (test04): Likewise.
From-SVN: r53419
2002-05-13 10:58:14 +00:00
Kaveh R. Ghazi
31397a7b64
os_defines.h: Revert 2002-05-06 change.
...
libstdc++-v3:
* config/os/irix/irix5.2/bits/os_defines.h: Revert 2002-05-06
change.
gcc:
* mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
From-SVN: r53408
2002-05-13 02:52:47 +00:00
John David Anglin
1f121cdbdd
os_defines.h (__glibcpp_long_bits): Define to 64 for hppa 64-bit port.
...
* config/os/gnu-linux/bits/os_defines.h (__glibcpp_long_bits): Define
to 64 for hppa 64-bit port.
(__glibcpp_long_double_bits): Define to 64 for all hppa ports.
From-SVN: r53388
2002-05-12 01:01:21 +00:00
Rainer Orth
6e55c1306f
acinclude.m4 (enable_symvers): Quote $LD.
...
* acinclude.m4 (enable_symvers): Quote $LD.
* aclocal.m4: Regenerate.
* configure: Likewise.
From-SVN: r53361
2002-05-10 12:53:13 +00:00
Jakub Jelinek
2937267b6a
re PR target/6429 (libgcc_s problem on dual 32/64-bit arches)
...
PR target/6429
* Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
* mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
base multilibs.
* config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
* config/t-slibgcc-sld (SHLIB_LINK): Likewise.
* config/i386/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
* config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
* config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
* lib/g77.exp (g77_link_flags): Append all multilib dirs containing
libgcc_s*.so.1 below gcc object dir to LD_LIBRARY_PATH.
* lib/g++.exp (g++_link_flags): Likewise.
* lib/objc.exp (objc_target_compile): Likewise.
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Append all
multilib dirs containing libgcc_s*.so.1 below gcc object dir to
LD_LIBRARY_PATH.
* testsuite/lib/libjava.exp (libjava_arguments): Append all
multilib dirs containing libgcc_s*.so.1 below gcc object dir to
LD_LIBRARY_PATH.
From-SVN: r53345
2002-05-09 23:01:55 +02:00
Alexandre Oliva
6706f1167e
configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at script entry, and set LD to it when configuring multilibs.
...
* configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
script entry, and set LD to it when configuring multilibs.
* configure: Rebuilt.
From-SVN: r53278
2002-05-08 04:38:00 +00:00
Mark Mitchell
e9a6ff0c70
*** empty log message ***
...
From-SVN: r53268
2002-05-07 20:26:01 +00:00
Paolo Carlini
b562382902
Test all the facets for the temporary "C" locale switch issue.
...
2002-05-06 Paolo Carlini <pcarlini@unitus.it>
Test all the facets for the temporary "C" locale switch issue.
* testsuite/22_locale/codecvt_members_char_char.cc: Add test03.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
* testsuite/22_locale/collate_members_char.cc: Add test04.
* testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
* testsuite/22_locale/ctype_members_char.cc: Add test05.
* testsuite/22_locale/ctype_members_wchar_t.cc: Add test04.
* testsuite/22_locale/messages_members_char.cc: Add test03.
* testsuite/22_locale/money_get_members_char.cc: Add test08.
* testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/money_put_members_char.cc: Add test07.
* testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
* testsuite/22_locale/moneypunct_members_char.cc: Add test03.
* testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
* testsuite/22_locale/num_get_members_char.cc: Add test06.
* testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/numpunct_members_char.cc: Add test03.
* testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
* testsuite/22_locale/time_get_members_char.cc: Add test08.
* testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/time_put_members_char.cc: Add test04.
* testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
* testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
* testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
From-SVN: r53236
2002-05-06 21:12:15 +00:00
Kaveh R. Ghazi
567310ad7f
os_defines.h (_SGI_SOURCE, [...]): Ensure they are always defined.
...
* config/os/irix/irix5.2/bits/os_defines.h (_SGI_SOURCE,
__EXTENSIONS__): Ensure they are always defined.
From-SVN: r53216
2002-05-06 14:03:57 +00:00
Phil Edwards
de20ab96b1
documentation.html: Fix broken link.
...
2002-05-06 Phil Edwards <pme@gcc.gnu.org>
* docs/html/documentation.html: Fix broken link.
From-SVN: r53211
2002-05-06 11:43:56 +00:00
Paolo Carlini
6d030676cc
[multiple changes]
...
2002-05-04 Benjamin Kosnik <bkoz@redhat.com>
Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/num_put_members_char.cc: Add test04(),
testing for the locale_facets.tcc entry of the previous commit.
* testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
2002-05-04 Takeshi Kobayakawa <tskoba@mte.biglobe.ne.jp>
* config/locale/generic/c_locale.cc
(__convert_to_v(float, double, long double)):
Fix the temporary switch to the "C" locale, saving and
restoring in the proper way the current locale.
* config/locale/generic/time_members.cc
(__timepunct<char, wchar_t>::_M_put): Likewise.
* config/locale/gnu/messages_members.cc
(messages<char>::do_get): Likewise.
* config/locale/gnu/messages_members.h
(messages<_CharT>::do_get): Likewise.
* config/locale/gnu/time_members.cc
(__timepunct<char, wchar_t>::_M_put): Likewise.
* include/bits/locale_facets.tcc (__convert_from_v): Likewise.
From-SVN: r53167
2002-05-04 21:33:19 +00:00
Kaveh R. Ghazi
7e90efc403
configure.in (AC_CHECK_HEADERS): Check for string.h & stdlib.h.
...
* configure.in (AC_CHECK_HEADERS): Check for string.h & stdlib.h.
* libsupc++/Makefile.am (LTCOMPILE): Add $(DEFS).
* Makefile.in, config.h.in, configure: Regenerate.
From-SVN: r53166
2002-05-04 20:20:29 +00:00
Benjamin Kosnik
2fd819efe5
re PR libstdc++/6549 (std::getline(std::cin,s) work wrong at FreeBSD 4.5)
...
2002-05-03 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6549.
* include/bits/fstream.tcc (filebuf::_M_underflow_common): Revert.
* testsuite/27_io/narrow_stream_objects.cc (test07): Add.
From-SVN: r53107
2002-05-03 18:22:58 +00:00
Kaveh R. Ghazi
b70d6d4b66
ctype_noninline.h (classic_table): Return __ctype + 1.
...
* config/os/irix/irix5.2/bits/ctype_noninline.h (classic_table):
Return __ctype + 1.
(ctype:_M_table): Initialize to classic_table(), not __ctype.
From-SVN: r53093
2002-05-03 13:56:52 +00:00
Rainer Orth
d6ab05a0be
configure.in: Update local install.html, configopts.html paths.
...
* configure.in: Update local install.html, configopts.html paths.
* configure: Regenerate.
From-SVN: r53083
2002-05-03 11:09:51 +00:00
Kaveh R. Ghazi
08d028699d
* config/os/irix/irix5.2/bits/os_defines.h
...
(__glibcpp_long_double_bits, __glibcpp_long_bits): Define.
From-SVN: r53077
2002-05-03 04:01:58 +00:00
Kaveh R. Ghazi
3a02124033
ctype_inline.h: Cast to unsigned char.
...
* config/os/irix/irix5.2/bits/ctype_inline.h: Cast to unsigned
char.
From-SVN: r53076
2002-05-03 03:59:22 +00:00
Phil Edwards
36ea41a31a
index.html: Update list in #4.1.
...
2002-05-02 Phil Edwards <pme@gcc.gnu.org>
* docs/html/faq/index.html: Update list in #4.1.
* docs/html/faq/index.txt: Regenerated.
From-SVN: r53065
2002-05-02 21:21:16 +00:00
Benjamin Kosnik
13a9017819
RELEASE-NOTES (New): Update.
...
2002-05-02 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/17_intro/RELEASE-NOTES (New): Update.
From-SVN: r53063
2002-05-02 20:42:25 +00:00
Phil Edwards
e92a4045ac
std_bitset.h: Fix doxygen comments.
...
2002-05-01 Phil Edwards <pme@gcc.gnu.org>
* include/std/std_bitset.h: Fix doxygen comments.
* docs/html/documentation.html: Minor tweaks for 3.1.
* docs/html/27_io/howto.html: Likewise.
* docs/html/ext/howto.html: Likewise, mention stdio_filebuf.
* docs/html/faq/index.html: Likewise.
* docs/html/faq/index.txt: Regenerated.
From-SVN: r53025
2002-05-01 22:57:59 +00:00
Benjamin Kosnik
9875ea057d
re PR libstdc++/6533 (libstdc++ broken on unsigned char platforms)
...
2002-05-01 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6533
* include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get): New.
(istreambuf_iterator::equal): Use it.
(istreambuf_iterator::operator*): Use it.
From-SVN: r53024
2002-05-01 22:40:27 +00:00
Paolo Carlini
072a15d99b
re PR libstdc++/6513 (sigfaults on trivial code)
...
2002-05-01 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6513
* include/bits/stl_uninitialized.h
(uninitialized_copy(_InputIter, _InputIter, _ForwardIter)):
Fix typo in 2001-07-17 commit: typedef _ValueType to
iterator_traits<_ForwardIter> not <_InputIter>.
* testsuite/23_containers/vector_ctor.cc: Add test04.
From-SVN: r52985
2002-05-01 02:17:35 +00:00
Benjamin Kosnik
a125b7bc58
re PR libstdc++/6501 (ctype_noninline.h:45: `__SB_masks' undeclared)
...
2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
PR libstdc++/6501
* include/c_std/std_cctype.h: Include bits/c++config.h.
* config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.
From-SVN: r52979
2002-04-30 22:52:39 +00:00
John David Anglin
888d5eaa62
re PR libstdc++/6501 (ctype_noninline.h:45: `__SB_masks' undeclared)
...
PR libstdc++/6501
* include/c_std/std_cctype.h: Include bits/c++config.h.
* config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.
From-SVN: r52970
2002-04-30 19:50:29 +00:00
Benjamin Kosnik
5cdd50a591
stdio_filebuf.h: New file.
...
2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stdio_filebuf.h: New file.
* include/ext/enc_filebuf.h: New file.
* config/io/basic_file_stdio.h (__basic_file::sys_open): Add fd ctor.
* config/io/basic_file_stdio.cc: Same.
* include/bits/fstream.tcc (filebuf::_M_allocate_internal_buffer):
Remove _M_unbuf hacks.
(filebuf::_M_destroy_internal_buffer): Same.
(filebuf::filebuf(cfile, openmode, int_type): Remove definition.
(filebuf::fd): Remove.
* include/std/std_fstream.h (filebuf::_M_unbuf): Remove.
(filebuf::filebuf(__c_file*, openmode, int_type)): Remove.
(filebuf::fd): Remove.
* src/ios.cc (ios_base::_S_ios_create): Change to use specialized
filebufs.
(ios_base::_S_ios_destroy): Same.
* src/misc-inst.cc (file_filebuf<char>): Add instantiation.
* include/Makefile.am (ext_headers): Add ext_filebuf.h,
stdio_filebuf.h. * include/Makefile.in: Regenerate.
From-SVN: r52961
2002-04-30 19:04:43 +00:00
Benjamin Kosnik
8e44e77e6a
re PR libstdc++/6511 (new libstdc++ v3 testsuite regressions on *-*-solaris2.8)
...
2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6511
* config/os/solaris/solaris2.7/bits/ctype_noninline.h: Fix typo.
From-SVN: r52937
2002-04-30 09:15:48 +00:00
Benjamin Kosnik
3cd870ad84
correct PR number
...
From-SVN: r52934
2002-04-30 07:28:20 +00:00
Benjamin Kosnik
5c352a47a6
re PR libstdc++/5280 (Problems with named locales and iostreams (gnulocale))
...
2002-04-29 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/5280
* include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
Check for eof.
* include/bits/streambuf_iterator.h: Match stream_iterator.h.
(istreambuf_iterator::operator++): Invalidate on eof.
(istreambuf_iterator::operator++(int)): Same.
(istreambuf_iterator::operator*): Same.
From-SVN: r52933
2002-04-30 07:22:11 +00:00
Rainer Orth
9a3e5fd3fd
libstdc++-v3-dg.exp (libstdc++-v3-init): Set all of LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH, LD_LIBRARY64_PATH.
...
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set all
of LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
LD_LIBRARY64_PATH.
From-SVN: r52919
2002-04-30 01:45:34 +00:00
Benjamin Kosnik
d02475fdae
re PR libstdc++/5280 (Problems with named locales and iostreams (gnulocale))
...
2002-04-28 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/5280
* config/io/basic_file_stdio.h (__basic_file::sys_getc): Return int.
(__basic_file::sys_ungetc): Take int.
* config/io/basic_file_stdio.cc (__basic_file::sys_ungetc): Same.
* include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
Use sys_getc for unbuffered input.
* testsuite/27_io/narrow_stream_objects.cc (test06): New.
* src/ios.cc (_M_grow_words): Adjust error checking.
* testsuite/27_io/ios_base_storage.cc: Same.
From-SVN: r52879
2002-04-29 07:00:50 +00:00
Paolo Carlini
32c8d10081
[multiple changes]
...
2002-04-28 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/ext/stl_hashtable.h: Import __iterator_category
2002-04-28 Paolo Carlini <pcarlini@unitus.it>
Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/ext/hash_set.cc: New testfile.
From-SVN: r52843
2002-04-28 16:21:32 +00:00
Benjamin Kosnik
82f637d15d
os_defines.h: Remove _G_USING_THUNKS.
...
2002-04-27 Benjamin Kosnik <bkoz@redhat.com>
* config/os/solaris/solaris2.5/bits/os_defines.h: Remove
_G_USING_THUNKS.
* config/os/solaris/solaris2.6/bits/os_defines.h: Same.
* config/os/solaris/solaris2.7/bits/os_defines.h: Same.
From-SVN: r52838
2002-04-28 00:42:12 +00:00
Paolo Carlini
adf2e3e668
basic_string.h (replace(__pos, __n1, __s, __n2): Fix and tighten __throw_length_error check.
...
2002-04-26 Paolo Carlini <pcarlini@unitus.it>
* include/bits/basic_string.h (replace(__pos, __n1, __s, __n2):
Fix and tighten __throw_length_error check.
* testsuite/21_strings/replace.cc (test05): New.
* testsuite/21_strings/replace.cc (test02, test03, test04): Tweak.
From-SVN: r52797
2002-04-26 18:21:32 +00:00
Loren J. Rittle
9385d9cb0d
std_fstream.h (basic_filebuf::sync): Hoist unconditional flush on lower-layer handle to here...
...
* include/std/std_fstream.h (basic_filebuf::sync): Hoist
unconditional flush on lower-layer handle to here...
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow):
...from here. Optimize remaining _M_file.sync() call pattern.
* testsuite/27_io/narrow_stream_objects.cc (test04): New test.
(test05): Likewise.
From-SVN: r52699
2002-04-24 00:33:28 +00:00
Jason Merrill
736020b4a7
fstream.tcc (basic_filebuf::seekoff): Fix for output-only filebufs.
...
* include/bits/fstream.tcc (basic_filebuf::seekoff): Fix for
output-only filebufs.
* include/std/std_fstream.h (basic_filebuf::_M_set_indeterminate):
Likewise.
(basic_filebuf::_M_set_determinate): Likewise.
From-SVN: r52685
2002-04-23 17:56:10 -04:00
Jason Merrill
74c263af80
re PR libstdc++/6414 (g++ 3.1 tellg() regression within last week)
...
PR libstdc++/6414
* include/bits/fstream.tcc (basic_filebuf::seekoff): Adjust return
value properly in the trivial case.
* testsuite/27_io/istream_seeks.cc (test04): Make sure that
tellg() returns the right value after a read.
From-SVN: r52679
2002-04-23 17:01:22 -04:00
Hans-Peter Nilsson
7e67bb8588
cpu_limits.h: New file.
...
* config/cpu/mmix/bits/cpu_limits.h: New file.
* configure.target (CPULIMITSH): Use it.
From-SVN: r52674
2002-04-23 17:46:24 +00:00
Loren J. Rittle
6067f1feb2
* docs/html/17_intro/porting.html: Rebuilt.
...
From-SVN: r52643
2002-04-22 22:50:40 +00:00
Loren J. Rittle
c5ac5edb61
* docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.
...
From-SVN: r52642
2002-04-22 22:46:34 +00:00
Jason Merrill
5066927d9e
re PR libstdc++/4150 (catastrophic performance decrease in C++ code)
...
PR libstdc++/4150
* include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate):
Move to filebuf.
(basic_streambuf::_M_set_determinate): Likewise.
(basic_streambuf::_M_is_indeterminate): Likewise.
* include/bits/std_fstream.h (basic_filebuf::_M_filepos): New
non-static data member.
(basic_filebuf::_M_underflow_common): New non-static member function.
(basic_filebuf::_M_underflow, _M_uflow): Call it.
(basic_filebuf::sync): Avoid useless seeking.
(basic_filebuf::_M_set_indeterminate): Move here from streambuf.
Set _M_filepos.
(basic_filebuf::_M_set_determinate): Likewise.
(basic_filebuf::_M_is_indeterminate): Likewise.
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek
back to _M_out_beg if necessary.
(basic_filebuf::seekoff): Likewise.
(basic_filebuf::_M_underflow_common): Generalization of old
underflow(). Don't seek back to _M_in_beg.
* src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff.
* config/os/solaris/solaris2.?/bits/os_defines.h: Likewise.
* config/os/bsd/freebsd/bits/os_defines.h: Likewise.
* config/os/mingw32/bits/os_defines.h: Likewise.
* testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify
ungetc test.
From-SVN: r52634
2002-04-22 16:28:05 -04:00
Benjamin Kosnik
b2e4f4fda7
istream.tcc (istream::read): Fix.
...
2002-04-22 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/istream.tcc (istream::read): Fix.
* testsuite/27_io/istream_unformatted.cc (main): Add.
From-SVN: r52628
2002-04-22 19:10:02 +00:00
Benjamin Kosnik
9a4b4cfc1a
re PR libstdc++/6360 (Wrong workaround in char_traits.h - ignore stops on \0xff)
...
2002-04-20 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6360
* include/bits/istream.tcc (istream::ignore): Streamline, use
delimiter as is.
* include/bits/streambuf.tcc: Use this->gptr.
* testsuite/27_io/istream_unformatted.cc (test08): Add test.
From-SVN: r52563
2002-04-21 04:15:29 +00:00
Benjamin Kosnik
36ce7daa04
localefwd.h (locale: 🆔 :_M_id): Do this correctly, as type safety is important, especially on solaris.
...
2002-04-18 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/localefwd.h (locale:🆔 :_M_id): Do this correctly,
as type safety is important, especially on solaris.
* include/bits/istream.tcc (istream::read): Clean.
(istream::readsome): Same.
* locale.cc: Wrap lines.
* testsuite/21_strings/inserters_extractors.cc: Tweaks.
* testsuite/27_io/instantiations.cc (test): Add bool variable...
* testsuite/21_strings/capacity.cc: Clean.
From-SVN: r52501
2002-04-18 23:47:50 +00:00
Phil Edwards
bf551f96b1
doxygroups.cc: New group on binary searching.
...
2002-04-17 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/doxygroups.cc: New group on binary searching.
* include/bits/stl_algo.h: Document binary searches and merges.
* include/bits/stl_deque.h: The 'map' member is not the 'map' class.
From-SVN: r52453
2002-04-18 02:55:50 +00:00
Phil Edwards
d4c6e01f81
mainpage.html: Doxygen logo is now a PNG file.
...
2002-04-17 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/mainpage.html: Doxygen logo is now a PNG file.
* docs/doxygen/run_doxygen: Bump required version.
* docs/doxygen/user.cfg.in: Revert accidental change.
* docs/html/faq/index.html: Reindent a block of links.
(4.4): New note on using dlsym.
* docs/html/faq/index.txt: Regenerated.
From-SVN: r52451
2002-04-18 01:42:50 +00:00
Phil Edwards
822ca943a3
testsuite_flags.in (cxxflags): Also pass @EXTRA_CXX_FLAGS@.
...
2002-04-17 Phil Edwards <pme@gcc.gnu.org>
* testsuite_flags.in (cxxflags): Also pass @EXTRA_CXX_FLAGS@.
From-SVN: r52450
2002-04-18 01:37:42 +00:00
Benjamin Kosnik
cff5778913
linker-map.gnu (__malloc_alloc_template): Add.
...
2002-04-17 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu (__malloc_alloc_template): Add.
(__default_alloc_template): Same.
* include/bits/stl_alloc.h (__malloc_alloc_template): Add extern
template.
(__default_alloc_template): Same.
From-SVN: r52441
2002-04-17 20:08:18 +00:00
Benjamin Kosnik
cf76d875db
filebuf_virtuals.cc: Add _S_pback_size instantiation.
...
2002-04-17 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/27_io/filebuf_virtuals.cc: Add _S_pback_size instantiation.
From-SVN: r52436
2002-04-17 17:35:00 +00:00
Benjamin Kosnik
42ca0438ce
concept-inst.cc (vector<locale::facet*>): Remove instantiations.
...
2002-04-16 Benjamin Kosnik <bkoz@redhat.com>
* src/concept-inst.cc (vector<locale::facet*>): Remove instantiations.
* src/stl-inst.cc (vector::_M_insert_aux): Remove instantiation.
(__malloc_alloc_template): Conditionalize.
* include/bits/istream.tcc: Remove sputbackc calls.
* testsuite/19_diagnostics/stdexceptions.cc: Fix comment.
From-SVN: r52405
2002-04-17 06:20:20 +00:00
Gabriel Dos Reis
f1e888aea0
[multiple changes]
...
2002-04-16 Paolo Carlini <pcarlini@unitus.it>
* testsuite/24_iterators/rel_ops.cc: New test.
2002-04-16 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/bits/type_traits.h (__normal_iterator): Declare in
__gnu_cxx. Adjust use at global namespace.
* include/bits/stl_iterator.h (__normal_iterator): Move
definition
into __gnu_cxx::. Add more operator overloads. Tidy existing
ones.
* include/bits/basic_string.h (basic_string): Adjust use of
__normal_iterator.
* include/bits/stl_vector.h (_Alloc>): Likewise.
* src/concept-inst.cc (__gnu_cxx): __normal_iterator<> is now
here.
* src/string-inst.cc (operator==): Instantiate in __gnu_cxx.
From-SVN: r52348
2002-04-16 02:29:22 +00:00
Benjamin Kosnik
d3a193e36c
re PR libstdc++/4164 (33 Memory Leak when using iostream)
...
2002-04-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/4164
Valgrind fixes.
* config/io/basic_file_stdio.cc (__basic_file::~__basic_file):
Call close.
(__basic_file::close): Call fflush. Correct return if fclose ok.
(__basic_file::is_open): Make const.
Change __c_file_type to __c_file.
* config/io/basic_file_stdio.h: Change __c_file_type to __c_file.
(__basic_file::is_open): Make const.
* config/io/c_io_stdio.h: Change __c_file_type to __c_file.
* include/std/std_fstream.h (filebuf::_M_allocate_file): Remove.
(filebuf::_M_unbuf): Add.
(filebuf::_M_file): Change to non-pointer.
(filebuf::_M_allocate_pback_buffer): Remove.
* include/bits/fstream.tcc (filebuf::_M_allocate_file): Remove.
(filebuf::_M_allocate_internal_buffer): Use _M_unbuf.
Change initialization list for _M_file change.
(filebuf::_M_allocate_pback_buffer): Remove.
Change _M_file usage to reflect non-pointer data member.
* config/locale/generic/c_locale.cc
(locale::facet::_S_create_c_locale): Add parameter.
* config/locale/generic/collate_members.cc: Change
_M_compare_helper to _M_compare.
Change _M_transform_helper to _M_transform.
* config/locale/generic/monetary_members.cc: Changeup data types.
Add dtors.
* config/locale/generic/numeric_members.cc: Add dtors.
* config/locale/generic/time_members.cc: Add dtors.
* config/locale/gnu/c_locale.cc: Add parameter.
* config/locale/gnu/collate_members.cc:Change
_M_compare_helper to _M_compare.
Change _M_transform_helper to _M_transform.
* config/locale/gnu/ctype_members.cc: Better error checking.
* config/os/gnu-linux/bits/ctype_noninline.h: Better error checking.
* config/locale/gnu/messages_members.cc: Tweak comment.
* config/locale/gnu/monetary_members.cc: Change data types.
Add dtors.
* config/locale/gnu/numeric_members.cc: Add dtors, better error
checking.
* config/locale/gnu/time_members.cc: Same.
* config/locale/ieee_1003.1-2001/c_locale.cc
(locale::facet::_S_create_c_locale): Add parameter.
* config/locale/ieee_1003.1-2001/c_locale.h: Correct typedef.
* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Remove
bogus ctor.
* include/bits/locale_facets.h (moneypunct): Use string literals.
Don't define dtor.
(numpunct): Same.
(__timepunct): Same.
(locale::_Impl::_M_facets): Change from vector to array.
(locale::_Impl::_M_names): Change from array of strings to array
of string literals.
(locale::facet::_S_create_c_locale): Add parameter.
(locale::locale::_S_num_facets): Move to...
(locale::_Impl::_M_facets_size): Here.
* include/bits/locale_facets.tcc: Fixups for _M_facets, _M_name
changes.
* include/bits/localefwd.h: (locale:🆔 :_M_id): Add member function.
(locale::_Impl::_Impl(facet**, size_t, bool)): Add.
(locale::_Impl::_Impl(string, size_t)): Change to
(locale::_Impl::_Impl(const char*, size_t)): This.
* include/bits/streambuf.tcc (streambuf::_S_pback_size): Define.
* include/std/std_streambuf.h (streambuf::_M_pback_size): Change to
(streambuf::_S_pback_size): This.
* src/globals.cc: Add pre-allocations for "C" facets.
* src/locale-inst.cc: Remove vector instantiations.
* src/locale.cc: Remove vector include. Fixups for _M_names,
_M_facets changes.
* src/localename.cc: Same.
* include/bits/stl_vector.h: Fix odd formatting.
* include/bits/basic_string.tcc: Tweak comment.
* libsupc++/new: Make sure parameters are uglified.
* libsupc++/typeinfo: Same.
* testsuite/22_locale/num_get_members_char.cc: Fixup.
* testsuite/22_locale/num_get_members_wchar_t.cc: Same.
* testsuite/27_io/filebuf_members.cc: Same.
From-SVN: r52345
2002-04-16 00:45:36 +00:00
Steve Ellcey
ef290537a3
* gcc/libstdc++-v3/config/os/hpux/bits/os_defines.h
...
(strtoll, strtoull): In 64 bit mode HP-UX (IA64 and HPPA)
does not define strtoll or strtoull, but does define strtol
and strtoul which are the same since in 64 bit mode
sizeof(long) == sizeof(long long).
From-SVN: r52247
2002-04-12 22:31:27 +00:00
Phil Edwards
b963aad8ed
std_bitset.h: Doxygenate std::bitset<>.
...
2002-04-12 Phil Edwards <pme@gcc.gnu.org>
* include/std/std_bitset.h: Doxygenate std::bitset<>. Clean up
trailing spaces, indentation, and macro names. Make exception
messages more informative.
From-SVN: r52233
2002-04-12 19:15:59 +00:00
Richard Henderson
b773723097
fstream.tcc (basic_filebuf<>::open): Fix & ordering.
...
* include/bits/fstream.tcc (basic_filebuf<>::open): Fix & ordering.
* include/bits/ostream.tcc (basic_ostream<>::operator<<(long)): Same.
(basic_ostream<>::operator<<(long long)): Same.
From-SVN: r52198
2002-04-11 22:42:23 -07:00
Richard Henderson
51cd12de0d
* config/linker-map.gnu: Add __gxx_personality_sj0.
...
From-SVN: r52187
2002-04-11 16:27:45 -07:00
Benjamin Kosnik
0dba73e0ab
localefwd.h (locale::_Impl::_M_facets): Change from pointer to vector.
...
2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1072
* include/bits/localefwd.h (locale::_Impl::_M_facets): Change from
pointer to vector.
Remove forward declaration of vector.
Include vector.
* include/bits/locale_facets.tcc: Remove vector include.
(use_locale): Adjust.
(has_locale): Adjust.
* src/locale.cc: Adjust.
* src/localename.cc: Same.
From-SVN: r52095
2002-04-09 21:19:55 +00:00
Benjamin Kosnik
dcf5a5dec8
sstream.tcc: Clean up bit ops.
...
2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
Richard Henderson <rth@redhat.com>
* include/bits/sstream.tcc: Clean up bit ops.
* include/bits/fstream.tcc: Same.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r52070
2002-04-09 08:48:33 +00:00
Jakub Jelinek
b0396e3b6c
locale_facets.h (__num_base::_S_scale_hex): Remove.
...
2002-04-09 Jakub Jelinek <jakub@redhat.com>
* include/bits/locale_facets.h (__num_base::_S_scale_hex): Remove.
(__num_base::_S_scale_oct): Remove.
* src/locale.cc (__num_base::_S_scale_hex): Remove.
(__num_base::_S_scale_oct): Remove.
From-SVN: r52068
2002-04-09 08:00:08 +00:00
Benjamin Kosnik
1cb7f91f86
bitset_members.cc: New test.
...
2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/6124
* testsuite/23_containers/bitset_members.cc: New test.
* include/std/std_bitset.h (_Bit_count::_S_bit_count): Move..
(_S_bit_count): Here.
(_First_one::_S_first_one): Move...
(_S_first_one): Here.
Format.
* src/bitset.cc: Adjust.
* config/linker-map.gnu: Export.
From-SVN: r52066
2002-04-09 07:35:31 +00:00
Benjamin Kosnik
b988dfc58f
fstream.tcc (filebuf::seekpos): Fix.
...
2002-04-08 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5180
* include/bits/fstream.tcc (filebuf::seekpos): Fix.
* include/std/std_fstream.h: Clean.
* include/bits/ostream.tcc: Remove extraneous variables.
* include/bits/sstream.tcc (stringbuf::seekoff): Be strict about
open modes and which modes.
(stringbuf::seekpos): Same.
* testsuite/27_io/stringbuf_virtuals.cc: New tests.
From-SVN: r52057
2002-04-09 06:14:32 +00:00
Jonathan Wakely
39b945d23b
stl_algo.h (unique_copy, [...]): Doxygenate.
...
2002-04-05 Jonathan Wakely <jw@kayari.org>
* include/bits/stl_algo.h (unique_copy, __gcd, rotate, rotate_copy,
random_shuffle, partition, stable_partition, sort, stable_sort,
partial_sort, partial_sort_copy, nth_element): Doxygenate.
From-SVN: r51927
2002-04-05 17:58:41 +00:00
David S. Miller
03381059f7
2002-04-05 David S. Miller <davem@redhat.com>
...
* config/os/gnu-linux/bits/os_defines.h
(__glibcpp_long_double_bits): Set to 64 on 32-bit Sparc.
From-SVN: r51921
2002-04-05 05:46:50 -08:00
Benjamin Kosnik
677b3ae39a
via gawrilow@math.tu-berlin.de
...
2002-04-04 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3457
via gawrilow@math.tu-berlin.de
* acinclude.m4 (version_specific_libs): Fix combo usage with
--with-gxx-include-dir.
* aclocal.m4: Regenerate.
* configure: Same.
From-SVN: r51875
2002-04-04 21:33:33 +00:00
Benjamin Kosnik
a9bb75a7e0
As per DR 184, libstdc++/3139
...
2002-04-03 Benjamin Kosnik <bkoz@redhat.com>
As per DR 184, libstdc++/3139
* include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
(numeric_limits<bool>::is_iec559): False.
(numeric_limits<bool>::is_modulo): False.
* testsuite/27_io/ios_init.cc: Add instantiations.
From-SVN: r51838
2002-04-04 05:32:59 +00:00
Benjamin Kosnik
40e5b28399
ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls.
...
2002-04-02 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5268
* src/ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls.
* testsuite/27_io/ios_init.cc (tests04): Add test.
libstdc++/3983
* include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove.
(basic_ios::_M_ios_fctype): Consistently name to _M_fctype.
* include/bits/basic_ios.tcc: Same. Remove outdated comments.
* include/bits/istream.tcc: Use _M_fctype, make consistent with
ostream.
* testsuite/27_io/ios_init.cc (tests03): Add test.
From-SVN: r51777
2002-04-03 02:32:52 +00:00
Phil Edwards
3741b1abe0
Makefile.am (install-data-local): Use mkinstalldirs.
...
2002-04-02 Phil Edwards <pme@gcc.gnu.org>
* include/Makefile.am (install-data-local): Use mkinstalldirs.
* include/Makefile.in: Regenerate.
From-SVN: r51747
2002-04-02 12:57:23 +00:00
Paolo Carlini
418bb88063
basic_string.h (replace(i1, i2, _CharT* k1, _CharT* k2), [...]): New specializations to optimize for the common cases of pointers and iterators.
...
2002-04-02 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
Philip Martin <philip@codematters.co.uk>
* include/bits/basic_string.h
(replace(i1, i2, _CharT* k1, _CharT* k2),
replace(i2, i2, const _CharT* k1, const _CharT* k2),
replace(i1, i2, iterator k1, iterator k2,
replace(i1, i2, const_iterator k1, const_iterator k2):
New specializations to optimize for the common cases of
pointers and iterators.
(replace(pos, n1, s, n2)): Tweak.
* include/bits/basic_string.tcc: Tweak comments.
* testsuite/21_strings/replace.cc (test04): New tests.
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
Co-Authored-By: Philip Martin <philip@codematters.co.uk>
From-SVN: r51746
2002-04-02 12:07:07 +00:00
Benjamin Kosnik
501e321e0d
acinclude: More extensive checks for msgfmt, --enable-nls.
...
2002-04-01 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5542
* acinclude: More extensive checks for msgfmt, --enable-nls.
* aclocal.m4: Regenerate.
* configure: Regenerate.
From-SVN: r51732
2002-04-02 02:41:50 +00:00
Phil Edwards
efe44c60eb
exception (__verbose_terminate_handler): Point to docs.
...
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* libsupc++/exception (__verbose_terminate_handler): Point to docs.
* docs/doxygen/doxygroups.cc: Doxygen hooks for abi::__cxa_demangle.
* docs/html/18_support/howto.html: Document the demangler.
* docs/html/17_intro/howto.html: And link to it.
* docs/doxygen/mainpage.html: Describe user-vs-maintainer docs.
* docs/doxygen/run_doxygen: Print user-vs-maintainer.
From-SVN: r51730
2002-04-02 02:07:22 +00:00
Phil Edwards
76f6aa8b6c
linker-map.gnu: Export __verbose_terminate_handler.
...
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* config/linker-map.gnu: Export __verbose_terminate_handler.
* libsupc++/Makefile.am (sources): Add cxa_demangle.c, dyn-string.c.
Make new LTCOMPILE variable, use it in new special build rules.
* libsupc++/Makefile.in: Rebuild.
* src/vterminate.cc (__verbose_terminate_handler): Enable use of
runtime __cxa_demangle.
* docs/html/install.html: Update prereqs and instructions.
* docs/html/19_diagnostics/howto.html: Bring naming for
verbose_terminate_handler into line with reality.
From-SVN: r51709
2002-04-01 21:56:42 +00:00
Benjamin Kosnik
663653eb3a
basic_ios.h (basic_ios::_M_exception): Move.
...
2002-04-01 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3129
* include/bits/basic_ios.h (basic_ios::_M_exception): Move.
(basic_ios::_M_streambuf_state): Move.
* include/bits/ios_base (ios_base): To here.
* include/bits/ios_base.h (ios_base::_S_local_words): To
_S_local_word_size.
(ios_base::_M_word_array): To _M_local_word.
(ios_base::_M_words_limit): To _M_word_size.
(ios_base::_M_words): To _M_word.
Comment.
* include/bits/basic_ios.tcc: Adjust.
* src/ios.cc (ios_base::_M_grow_words): Tweak.
* testsuite/27_io/ios_base_storage.cc: Add tests.
libstdc++/5207
Kenny Simpson <theonetruekenny@yahoo.com>
* include/bits/ios_base.h: Fix.
Richard Henderson <rth@redhat.com>
* include/bits/ostream.tcc (ostream::operator<<(_CharT)): Correct
last change.
* include/bits/basic_string.h: Tweak formatting.
From-SVN: r51695
2002-04-01 18:39:37 +00:00
Paolo Carlini
99b629fa30
2002-04-01 Paolo Carlini <pcarlini@unitus.it>
...
* config/locale/ieee_1003.1-2001/codecvt_specializations.h
(codecvt::do_out, codecvt::do_unshift, codecvt::do_in):
By definition, sizeof(char) == 1.
* include/bits/locale_facets.tcc (money_get::do_get,
money_put::do_put): Ditto.
* testsuite/21_strings/inserters_extractors.cc
(test04): Ditto.
From-SVN: r51685
2002-04-01 08:55:05 +00:00
Richard Henderson
afaef72670
re PR c++/3719 (Unable to retrow exception in unexpected exception handler.)
...
PR c++/3719
* libsupc++/eh_personality.cc (__cxa_call_unexpected): Copy handler
data out of the exception struct before calling unexpectedHandler.
* g++.dg/eh/unexpected1.C: New.
From-SVN: r51623
2002-03-30 18:56:34 -08:00
Roger Sayle
d52e4867ca
re PR c++/5998 (regression, all builtins disabled)
...
* include/c_std/std_cmath.h: To prevent problems overloading
g++ builtins, use the double variants from the global namespace
before defining float and long double variants in std::.
PR c++/5998:
* decl.c (cxx_init_decl_processing): Re-enable built-in functions
in the g++ front-end.
(duplicate_decl): Allow redefinition of anticipated built-ins.
Fix inlining problem by over-writing the old DECL_RTL.
(lookup_namespace_name): Fail to find an identifier in the
specified namespace if its still anticipated.
(builtin_function_1): New function split out from builtin_function
to create a builtin in the current namespace with given context.
(builtin_function): Call builtin_function_1 to define the
appropriate builtins in both the std and global namespaces.
(select_decl): Don't test for anticipated decls here.
(unqualified_namespace_lookup): Instead ignore them whilst
searching through scopes and namespaces.
* decl2.c (do_nonmember_using_decl): If a using declaration
specifies an anticipated built-in function, mark it as no longer
anticipated in that scope.
(ambiguous_decl): Avoid resolving to an anticipated decl.
* lex.c (do_scoped_id): Fail to find an identifier in the global
namespace if its still anticipated.
* g++.old-deja/g++.other/builtins5.C: New test.
* g++.old-deja/g++.other/builtins6.C: New test.
* g++.old-deja/g++.other/builtins7.C: New test.
* g++.old-deja/g++.other/builtins8.C: New test.
* g++.old-deja/g++.other/builtins9.C: New test.
From-SVN: r51568
2002-03-29 20:41:53 +00:00
Loren J. Rittle
cb105687e5
* testsuite/18_support/numeric_limits.cc (test_extrema): Fix typo.
...
From-SVN: r51544
2002-03-29 06:34:04 +00:00
Paolo Carlini
0c0bac932e
2002-03-28 Paolo Carlini <pcarlini@unitus.it>
...
* testsuite/24_iterators/istream_iterator.cc
(test02): New tests.
From-SVN: r51527
2002-03-28 20:25:25 +00:00
Paolo Carlini
e1cfa83038
Fix wrong date in last Changelog
...
From-SVN: r51523
2002-03-28 19:23:48 +00:00
Ulrich Weigand
10cbfb51ac
2002-03-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
...
Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/codecvt_members_unicode_wchar_t.cc
(test01): Protect the test with _GLIBCPP_USE_WCHAR_T;
fix i_lit_base e_lit_base arrays, making them independent
from the endianness of the platform; tweak UCS4 to UCS-4BE.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r51521
2002-03-28 19:19:23 +00:00
Benjamin Kosnik
a3ebd14d24
ostream.tcc (ostream::operator<<(_CharT)): Always allocate at least a byte.
...
2002-03-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/ostream.tcc (ostream::operator<<(_CharT)): Always
allocate at least a byte.
* testsuite/18_support/numeric_limits.cc (test_extrema): Make
debugger-friendly.
* testsuite/27_io/streambuf.cc (test07): Fix.
(test06): Enable.
From-SVN: r51494
2002-03-28 03:15:08 +00:00
Phil Edwards
04b7c941e9
Intro.3: Date tweak.
...
2002-03-27 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/Intro.3: Date tweak.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Point to tables.html.
* docs/doxygen/mainpage.html: Date tweak.
* docs/doxygen/run_doxygen: Version tweak. Copy tables.html over.
* docs/doxygen/tables.html: Fill in the blanks.
* docs/doxygen/user.cfg.in (ALIASES): Remove maint and endmaint.
* include/bits/stl_algo.h: Likewise; use expanded form.
* include/bits/stl_alloc.h: Likewise.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_relops.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/std/std_memory.h: Likewise.
* include/bits/stl_deque.h: Point into tables.html and add @ingroup.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_vector.h: Likewise.
From-SVN: r51471
2002-03-27 21:41:36 +00:00
Benjamin Kosnik
3eb35fcfd4
c/: Guard with _CPP_.
...
2002-03-26 Benjamin Kosnik <bkoz@redhat.com>
* include/c/: Guard with _CPP_.
* include/c_std/: Same.
* include/Makefile.am: Fixup install, link routines for null
c_base_headers_extra scenarios.
* include/Makefile.in: Regerate.
From-SVN: r51431
2002-03-27 04:29:32 +00:00
Paolo Carlini
81b1b8c29d
2002-03-25 Paolo Carlini <pcarlini@unitus.it>
...
Richard Henderson <rth@redhat.com>
* testsuite/22_locale/codecvt_members_unicode_char.cc
(test01, test02): make sure that the i_lit_base array
is sufficiently aligned.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r51359
2002-03-26 00:36:19 +00:00
Benjamin Kosnik
9ad6276f02
ctype_noninline.h (ctype::classic): Set to _ctype_.
...
2002-03-25 Benjamin Kosnik <bkoz@redhat.com>
* config/os/newlib/bits/ctype_noninline.h (ctype::classic): Set to
_ctype_.
From-SVN: r51354
2002-03-25 23:36:47 +00:00
Paolo Carlini
b7d5968dfc
2002-03-25 Paolo Carlini <pcarlini@unitus.it>
...
* testsuite/22_locale/collate_byname.cc
(test01): compare the result of collate::compare with
that of collate::transform + string::compare, not with
that of collate::transform + collate::compare; values
returned by collate::compare are normalized, therefore
test against +-1.
From-SVN: r51351
2002-03-25 23:19:47 +00:00
Benjamin Kosnik
99ffa1e37a
messages_members.h: Correct conditional.
...
2002-03-25 Benjamin Kosnik <bkoz@redhat.com>
Jakub Jelinek <jakub@redhat.com>
* config/locale/gnu/messages_members.h: Correct conditional.
* config/locale/gnu/messages_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
From-SVN: r51332
2002-03-25 20:20:34 +00:00
Paolo Carlini
2188d04d14
Fix typo in last Changelog.
...
From-SVN: r51322
2002-03-25 18:17:51 +00:00
Ulrich Weigand
9cc737e8da
2002-03-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
...
Paolo Carlini <pcarlini@unitus.it>
* testsuite/locale/codecvt_members_unicode_char.cc
(test01, test02): Fix i_lit_base arrays, making them
independent from the endianness of the platform.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r51314
2002-03-25 13:22:20 +00:00
Benjamin Kosnik
34ff0b99c1
acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_SUPP): Just test for signbit and __signbit directly.
...
2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_SUPP): Just test for
signbit and __signbit directly.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config.h.in: Regenerate.
* libmath/Makefile.am: Simplify.
* libmath/Makefile.in: Regenerate.
* include/c_std/std_cmath.h: Update paths for include of cmath.tcc.
* include/Makefile.am: Clean up handling of extra "C" header files.
Add hooks for "C" compatibility headers.
* include/Makefile.in: Regenerate.
* include/c/*: Formatting tweaks, cleanups.
* include/c_std/*: Same.
From-SVN: r51220
2002-03-23 03:19:03 +00:00
Benjamin Kosnik
1f3a2ce1db
messages_members.h: Add __uselocale bits.
...
2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/gnu/messages_members.h: Add __uselocale bits.
* config/locale/gnu/messages_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
From-SVN: r51217
2002-03-23 01:55:34 +00:00
Benjamin Kosnik
2ca0895384
vterminate.cc: Format, -fno-exceptions cleanup.
...
2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
* src/vterminate.cc: Format, -fno-exceptions cleanup.
From-SVN: r51185
2002-03-22 20:13:43 +00:00
Rainer Orth
380f343b24
acinclude.m4 (GLIBCPP_CHECK_STDLIB_DECL_AND_LINKAGE_3): New.
...
* acinclude.m4 (GLIBCPP_CHECK_STDLIB_DECL_AND_LINKAGE_3): New.
(GLIBCPP_CONFIGURE_TESTSUITE): Use it to check for setenv.
* aclocal.m4: Regenerate.
* configure: Likewise.
From-SVN: r51110
2002-03-21 01:29:51 +00:00
Paolo Carlini
6d8e16a463
locale-inst.cc (__convert_from_v): Add an additional __size parameter in the declarations.
...
2002-03-19 Paolo Carlini <pcarlini@unitus.it>
Ulrich Drepper <drepper@redhat.com>
* src/locale-inst.cc (__convert_from_v): Add an additional
__size parameter in the declarations.
* include/bits/locale_facets.tcc
(__convert_from_v): When available (that is,
_GLIBCPP_USE_C99 defined) use snprintf instead of sprintf.
(num_put::_M_convert_float): Depending on _GLIBCPP_USE_C99
being defined or not, call and use __convert_from_v in the
appropriate way.
(num_put::_M_convert_int): Same here.
(money_put::do_put(long double)): Same here.
Co-Authored-By: Ulrich Drepper <drepper@redhat.com>
From-SVN: r51050
2002-03-19 22:33:06 +00:00
Phil Edwards
0fdebf99e5
index.html (#3.6): Rewrap and close <a href> tags.
...
2002-03-19 Phil Edwards <pme@gcc.gnu.org>
* docs/html/faq/index.html (#3.6): Rewrap and close <a href> tags.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r51038
2002-03-19 20:16:12 +00:00
Steve Ellcey
263c6fa840
acinclude.m4 (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Define GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS to set LIBUNWIND_FLAG if...
...
2002-03-19 Steve Ellcey <sje@cup.hp.com>
* acinclude.m4 (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Define
GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS to set LIBUNWIND_FLAG if
--enable-libunwind-exceptions is set.
* configure.in (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Call new
macro to check for libunwind.
* configure: Regenerate.
* src/Makefile.am (libstdc___la_LDFLAGS): Add
LIBUNWIND_FLAG to libstdc link line.
* src/Makefile.in: Regenerate.
From-SVN: r51035
2002-03-19 19:50:30 +00:00
Benjamin Kosnik
2e4bcfd817
index.html: Add OS X workaround.
...
2002-03-19 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/faq/index.html: Add OS X workaround.
* docs/html/17_intro/TODO: Update.
From-SVN: r51028
2002-03-19 17:17:46 +00:00
Paolo Carlini
3039874b15
locale_facets.tcc (money_put::do_put(long double)): Fix dimensioning of temporary buffers to avoid risk of overruns.
...
2002-03-18 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc
(money_put::do_put(long double)): Fix dimensioning of
temporary buffers to avoid risk of overruns.
(money_put::do_put(string)): Same for the buffer used to
add the grouping chars.
* testsuite/22_locale/money_put_members_char.cc: Add test06.
* testsuite/22_locale/money_put_members_wchar_t.cc: Ditto.
* include/bits/locale_facets.tcc
(collate::do_transform): Simplify.
From-SVN: r51012
2002-03-18 23:11:57 +00:00
Phil Edwards
d2caef2e8b
acinclude.m4 (GLIBCPP_CONFIGURE): Make indentation/spacing uniform.
...
2002-03-18 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_CONFIGURE): Make indentation/spacing uniform.
* configure.in: Add comments pointing the way for autoconf 2.5x.
* aclocal.m4, config.h.in, configure: Regenerate.
From-SVN: r51007
2002-03-18 21:41:02 +00:00
Philipp Thomas
f07beda95a
hash_map.h: hash, hashtable, hash_map and hash_multimap are in namespace __gnu_cxx.
...
2002-03-15 Philipp Thomas <pthomas@suse.de>
* include/backward/hash_map.h: hash, hashtable, hash_map and
hash_multimap are in namespace __gnu_cxx.
include/backward/hash_set.h: hash, hashtable, hash_set and
hash_multiset are in namespace __gnu_cxx.
include/backward/hashtable.h: hash and hashtable are in
namespace __gnu_cxx.
include/backward/rope.h: char_producer, sequence_buffer,
rope, crope and wrope are in namespace __gnu_cxx.
include/backward/slist.h: slist is in namespace __gnu_cxx.
* testsuite/backward/header_hash_map_h.cc
testsuite/backward/header_hash_set_h.cc
testsuite/backward/header_hashtable_h.cc
testsuite/backward/header_rope_h.cc
testsuite/backward/header_slist_h.cc
testsuite/backward/header_tempbuf_h.cc: New tests for
checking that we're using the correct namespace.
From-SVN: r50956
2002-03-18 10:47:15 +00:00
Jason Merrill
6afcef6bd2
re PR c++/4381 (Exceptions virtually inherited from a class cause segmentation fault at run time)
...
PR c++/4381
* libsupc++/eh_personality.cc (get_adjusted_ptr): New static fn.
(check_exception_spec): Call it. Take the thrown pointer.
(__cxa_call_unexpected): Pass it.
(PERSONALITY_FUNCTION): Likewise. Use get_adjusted_ptr.
From-SVN: r50936
2002-03-17 19:09:37 -05:00
Anthony Green
b3b77addd0
Remove useless mingw32 configury
...
From-SVN: r50819
2002-03-15 18:16:34 +00:00
Paolo Carlini
53723190aa
2002-03-15 Paolo Carlini <pcarlini@unitus.it>
...
* testsuite/22_locale/collate_members_char.cc
(test01): compare the result of collate::compare with
that of collate::transform + string::compare, not with
that of collate::transform + collate::compare.
(test01): values returned by collate::compare are
normalized, therefore test against +-1.
* testsuite/22_locale/collate_members_wchar_t.cc: Ditto.
From-SVN: r50808
2002-03-15 16:05:56 +00:00
Loren J. Rittle
56d4fe31c5
reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
...
reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/thread/pthread4.cc: Lower nominal iteration counter.
From-SVN: r50709
2002-03-13 02:53:27 +00:00
Benjamin Kosnik
f714575791
ctype_noninline.h: Cast to unsigned char.
...
2002-03-12 Benjamin Kosnik <bkoz@redhat.com>
Per Liboriussen <liborius@stofanet.dk>
* config/os/gnu-linux/bits/ctype_noninline.h: Cast to
unsigned char.
* config/os/gnu-linux/bits/ctype_inline.h: Same.
* config/os/irix/irix6.5/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.5/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.7/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
* testsuite/22_locale/ctype_members_char.cc (main): Add tests.
Co-Authored-By: Per Liboriussen <liborius@stofanet.dk>
From-SVN: r50708
2002-03-13 02:32:08 +00:00
Benjamin Kosnik
fcaa810173
basic_string.tcc (string::_S_construct(_InIter, _InIter, const _Alloc&, forward_iterator_tag): Check for null.
...
2002-03-12 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_string.tcc (string::_S_construct(_InIter,
_InIter, const _Alloc&, forward_iterator_tag): Check for null.
(string::basic_string(const _CharT* __s, const _Alloc& __a)): Same.
* testsuite/21_strings/ctor_copy_dtor.cc (test01): Re-enable, now
that memory limits are in place.
(test03): Add tests.
From-SVN: r50683
2002-03-12 22:10:34 +00:00
Benjamin Kosnik
31f93f905f
acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
...
2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/c_std/std_cwctype.h: Guard.
From-SVN: r50628
2002-03-12 02:42:11 +00:00
Benjamin Kosnik
c2b1bb034b
stl_bvector.h: Fix warning.
...
2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_bvector.h: Fix warning.
From-SVN: r50625
2002-03-12 01:43:44 +00:00
Richard Henderson
172f7610ae
* include/bits/stl_bvector.h (_Bit_type): New. Use throughout.
...
From-SVN: r50615
2002-03-11 14:36:30 -08:00
Phil Edwards
abd3d6007c
libstdc++-v3-dg.exp (libstdc++-v3-list-sourcefiles): New function.
...
2002-03-11 Phil Edwards <pme@gcc.gnu.org>
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-list-sourcefiles):
New function. Build the list of tests to run in testsuite_files.
* testsuite/libstdc++-v3.dg/dg.exp: Use it.
From-SVN: r50598
2002-03-11 21:11:07 +00:00
Phil Edwards
72c9b0629d
capacity.cc: Only explicitly instantiate on platforms with no weak support.
...
2002-03-11 Phil Edwards <pme@gcc.gnu.org>
* testsuite/21_strings/capacity.cc: Only explicitly instantiate on
platforms with no weak support.
* testsuite/27_io/ios_init.cc: Likewise.
From-SVN: r50597
2002-03-11 21:08:06 +00:00
Paolo Carlini
c15892e05e
locale_facets.tcc (time_put::do_put): Consider sizeof(char_type) in allocating the buffer.
...
2002-03-10 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (time_put::do_put):
Consider sizeof(char_type) in allocating the buffer.
* include/bits/locale_facets.tcc (collate::do_tranform):
Remove redundant variable.
From-SVN: r50553
2002-03-10 23:51:31 +00:00
Ulrich Drepper
a10e3b428c
2002-03-09 Ulrich Drepper <drepper@redhat.com>
...
Paolo Carlini <pcarlini@unitus.it>
* config/locale/generic/collate_members.cc
(collate<char,wchar_t>::_M_compare_helper): normalize
values returned by strcoll and wcscoll.
* config/locale/gnu/collate_members.cc
(collate<char,wchar_t>::_M_compare_helper): ditto
for __strcoll_l and __wcscoll_l.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r50551
2002-03-10 23:48:25 +00:00
Anthony Green
660bdf3605
Fix mingw32 cross builds.
...
From-SVN: r50541
2002-03-10 19:28:05 +00:00
Paolo Carlini
32c1620024
locale_facets.tcc (collate::do_transform): Rewrite to fix problems with long transformed strings.
...
2002-03-09 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (collate::do_transform):
Rewrite to fix problems with long transformed strings.
From-SVN: r50500
2002-03-09 16:44:34 +00:00
Benjamin Kosnik
1fa4bed7b5
c_locale_generic.cc: Move to...
...
2002-03-08 Benjamin Kosnik <bkoz@redhat.com>
* c_locale_generic.cc: Move to...
* generic/c_locale.cc
* c_locale_generic.h: Move to...
* generic/c_locale.h
* codecvt_specializations_generic.h: Move to...
* generic/codecvt_specializations.h
* collate_members_generic.cc: Move to...
* generic/collate_members.cc
* ctype_members_generic.cc: Move to...
* generic/ctype_members.cc
* messages_members_generic.cc: Move to...
* generic/messages_members.cc
* messages_members_generic.h: Move to...
* generic/messages_members.h
* moneypunct_members_generic.cc: Move to...
* generic/monetary_members.cc
* numpunct_members_generic.cc: Move to...
* generic/numeric_members.cc
* time_members_generic.cc: Move to...
* generic/time_members.cc
* c_locale_gnu.cc: Move to...
* gnu/c_locale.cc
* c_locale_gnu.h: Move to...
* gnu/c_locale.h
* collate_members_gnu.cc: Move to...
* gnu/collate_members.cc
* ctype_members_gnu.cc: Move to...
* gnu/ctype_members.cc
* messages_members_gnu.cc: Move to...
* gnu/messages_members.cc
* messages_members_gnu.h: Move to...
* gnu/messages_members.h
* moneypunct_members_gnu.cc: Move to...
* gnu/monetary_members.cc
* numpunct_members_gnu.cc: Move to...
* gnu/numeric_members.cc
* time_members_gnu.cc: Move to...
* gnu/time_members.cc
* c_locale_ieee_1003.1-200x.cc: Move to...
* ieee_1003.1-2001/c_locale.cc
* c_locale_ieee_1003.1-200x.h: Move to...
* ieee_1003.1-2001/c_locale.h
* codecvt_specializations_ieee_1003.1-200x.h: Move to...
* ieee_1003.1-2001/codecvt_specializations.h
* messages_members_ieee_1003.1-200x.cc: Move to...
* ieee_1003.1-2001/messages_members.cc
* messages_members_ieee_1003.1-200x.h: Move to...
* ieee_1003.1-2001/messages_members.h
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Make consistent.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/Makefile.am (sources): Change to monetary and numeric.
* src/Makefile.in: Regenerate.
* docs/html/configopts.html: Update to ieee_1003.1-2001.
From-SVN: r50472
2002-03-09 02:16:36 +00:00
Scott Snyder
44087988dc
locale_facets.tcc (num_put::_M_convert_float): Allow one more digit of precision.
...
2002-03-08 scott snyder <snyder@fnal.gov>
libstdc++/5875
* include/bits/locale_facets.tcc (num_put::_M_convert_float):
Allow one more digit of precision.
* testsuite/27_io/ostream_inserter_arith.cc: Test that we can
From-SVN: r50471
2002-03-09 02:12:30 +00:00
Benjamin Kosnik
8497934433
std_limits.h: Move static const data members out of generic template...
...
2002-03-08 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_limits.h: Move static const data members out of
generic template, into base class __numeric_limits_base.
* src/limits.cc: Add definitions.
* config/linker-map.gnu: Add __numeric_limits_base.
* testsuite/18_support/numeric_limits.cc: Declare test in scope.
From-SVN: r50447
2002-03-08 17:59:14 +00:00
Benjamin Kosnik
41b4d44bac
stl_alloc.h: Add extern implicit allocator instantiations.
...
2002-03-07 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_alloc.h: Add extern implicit allocator
instantiations.
* include/bits/basic_string.tcc: Tweak.
* include/bits/locale_facets.tcc: Remove default args. Add
has_facet, use_facet extern instantiations.
* src/stl-inst.cc: Add explicit instantiation.
* src/locale-inst.cc: Clean. Remove locale member template
instantiations.
* testsuite/22_locale/operators.cc (test02): Enable.
From-SVN: r50426
2002-03-08 06:05:21 +00:00
Benjamin Kosnik
d3d526aca6
stl_tree.h (_S_rb_tree_red): Make enum.
...
2002-03-06 Benjamin Kosnik <bkoz@redhat.com>
Stephen M. Webb <stephen.webb@bregmasoft.com>
* include/bits/stl_tree.h (_S_rb_tree_red): Make enum.
(_S_rb_tree_black): Make enum.
Clean. Format.
* include/bits/stl_bvector.h (__WORD_BIT): To _M_word_bit, enum.
* include/bits/stl_algo.h (__stl_chunk_size): _M_chunk_size, enum.
(__stl_threshold): _M_threshold, enum.
* src/stl-inst.cc: Same.
* config/linker-map.gnu: Remove.
* testsuite/23_containers/vector_bool.cc: New.
Co-Authored-By: Stephen M. Webb <stephen.webb@bregmasoft.com>
From-SVN: r50393
2002-03-07 06:53:23 +00:00
Phil Edwards
037cfe71e0
user.cfg.in: Also document deprecated entries.
...
2002-03-06 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/user.cfg.in: Also document deprecated entries.
* docs/html/Makefile: Example rule to rebuild porting-howto.html.
* docs/html/17_intro/howto.html: "gcc"->"GCC" changes, when
referring to the collection as a whole. New section on which macros
can be redefined by the user.
* docs/html/19_diagnostics/howto.html: Update note for concepts.
* docs/html/20_util/howto.html: Update link to SGI.
* docs/html/faq/index.html: Update snapshot versions. New entry
on why g++ (but not gcc) must currently predefine certain macros.
* docs/html/faq/index.txt: Regenerated.
* include/bits/basic_string.h (basic_string::_S_construct): Fix
names in declaration.
(basic_string::compare): These are no longer optional.
* include/bits/ostream.tcc: Tweak closing brace placement.
* include/bits/stl_algo.h: Lots of initial doxygen comment hooks.
* include/std/std_sstream.h: Fix typo in comment.
* include/bits/locale_facets.tcc: Remove unneeded header inclusion.
* src/locale.cc: Likewise.
From-SVN: r50376
2002-03-06 21:22:56 +00:00
Phil Edwards
d95336cf37
re PR libstdc++/5734 (2 extensions (empty push_back() and is_sorted()) are not documented)
...
2002-03-06 Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/5734
* include/bits/stl_vector.h (vector::push_back()): Guard with
_GLIBCPP_DEPRECATED.
From-SVN: r50375
2002-03-06 20:08:18 +00:00
Phil Edwards
de53cb7506
c++config: Fix misplaced leading blanks on first line.
...
2002-03-06 Phil Edwards <pme@gcc.gnu.org>
* include/bits/c++config: Fix misplaced leading blanks on first line.
From-SVN: r50365
2002-03-06 18:37:39 +00:00
Benjamin Kosnik
251a817e23
002-03-05 Benjamin Kosnik <bkoz@redhat.com>
...
* docs/html/17_intro/RELEASE-NOTES: Fix usage.
* README (libmath): Make clear.
From-SVN: r50331
2002-03-05 21:14:20 +00:00
Jakub Jelinek
d7ac744e9f
acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Check for version script globbing in ld.
...
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Check for version
script globbing in ld.
* aclocal.m4: Rebuilt.
* configure: Rebuilt.
From-SVN: r50330
2002-03-05 22:12:17 +01:00
Benjamin Kosnik
c01bfdbf7c
RELEASE-NOTES: Update.
...
2002-03-05 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/17_intro/RELEASE-NOTES: Update.
* README: Format subdirectories.
From-SVN: r50326
2002-03-05 20:16:09 +00:00
Paolo Carlini
84eb48794c
2002-03-05 Paolo Carlini <pcarlini@unitus.it>
...
libstdc++/5816
* include/bits/locale_facets.tcc
(num_get::_M_extract_float): Fix the parsing of __dec, since
the standard prescribes that if no grouping characters are
seen, no grouping check is applied.
* testsuite/22_locale/num_get_members_char.cc: Add test05
distilled from the PR.
* testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
From-SVN: r50317
2002-03-05 12:09:45 +00:00
Craig Rodrigues
b890704b15
porting-howto.xml: Refer to http://www.oasis-open.org for docbookx.dtd.
...
2002-03-04 Craig Rodrigues <rodrigc@gcc.gnu.org>
* docs/html/17_intro/porting-howto.xml: Refer to
http://www.oasis-open.org for docbookx.dtd.
* docs/html/17_intro/porting-howto.html: Regenerated.
From-SVN: r50291
2002-03-04 22:58:50 +00:00
Phil Edwards
28ced9f821
Add missing PR tag for previous commit.
...
From-SVN: r50260
2002-03-03 17:52:41 +00:00
Phil Edwards
798355a229
std_sstream.h: Remove trailing spaces.
...
2002-03-03 Phil Edwards <pme@gcc.gnu.org>
* include/std/std_sstream.h: Remove trailing spaces.
(basic_stringbuf::_M_stringbuf_init): Also check for ios_base::app.
* testsuite/27_io/stringbuf.cc (test05, test06): New tests.
From-SVN: r50258
2002-03-03 17:48:42 +00:00
Paolo Carlini
658499e7b4
num_get_members_char.cc (test04): Use a named locale expecting grouping (de_DE).
...
2002-03-02 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/num_get_members_char.cc (test04):
Use a named locale expecting grouping (de_DE).
* testsuite/22_locale/num_get_members_wchar_t.cc (test04):
Ditto.
* testsuite/27_io/ios_manip_basefield.cc (test01):
Extend coverage, uniform treatment of hexs and octs.
From-SVN: r50234
2002-03-02 21:32:56 +00:00
Richard Henderson
e38ff265da
linker-map.gnu: Export operator new with unsigned long, and with std::nothrow_t.
...
* config/linker-map.gnu: Export operator new with unsigned long,
and with std::nothrow_t. Likewise operator delete.
From-SVN: r50176
2002-02-28 17:27:57 -08:00
Paolo Carlini
694d519fb0
locale_facets.tcc (num_get::_M_extract_int): Admit grouping for octals and hexadecimals too.
...
2002-02-28 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (num_get::_M_extract_int):
Admit grouping for octals and hexadecimals too.
* testsuite/22_locale/num_get_members_char.cc: Add test04.
(test01): Tweak "." -> "," in void* test.
* testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
* testsuite/27_io/ios_manip_basefield.cc: Remove static keyword.
* testsuite/27_io/ios_manip_fmtflags.cc: Remove two of them.
From-SVN: r50162
2002-02-28 21:16:45 +00:00
Paolo Carlini
bded68b108
ios_manip_basefield.cc (test01): Fix for 64 bit machines.
...
2002-02-27 Paolo Carlini <pcarlini@unitus.it>
* testsuite/27_io/ios_manip_basefield.cc (test01):
Fix for 64 bit machines.
From-SVN: r50111
2002-02-27 19:54:32 +00:00
Benjamin Kosnik
3af7d37f67
basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
...
2002-02-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
Adjust comment.
* include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
(basic_ios::_M_fill_init): New.
(basic_ios::fill()): Delay dealing with _M_fill.
Adjust comment.
* testsuite/27_io/ios_init.cc (test02): Adjust testcase.
From-SVN: r50077
2002-02-27 01:01:59 +00:00
Benjamin Kosnik
ac39fabb8b
basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
...
2002-02-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
Adjust comment.
* include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
(basic_ios::_M_fill_init): New.
(basic_ios::fill()): Deal with _M_fill lazily.
Adjust comment.
* testsuite/27_io/ios_init.cc (test02): Adjust testcase.
From-SVN: r50076
2002-02-27 01:01:31 +00:00
Loren J. Rittle
79d6ba0bee
Makefile.am (thread_target_headers): Unconditionally stage and install gthr-posix.h.
...
* include/Makefile.am (thread_target_headers): Unconditionally
stage and install gthr-posix.h.
(${target_builddir}/gthr-posix.h): New rule cloned off
${target_builddir}/gthr-default.h.
(${target_builddir}/gthr-default.h): Support chained inclusion
of gthr support headers.
* include/Makefile.in: Rebuilt.
From-SVN: r50069
2002-02-26 23:02:52 +00:00
Paolo Carlini
2d13abcf86
locale_facets.tcc (num_put::_M_widen_int): Group all the integral types, not only decs.
...
2002-02-26 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (num_put::_M_widen_int):
Group all the integral types, not only decs.
* testsuite/27_io/ios_manip_basefield.cc (test01): Tweak existing
tests, add a few more.
From-SVN: r50057
2002-02-26 20:56:24 +00:00
Benjamin Kosnik
1bc59af523
ios.cc (ios_base::~ios_base): Tweak.
...
2002-02-25 Benjamin Kosnik <bkoz@redhat.com>
* src/ios.cc (ios_base::~ios_base): Tweak.
(ios_base::_M_call_callbacks): Deal with null __p.
(ios_base::ios_base): Set _M_callbacks.
* include/bits/basic_ios.tcc (basic_ios::init): Adjust comment.
* testsuite/27_io/ios_init.cc (test02): Fix.
* mkcheck.in (static_fail): Failed links go to output file.
From-SVN: r50032
2002-02-26 04:55:48 +00:00
Phil Edwards
14d6758650
index.html: Update.
...
2002-02-25 Phil Edwards <pme@gcc.gnu.org>
* docs/html/faq/index.html: Update.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r50020
2002-02-25 05:24:53 +00:00
Phil Edwards
9aa4369841
acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Fix comment.
...
2002-02-22 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Fix comment.
* aclocal.m4: Regenerate.
* docs/html/configopts.html: Document --enable-symvers.
* config/linker-map.gnu: Break libsupc++ symbols out to their own tag.
From-SVN: r49977
2002-02-22 23:45:28 +00:00
Philipp Thomas
0bc1e80dca
tempbuf.h: get_temporary_buffer and return_temporary_buffer are in namespace std...
...
2002-02-22 Philipp Thomas <pthomas@suse.de>
* include/backward/tempbuf.h: get_temporary_buffer and
return_temporary_buffer are in namespace std, not in __gnu_cxx.
From-SVN: r49973
2002-02-22 21:23:09 +00:00
Benjamin Kosnik
ab3bc736d9
configure.in (target_alias): Default to yes.
...
2002-02-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (target_alias): Default to yes.
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared
libgcc to default case.
From-SVN: r49959
2002-02-22 11:36:26 +00:00
Phil Edwards
c98b201bd9
acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Also check version.
...
2002-02-20 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Also check version.
(GLIBCPP_ENABLE_SYMVERS): Redo logic, use linker version.
* configure.in (GLIBCPP_ENABLE_SYMVERS): Move later in the script.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config/linker-map.dummy: New file. Contains nothing useful.
From-SVN: r49913
2002-02-20 22:10:39 +00:00
Benjamin Kosnik
04fc13943f
money_put_members_char.cc: Fix.
...
2002-02-20 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/money_put_members_char.cc: Fix.
* testsuite/22_locale/money_put_members_wchar_t.cc: Fix.
* testsuite/27_io/standard_manipulators.cc: New file.
* testsuite/27_io/ios_manip_basefield.cc: Check results, now failing.
* testsuite/27_io/ios_manip_fmtflags.cc: Use locale::classic().
From-SVN: r49910
2002-02-20 21:06:42 +00:00
Danny Smith
be6efd9f31
2002-02-20 Danny Smith <dannysmith@users.sourceforge.net>
...
* config/os/mingw32/bits/ctype_noninline.h
(ctype<char>::ctype): Remove default args from parm list.
* config/os/djgpp/bits/ctype_noninline.h: Same.
From-SVN: r49900
2002-02-20 17:18:00 +00:00
Benjamin Kosnik
0d223e3a4e
std_iomanip.h: Inline, tweaks.
...
2002-02-19 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_iomanip.h: Inline, tweaks.
* config/linker-map.gnu: Remove hacks.
* testsuite/21_strings/capacity.cc: Add explicit instantiations.
* testsuite/27_io/ios_init.cc: Same.
* testsuite/22_locale/money_get_members_char.cc (test07): Fix.
* testsuite/22_locale/money_get_members_wchar_t.cc (test07): Same.
From-SVN: r49884
2002-02-20 00:58:17 +00:00
Benjamin Kosnik
9b41c37048
linker-map.gnu: Export global vtable, typeinfo, guard variable, and thunk info as per CXXABI docs.
...
2002-02-19 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu: Export global vtable, typeinfo, guard
variable, and thunk info as per CXXABI docs.
From-SVN: r49878
2002-02-19 21:47:05 +00:00
Loren J. Rittle
42ebb17f48
Makefile.am: Use CONFIG_HEADER instead of ad hoc names.
...
2002-02-19 Loren Rittle <ljrittle@acm.org>
* include/Makefile.am: Use CONFIG_HEADER instead of ad hoc names.
* include/Makefile.in: Rebuilt.
From-SVN: r49877
2002-02-19 21:37:37 +00:00
Peter Schmid
1c417030f4
collate_byname.cc (test01): Replace size4 with size3 for the string collations of str5.
...
2002-02-18 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/22_locale/collate_byname.cc (test01): Replace size4
with size3 for the string collations of str5.
From-SVN: r49857
2002-02-19 05:59:09 +00:00
Paolo Carlini
577f406186
locale_facets.tcc (money_put::do_put): For the space field use __fill instead of ' ', uniformly.
...
2002-02-18 Paolo Carlini <pcarlini@unitus.it>
libstdc++/5708
* include/bits/locale_facets.tcc (money_put::do_put):
For the space field use __fill instead of ' ', uniformly.
* testsuite/22_locale/money_put_members_char.cc:
Add test05 distilled from PR.
(test01-02-03): Trim some '*' to ' '.
* testsuite/22_locale/money_put_members_wchar_t.cc: Ditto.
From-SVN: r49847
2002-02-18 21:23:26 +00:00
Loren J. Rittle
3fcfe88d19
Makefile.am (thread_builddir): Remove (map all existing uses to target_builddir).
...
libstdc++/5697
* include/Makefile.am (thread_builddir): Remove (map all
existing uses to target_builddir).
(thread_headers): Rename to...
(thread_target_headers): ...this.
(stamp-thread): Remove.
(stamp-target): Correctly state the position as built.
Update all dependencies to match the new reality. Remove all
dependency calculations on directories.
* include/Makefile.in: Rebuilt.
From-SVN: r49846
2002-02-18 20:23:56 +00:00
Benjamin Kosnik
3b79452813
locale_facets.tcc: Add pragma GCC system_header.
...
2002-02-16 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc: Add pragma GCC system_header.
* include/bits/fstream.tcc: Same.
* include/bits/sstream.tcc: Same.
* include/bits/ostream.tcc: Same.
* include/bits/istream.tcc: Same.
* include/bits/streambuf.tcc: Same.
* include/bits/basic_ios.tcc: Same.
* include/bits/basic_string.tcc: Same.
From-SVN: r49809
2002-02-16 19:33:43 +00:00
Benjamin Kosnik
b4cce2533b
std_iosfwd.h: Don't guard typedefs with _GLIBCPP_USE_WCHAR_T
...
2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_iosfwd.h: Don't guard typedefs with
_GLIBCPP_USE_WCHAR_T
* include/bits/stringfwd.h: Same.
From-SVN: r49800
2002-02-16 02:41:10 +00:00
Benjamin Kosnik
c7bbe0c45e
locale.cc (moneypunct_byname): Remove definitions.
...
2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
* src/locale.cc (moneypunct_byname): Remove definitions.
* include/std/std_streambuf.h (streambuf::operator=): Return.
From-SVN: r49799
2002-02-16 00:50:58 +00:00
Benjamin Kosnik
a32e3c097e
Tune for size.
...
2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
Tune for size.
* src/string-inst.cc (string::_Rep::_S_terminal): Remove redundant
explicit instantiation.
(string::_Rep::_S_max_size): Same.
* include/bits/basic_string.tcc: Add extern explicit
instantiations for string, wstring.
* include/bits/basic_ios.tcc: Add extern explicit instantiations
for ios, wios.
* include/bits/streambuf.tcc: Same, for streambuf, wstreambuf.
* include/bits/istream.tcc: Same, for istream, wistream.
* include/bits/ostream.tcc: Same for ostream, wostream, iostream,
wiostream.
* include/bits/sstream.tcc: Same, for stringbuf, wstringbuf,
istringstream, wistringstream, ostringstream, wostringstream,
stringstream, wstringstream.
* include/bits/fstream.tcc: Same, for filebuf, wfilebuf, ifstream,
wifstream, ofstream, wofstream, fstream, wfstream.
* src/misc-inst.cc: Correct comments.
Add iomanip instantiations for wide streams.
* include/std/std_iomanip.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/std/std_streambuf.h: Correct
_GLIBCPP_FULLY_COMPLIANT_HEADERS guard.
* include/std/std_sstream.h: Same.
* include/std/std_ostream.h: Same.
* include/std/std_istream.h: Same.
* include/std/std_fstream.h: Same.
* include/std/std_streambuf.h: Add definitions for private copy
ctor and assignment operator.
* include/std/std_istream.h: Remove declared but undefined copy
ctor and assignment operator. This is taken care of in ios_base,
so adding it in the derived class as well is superfluous.
* include/std/std_ostream.h: Same.
* include/bits/basic_ios.h (basic_ios::clear): Don't inline.
* include/bits/basic_ios.tcc (basic_ios::clear): Move definition here.
From-SVN: r49798
2002-02-16 00:19:13 +00:00
Benjamin Kosnik
37cea03434
linker-map.gnu: Change tag from GCC_3.1 to GLIBCPP_3.1.
...
2002-02-14 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu: Change tag from GCC_3.1 to GLIBCPP_3.1.
Add typeinfo bits. Smooth.
* aclocal.m4: Regenerate.
* configure: Same.
* src/Makefile.in: Same.
From-SVN: r49780
2002-02-15 02:21:33 +00:00
Joel Sherrill
0b46224d2b
atomicity.h: Corrected for RTEMS targets which do not have a CAS instruction.
...
2001-02-14 Joel Sherrill <joel@OARcorp.com>
* config/cpu/m68k/bits/atomicity.h: Corrected for RTEMS targets which
do not have a CAS instruction.
From-SVN: r49772
2002-02-14 18:57:38 +00:00
Phil Edwards
530539d9d9
acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): New macro, initial revision.
...
2002-02-14 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): New macro, initial revision.
* configure.in: Call it.
* config/linker-map.gnu: New file, initial incomplete revision.
* src/Makefile.am: Optionally pass version script to the linker.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/Makefile.in: Regenerate.
From-SVN: r49770
2002-02-14 18:24:13 +00:00
Benjamin Kosnik
8dba028f10
localename.cc: Remove stdexcept include.
...
2002-02-13 Benjamin Kosnik <bkoz@redhat.com>
* src/localename.cc: Remove stdexcept include.
* src/locale-inst.cc: Same.
* src/locale.cc: Same.
* src/functexcept.cc: Remove string includes.
* include/std/std_bitset.h: Remove stdexcept include.
* testsuite/23_containers/bitset_members.cc: Add stdexcept.
From-SVN: r49740
2002-02-13 18:29:12 +00:00
Benjamin Kosnik
005326029f
stl_algo (__stl_threshold): Declare external.
...
2002-02-11 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_algo (__stl_threshold): Declare external.
(__stl_chunk_size): Same.
* include/bits/stl_bvector.h (__WORD_BIT): Same.
* include/bits/stl_tree.h (_S_rb_tree_red): Same.
(_S_rb_tree_black): Same.
* src/stl-inst.cc (__stl_threshold): Define.
(__stl_chunk_size): Same.
(__WORD_BIT): Same.
(_S_rb_tree_red): Same.
(_S_rb_tree_black): Same.
* config/io/basic_file_libio.h (__basic_file): Add declarations.
* include/bits/basic_file.h: Remove.
* config/io/c_io_stdio.h: Remove _GLIBCPP_BASIC_FILE_ENCAPSULATION
Declare generic types, specialization.
* config/io/basic_file_stdio.cc: Definitions.
* config/io/c_io_libio.h: Remove _GLIBCPP_BASIC_FILE_INHERITANCE.
Declare generic types.
* include/Makefile.am (bits_headers): Remove basic_file.h.
(extra_target_headers): Change basic_file_model.h to basic_file.h.
(stamp-target): Same.
* include/bits/stl_alloc.h: Tweaks.
* include/bits/localefwd.h: Same.
From-SVN: r49697
2002-02-12 04:35:58 +00:00
Aaron W. LaFramboise
4e2f8bcf6f
locale_facets.tcc (collate::do_hash): Fix.
...
2002-02-11 Aaron W LaFramboise <AWLaFramboise@aol.com>
* include/bits/locale_facets.tcc (collate::do_hash): Fix.
* testsuite/22_locale/collate_members_char.cc (test03): New test.
* testsuite/22_locale/collate_members_wchar_t.cc (test03): Same.
From-SVN: r49682
2002-02-11 18:56:24 +00:00
Phil Edwards
02669b681e
stl_algo.h (transform (both signatures), generate_n): Use __typeof__ in concept checks.
...
2002-02-10 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_algo.h (transform (both signatures), generate_n):
Use __typeof__ in concept checks.
From-SVN: r49653
2002-02-10 09:05:46 +00:00
Jonathan Wakely
c0d8816157
stl_algo.h (__median, [...]): Doxygenate.
...
2002-02-10 Jonathan Wakely <cow@compsoc.man.ac.uk>
* include/bits/stl_algo.h (__median, for_each, find, find_if,
adjacent_find, count, count_if, search, search_n, swap_ranges,
transform, replace, replace_if, replace_copy, replace_copy_if,
generate, generate_n, remove_copy, remove_copy_if, remove, remove_if,
unique, unique_copy, reverse, reverse_copy): Doxygenate.
From-SVN: r49652
2002-02-10 09:00:41 +00:00
Benjamin Kosnik
e7d7a7a734
2002-02-08 Benjamin Kosnik <bkoz@redhat.com>
...
* include/bits/locale_facets.h
(numpunct<_CharT>::_M_initialize_numpunct): Remove definition.
(__timepunct<_CharT>::_M_initialize_timepunct): Same.
(__timepunct<_CharT>::_M_put_helper): Same.
(moneypunct<_CharT, _Intl>::_M_initialize_moneypunct): Same.
* include/bits/fstream.tcc (filebuf::underflow): Remove
__codecvt_type typedef.
(filebuf::_M_convert_to_external): Same.
From-SVN: r49614
2002-02-08 12:59:49 +00:00
Phil Edwards
8f94053d32
TODO: Update.
...
2002-02-08 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Tweak __gnu_cxx description.
* docs/doxygen/mainpage.html: Add TODO list link.
* docs/doxygen/user.cfg.in: Add @doctodo hook.
* docs/doxygen/tables.html: New file, emoty structure only.
* include/bits/stl_iterator.h: Doxygenate just about everything.
* include/bits/stl_iterator_base_funcs.h: Ditto, clean up spaces.
* include/bits/stl_iterator_base_types.h: Add notes.
From-SVN: r49608
2002-02-08 07:34:54 +00:00
Stephan Buys
ad2a4e2b47
stl_map.h: Tweak doxygen markup.
...
2002-02-07 Stephan Buys <sbproxy@icon.co.za>
* include/bits/stl_map.h: Tweak doxygen markup.
* include/bits/stl_multimap.h: Doxygenate and remove extra spaces.
* include/bits/stl_vector.h: Likewise.
From-SVN: r49602
2002-02-08 02:19:06 +00:00
Benjamin Kosnik
07814743cf
std_fstream.h (filebuf::__file_type): Change to __basic_file<char>.
...
2002-02-07 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5286
libstdc++/3860
* include/std/std_fstream.h (filebuf::__file_type): Change to
__basic_file<char>.
(filebuf::_M_convert_to_external): Declare.
* include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
codecvt bits for wide streams.
(filebuf::_M_really_overflow): Use it.
(filebuf::underflow): Use codecvt.
* config/locale/codecvt_specializations_ieee_1003.1-200x.h:
(codecvt<__enc_traits>::do_out): Deal with partial.
(codecvt<__enc_traits>::do_encoding): Return something useful.
* src/codecvt.cc (codecvt<wchar_t>::do_encoding): Return sizeof
wchar_t.
* testsuite/22_locale/codecvt_members_unicode_char.cc (test01):
Change expected encoding output.
(test02): Same.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test01): Same.
(test02): Same.
From-SVN: r49601
2002-02-08 01:34:41 +00:00
Benjamin Kosnik
3ab57fab23
basic_ios.tcc (basic_ios::narrow): Add default value.
...
2002-02-07 Benjamin Kosnik <bkoz@redhat.com>
Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
* include/bits/basic_ios.tcc (basic_ios::narrow): Add default value.
(basic_ios::widen): Same.
Co-Authored-By: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
From-SVN: r49590
2002-02-07 20:28:55 +00:00