1. 16 May, 2003 28 commits
  2. 15 May, 2003 12 commits
    • fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once… · e3033a22
      fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once (_M_buf_size is now the size...
      
      
      2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
      	    Nathan Myers  <ncm@cantrip.org>
      
      	* include/bits/fstream.tcc (_M_overflow): Rewrote to call
      	_M_convert_to_external only once (_M_buf_size is now the size of
      	the put area + 1 for the overflow char of a full area); call
      	_M_set_buffer instead of _M_set_indeterminate.
      	(setbuf): Don't accept a buffer smaller than 2 chars.
      	(_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
      	instead of _M_set_determinate.
      	(open): Call _M_set_buffer, instead of _M_set_indeterminate.
      	(seekoff): Likewise.
      	* include/ext/stdio_filebuf.h (stdio_filebuf(int,
      	std::ios_base::openmode, bool, size_t),
      	stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
      	Likewise.
      	* include/std/std_fstream.h (_M_set_indeterminate): Remove.
      	(_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
      	_M_buf_size - 1.
      	* include/std/std_streambuf.h: Tweak _M_out_lim comment.
      	* testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
      	into account that, for _M_buf_size == BUFSIZ == 8192, the size of
      	the put area is now BUFSIZ - 1.
      	* testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
      	that now the smallest _M_buf_size is 2 (still fails, for the same
      	reason, with 3.2.3)
      
      Co-Authored-By: Nathan Myers <ncm@cantrip.org>
      
      From-SVN: r66848
      Paolo Carlini committed
    • linux.h, [...]: Remove code protected by USE_GNULIBC_1. · 36b9c271
              * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
              code protected by USE_GNULIBC_1.
      
      From-SVN: r66847
      Richard Henderson committed
    • re PR c++/5388 (Incorrect message "operands to ?: have different types") · 9cefd2ca
              PR c++/5388
              * call.c (conditional_conversion): Don't consider implicit
              conversions if T2 is a base of T1.
              * cp-tree.h (DERIVED_FROM_P, UNIQUELY_DERIVED_FROM_P): Make boolean.
              (ACCESSIBLY_UNIQUELY_DERIVED_P, PUBLICLY_UNIQUELY_DERIVED_P): Likewise.
      
              * parser.c (cp_parser_primary_expression): Convert a static data
              member from reference.
      
      From-SVN: r66844
      Jason Merrill committed
    • call.c (build_op_delete_call): Avoid creating unnecessary types. · 8f4b394d
      	* call.c (build_op_delete_call): Avoid creating unnecessary types.
      	* class.c (instantiate_type): Remove tests for tf_no_attributes.
      	* cp-tree.h (tsubst_flags_t): Remove tf_no_attributes.
      	(COMPARE_NO_ATTRIBUTES): Remove.
      	* typeck.c (comptypes): Do not check COMPARE_NO_ATTRIBUTES.
      
      From-SVN: r66843
      Mark Mitchell committed
    • config.gcc: Purge all targets obsoleted in GCC 3.3. · 7c942e17
      	* config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
      	remove hppa*-*-mpeix* which could not be built, and prune
      	files from tmake_file= or tm_file= lists that don't exist.
      
      	* config/alpha/alpha-interix.h, config/alpha/alpha32.h
      	* config/alpha/t-interix, config/arm/conix-elf.h
      	* config/arm/t-arm-aout, config/arm/t-strongarm-coff
      	* config/arm/unknown-elf-oabi.h, config/i386/win32.h
      	* config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
      	* config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
      	* config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
      	* config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
      	* config/m68k/m68k-psos.h, config/m68k/mot3300.h
      	* config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
      	* config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
      	* config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
      	* config/m68k/t-mot3300, config/m68k/t-mot3300-gald
      	* config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
      	* config/m68k/tower-as.h, config/m68k/tower.h
      	* config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
      	* config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
      	* config/m88k/m88k-protos.h, config/m88k/m88k.c
      	* config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
      	* config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
      	* config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
      	* config/mips/rtems64.h, config/mips/sni-gas.h
      	* config/mips/sni-svr4.h, config/mips/t-ecoff
      	* config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
      	* config/mn10200/mn10200.c, config/mn10200/mn10200.h
      	* config/mn10200/mn10200.md, config/mn10200/t-mn10200
      	* config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
      	* config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
      	* config/romp/romp-protos.h, config/romp/romp.c
      	* config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
      	* config/rs6000/aix3newas.h, config/rs6000/mach.h
      	* config/sparc/bsd.h, config/sparc/hal.h
      	* config/sparc/linux-aout.h, config/sparc/lynx-ng.h
      	* config/sparc/lynx.h, config/sparc/netbsd.h
      	* config/sparc/sp86x-aout.h, config/sparc/splet.h
      	* config/sparc/sun4gas.h, config/sparc/sun4o3.h
      	* config/sparc/sunos4.h, config/sparc/t-chorus-elf
      	* config/sparc/t-halos, config/sparc/t-sparcbare
      	* config/sparc/t-splet, config/sparc/t-sunos41
      	* config/v850/rtems.h: Delete file.
      
      From-SVN: r66842
      Zack Weinberg committed
    • rs6000-protos.h (function_value): Protoize. · a6ebc39a
      2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
      
              * config/rs6000/rs6000-protos.h (function_value): Protoize.
      
              * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
      
              * config/rs6000/rs6000.c (rs6000_function_value): New.
      
      From-SVN: r66841
      Aldy Hernandez committed
    • hex.c (_hex_value): Make this unsigned. · 49a19cfd
      libiberty/ChangeLog:
      2003-05-14  Jim Blandy  <jimb@redhat.com>
      
      	* hex.c (_hex_value): Make this unsigned.
      	(hex_value): Update documentation for new return type.  hex_value
      	now expands to an unsigned int expression, to avoid unexpected
      	sign extension when we store it in a bfd_vma, which is larger than
      	int on some platforms.
      	* functions.texi: Regenerated.
      
      include/ChangeLog:
      2003-05-14  Jim Blandy  <jimb@redhat.com>
      
      	* libiberty.h (hex_value): Make the value an unsigned int, to
      	avoid unexpected sign-extension when cast to unsigned types larger
      	than int --- like bfd_vma, on some platforms.
      	(_hex_value): Update declaration.
      
      From-SVN: r66840
      Jim Blandy committed
    • arm.c (arm_is_xscale): Rename to arm_arch_xscale. · 4b3c2e48
      2003-05-15  Philip Blundell  <philb@gnu.org>
      
      	* config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
      	All uses updated.
      	(arm_tune_xscale): New variable.
      	(arm_override_options): Set it.
      	(arm_adjust_cost): Use it in place of arm_arch_xscale.
      	(arm_gen_load_multiple): Likewise.
      	(arm_gen_store_multiple): Likewise.
      	* config/arm/arm.md (is_xscale): Likewise.
      	* config/arm/arm.h (arm_tune_xscale): Declare.
      
      From-SVN: r66839
      Philip Blundell committed
    • re PR target/10730 ([arm] -O2 generates invalid asm) · c75a3ddc
      2003-05-15  Philip Blundell  <philb@gnu.org>
      
      	PR target/10730
      	* config/arm/arm.c (adjacent_mem_locations): Reject offsets
      	involving invalid constants.
      
      From-SVN: r66838
      Philip Blundell committed
    • re PR c++/8385 (typeof(...) as template arg) · dffbbe80
      	PR c++/8385
      	* g++.dg/ext/typeof5.C: New test.
      
      	PR c++/8385
      	* semantics.c (finish_typeof): Refine type-dependency check.
      
      From-SVN: r66835
      Mark Mitchell committed
    • * pa.c (hppa_expand_prologue): Remove blockage. · 411f7850
      From-SVN: r66834
      John David Anglin committed