1. 28 Nov, 2001 9 commits
    • Numeric facets cleanup. · ec9d6e9f
      
      2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>
      
      	Numeric facets cleanup.
      	* include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
      	+ and - signs.
      	(__num_base::_M_zero): Add
      	(__num_base::_M_e): Add.
      	(__num_base::_M_E): Add.
      	* include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
      	(num_get::_M_extract_float): New.
      	(num_get::_M_extract_int): New.
      	* src/locale.cc (num_get::_M_extract): Remove.
      
      	* include/bits/locale_facets.tcc (num_put::_M_insert_float):
      	Simplify, use _M_insert.
      	(num_put::do_put(bool)): Simplify, remove __pad.
      	(__pad): Remove.
      	(__pad_output): Change to __pad.
      	* include/bits/ostream.tcc: And here.
      	* src/locale-inst: Remove instantiations.
      
      	* include/bits/locale_facets.h: Move helper functions in to class
      	num_put.
      	(num_put::_M_insert_float): Same, for __output_integer.
      	(num_put::_M_insert_int): Same, for __output_float.
      	(num_put::_M_insert): New.
      	(__num_base): Add.
      	(__num_base::_S_format_float): Move
      	__build_float_format into class __num_base.
      	(__num_base::_S_format_int): Move __build_int_format into class
      	__num_base.
      	* include/bits/locale_facets.tcc (__group_digits): Change to
      	(__add_grouping): This.
      	* src/locale-inst.cc: And here. Tweak instantiations.
      	* src/misc-inst.cc: Remove instantiations.
      
      	* include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
      	for new calling conventions, move to...
      	* include/bits/locale_facets.tcc (__pad_output): Here. Adjust
      	signature to make it useful for both ostream and num_put.
      	(__pad_numeric): Remove.
      	* src/misc-inst.cc: Remove instantiations.
      	* src/locale-inst.cc: Same.
      
      	* include/bits/locale_facets.h (_Numeric_get): Remove.
       	(_Numeric_put): Remove.
      	(num_get::get(short)): Remove.
      	(num_get::get(int)): Remove.
      	(num_get::do_get(short)): Remove.
      	(num_get::do_get(int)): Remove.
      	* include/bits/istream.tcc (istream::operator>>(short)): Fix as
      	per DR 118.
      	(istream::operator>>(int)): Same.
      
      	* include/bits/locale_facets.h (_Format_cache): Remove.
      	* include/bits/locale_facets.tcc: Same.
      	* src/locale.cc: Same.
      	* src/locale-inst.cc: Same.
      	* include/bits/ostream.tcc: Same.
      	* src/ios.cc (ios_base::imbue): Remove here as well.
      
      	* testsuite/22_locale/num_get.cc: New file.
      	* testsuite/22_locale/num_get_members_char.cc: New file.
      	* testsuite/22_locale/num_get_members_wchar_t.cc: New.
      	* testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
      	* testsuite/22_locale/num_put.cc: New file.
      	* testsuite/22_locale/num_put_members_char.cc: New file.
      	* testsuite/22_locale/num_put_members_wchar_t.cc: New file.
      	* testsuite/27_io/ostream_inserter_arith.cc: Fix.
      	* testsuite/27_io/istream_extractor_arith.cc: Fix.
      
      From-SVN: r47399
      Benjamin Kosnik committed
    • basic_string.tcc (basic_string::_Rep::_S_create): Enforce allocation size… · 2883d58b
      basic_string.tcc (basic_string::_Rep::_S_create): Enforce allocation size blocking policy to reduce fragmentation and enhance...
      
      2001-11-27  Loren J. Rittle  <ljrittle@acm.org>
                  Paolo Carlini  <pcarlini@unitus.it>
      
              * include/bits/basic_string.tcc (basic_string::_Rep::_S_create):
              Enforce allocation size blocking policy to reduce
              fragmentation and enhance performance with common malloc
              implementations.
      
      Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
      
      From-SVN: r47398
      Loren J. Rittle committed
    • Numeric facets cleanup. · 86ade44c
      
      2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>
      
      	Numeric facets cleanup.
      	* include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
      	+ and - signs.
      	(__num_base::_M_zero): Add
      	(__num_base::_M_e): Add.
      	(__num_base::_M_E): Add.
      	* include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
      	(num_get::_M_extract_float): New.
      	(num_get::_M_extract_int): New.
      	* src/locale.cc (num_get::_M_extract): Remove.
      
      	* include/bits/locale_facets.tcc (num_put::_M_insert_float):
      	Simplify, use _M_insert.
      	(num_put::do_put(bool)): Simplify, remove __pad.
      	(__pad): Remove.
      	(__pad_output): Change to __pad.
      	* include/bits/ostream.tcc: And here.
      	* src/locale-inst: Remove instantiations.
      
      	* include/bits/locale_facets.h: Move helper functions in to class
      	num_put.
      	(num_put::_M_insert_float): Same, for __output_integer.
      	(num_put::_M_insert_int): Same, for __output_float.
      	(num_put::_M_insert): New.
      	(__num_base): Add.
      	(__num_base::_S_format_float): Move
      	__build_float_format into class __num_base.
      	(__num_base::_S_format_int): Move __build_int_format into class
      	__num_base.
      	* include/bits/locale_facets.tcc (__group_digits): Change to
      	(__add_grouping): This.
      	* src/locale-inst.cc: And here. Tweak instantiations.
      	* src/misc-inst.cc: Remove instantiations.
      
      	* include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
      	for new calling conventions, move to...
      	* include/bits/locale_facets.tcc (__pad_output): Here. Adjust
      	signature to make it useful for both ostream and num_put.
      	(__pad_numeric): Remove.
      	* src/misc-inst.cc: Remove instantiations.
      	* src/locale-inst.cc: Same.
      
      	* include/bits/locale_facets.h (_Numeric_get): Remove.
       	(_Numeric_put): Remove.
      	(num_get::get(short)): Remove.
      	(num_get::get(int)): Remove.
      	(num_get::do_get(short)): Remove.
      	(num_get::do_get(int)): Remove.
      	* include/bits/istream.tcc (istream::operator>>(short)): Fix as
      	per DR 118.
      	(istream::operator>>(int)): Same.
      
      	* include/bits/locale_facets.h (_Format_cache): Remove.
      	* include/bits/locale_facets.tcc: Same.
      	* src/locale.cc: Same.
      	* src/locale-inst.cc: Same.
      	* include/bits/ostream.tcc: Same.
      	* src/ios.cc (ios_base::imbue): Remove here as well.
      
      	* testsuite/22_locale/num_get.cc: New file.
      	* testsuite/22_locale/num_get_members_char.cc: New file.
      	* testsuite/22_locale/num_get_members_wchar_t.cc: New.
      	* testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
      	* testsuite/22_locale/num_put.cc: New file.
      	* testsuite/22_locale/num_put_members_char.cc: New file.
      	* testsuite/22_locale/num_put_members_wchar_t.cc: New file.
      	* testsuite/27_io/ostream_inserter_arith.cc: Fix.
      	* testsuite/27_io/istream_extractor_arith.cc: Fix.
      
      From-SVN: r47397
      Benjamin Kosnik committed
    • defaults.h (UNALIGNED_SHORT_ASM_OP, [...]): Also provide defaults when we have OBJECT_FORMAT_ROSE. · 59a64a46
      	* defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
      	UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
      	OBJECT_FORMAT_ROSE.
      
      From-SVN: r47396
      Kaveh R. Ghazi committed
    • cris.c: Tweak spacing for prototypes. · 3d556836
      	* config/cris/cris.c: Tweak spacing for prototypes.
      	(LOSE_AND_RETURN): New macro.
      	(cris_operand_lossage): New function.
      	(cris_print_index, cris_print_base): Use cris_operand_lossage
      	rather than fatal_insn.
      	(cris_print_operand, cris_print_operand_address): Use
      	LOSE_AND_RETURN rather than fatal_insn and internal_error.
      	(cris_output_addr_const): Use LOSE_AND_RETURN and
      	output_operand_lossage rather than fatal_insn and internal_error
      	for valid but unexpected rtx expressions.
      
      	* config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
      	for a SUBREG in src or dest, abort instead.
      
      From-SVN: r47395
      Hans-Peter Nilsson committed
    • * gcc.dg/20011127-1.c: New test. · fd2aba00
      From-SVN: r47394
      Hans-Peter Nilsson committed
    • top level: · e490616e
      2001-11-27  DJ Delorie <dj@redhat.com>
      	    Zack Weinberg  <zack@codesourcery.com>
      
      	When build != host, create libiberty for the build machine.
      
      	* Makefile.in (TARGET_CONFIGARGS, BUILD_CONFIGARGS): Replace
      	CONFIG_ARGUMENTS.
      	(ALL_BUILD_MODULES_LIST, BUILD_CONFIGDIRS, BUILD_SUBDIR):
      	New variables.
      	(ALL_BUILD_MODULES, CONFIGURE_BUILD_MODULES): New variables
      	and rules.
      	(all.normal): Depend on ALL_BUILD_MODULES.
      	(CONFIGURE_TARGET_MODULES rule): Use TARGET_CONFIGARGS.
      	(all-build-libiberty): Depend on configure-build-libiberty.
      
      	* configure: Calculate and substitute proper value for
      	ALL_BUILD_MODULES.
      	* configure.in: Create the build subdirectory.
      	Calculate and substitute TARGET_CONFIGARGS (formerly
      	CONFIG_ARGUMENTS); also BUILD_SUBDIR and BUILD_CONFIGARGS (new).
      
      libiberty:
      2001-11-27  Zack Weinberg  <zack@codesourcery.com>
      
      	* _doprnt.c: Moved here from gcc/doprint.c.  Adjust to build
      	in libiberty context.  Fix typo in leading comment.
      	* configure.in: Fix various AC_DEFINEs so autoheader works.
      	If any of vprintf, vsprintf, vfprintf is missing from libc,
      	then AC_REPLACE_FUNCS(_doprnt).
      
      From-SVN: r47393
      Zack Weinberg committed
    • passes.texi: Remove reference to c-dump.c. · 215e1152
      	* doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
      	doc.
      
      From-SVN: r47392
      Bryce McKinlay committed
    • explanations.html: New section, empty for now. · 7145a3dd
      2001-11-27  Phil Edwards  <pme@gcc.gnu.org>
      
      	* docs/html/explanations.html:  New section, empty for now.
      	* docs/html/17_intro/howto.html:  Cleanup.  Move unrelated link...
      	* docs/html/23_containers/howto.html:  ...to here.  Break up and
      	rewrap threading discussion to emphasize warning.  Move malloc text...
      	* docs/html/ext/howto.html:  ...to here.  New section.  Describe
      	allocators and __USE_MALLOC effects.
      	* docs/html/ext/sgiexts.html:  Mention their code.
      
      From-SVN: r47391
      Phil Edwards committed
  2. 27 Nov, 2001 22 commits
  3. 26 Nov, 2001 9 commits