Skip to content
Snippets Groups Projects
  1. May 16, 2003
  2. May 15, 2003
    • Paolo Carlini's avatar
      fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once... · e3033a22
      Paolo Carlini authored
      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: default avatarNathan Myers <ncm@cantrip.org>
      
      From-SVN: r66848
      e3033a22
    • Richard Henderson's avatar
      linux.h, [...]: Remove code protected by USE_GNULIBC_1. · 36b9c271
      Richard Henderson authored
              * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
              code protected by USE_GNULIBC_1.
      
      From-SVN: r66847
      36b9c271
    • Jason Merrill's avatar
      re PR c++/5388 (Incorrect message "operands to ?: have different types") · 9cefd2ca
      Jason Merrill authored
              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
      9cefd2ca
    • Mark Mitchell's avatar
      call.c (build_op_delete_call): Avoid creating unnecessary types. · 8f4b394d
      Mark Mitchell authored
      	* 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
      8f4b394d
    • Zack Weinberg's avatar
      config.gcc: Purge all targets obsoleted in GCC 3.3. · 7c942e17
      Zack Weinberg authored
      	* 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
      7c942e17
    • Aldy Hernandez's avatar
      rs6000-protos.h (function_value): Protoize. · a6ebc39a
      Aldy Hernandez authored
      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
      a6ebc39a
    • Jim Blandy's avatar
      hex.c (_hex_value): Make this unsigned. · 49a19cfd
      Jim Blandy authored
      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
      49a19cfd
    • Philip Blundell's avatar
      arm.c (arm_is_xscale): Rename to arm_arch_xscale. · 4b3c2e48
      Philip Blundell authored
      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
      4b3c2e48
    • Philip Blundell's avatar
      re PR target/10730 ([arm] -O2 generates invalid asm) · c75a3ddc
      Philip Blundell authored
      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
      c75a3ddc
    • Mark Mitchell's avatar
      re PR c++/8385 (typeof(...) as template arg) · dffbbe80
      Mark Mitchell authored
      	PR c++/8385
      	* g++.dg/ext/typeof5.C: New test.
      
      	PR c++/8385
      	* semantics.c (finish_typeof): Refine type-dependency check.
      
      From-SVN: r66835
      dffbbe80
    • John David Anglin's avatar
      * pa.c (hppa_expand_prologue): Remove blockage. · 411f7850
      John David Anglin authored
      From-SVN: r66834
      411f7850
    • Wolfgang Bangerth's avatar
    • J"orn Rennecke's avatar
      string-asm-1.c: Take __USER_LABEL_PREFIX__ into account. · ae4f397b
      J"orn Rennecke authored
      	* gcc.c-torture/execute/builtins/string-asm-1.c: Take
      	__USER_LABEL_PREFIX__ into account.
      	* gcc.c-torture/execute/builtins/string-asm-2.c: Likewise.
      
      From-SVN: r66827
      ae4f397b
    • Wolfgang Bangerth's avatar
      Remove the residuals of a previous merge conflict. · ce000d1e
      Wolfgang Bangerth authored
      From-SVN: r66826
      ce000d1e
    • Wolfgang Bangerth's avatar
      bugreport.texi: Remove most of the bug reporting instructions and merge them into bugs.html. · 486772b1
      Wolfgang Bangerth authored
              * doc/bugreport.texi: Remove most of the bug reporting
              instructions and merge them into bugs.html.
      
      From-SVN: r66825
      486772b1
    • Richard Frith-Macdonald's avatar
      Fixed getting the superclass when building class tree used for +load, would · e083f3f9
      Richard Frith-Macdonald authored
      cause extremely rare crashes
      
      Co-Authored-By: default avatarNicola Pero <n.pero@mi.flashnet.it>
      
      From-SVN: r66822
      e083f3f9
    • Matt Kraai's avatar
      sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast g_switch_value to unsigned HOST_WIDE_INT. · 2b972239
      Matt Kraai authored
      	* config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
      	g_switch_value to unsigned HOST_WIDE_INT.
      
      From-SVN: r66818
      2b972239
    • Loren J. Rittle's avatar
      * testsuite/thread/pthread4.cc: Tweak test. · b625fdb7
      Loren J. Rittle authored
      From-SVN: r66817
      b625fdb7
    • GCC Administrator's avatar
      Daily bump. · 3b3acc81
      GCC Administrator authored
      From-SVN: r66815
      3b3acc81
    • Eric Christopher's avatar
      combine.c: Fix header comments. · 72531479
      Eric Christopher authored
      2003-05-14  Eric Christopher  <echristo@redhat.com>
      
      	* combine.c: Fix header comments.
      	(distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
      	to all calls and prototype.
      
      From-SVN: r66813
      72531479
  3. May 14, 2003
    • Roger Sayle's avatar
      re PR rtl-optimization/10764 (ICE when using log(), -fast-math and optimization) · e43736ad
      Roger Sayle authored
      	PR optimization/10764
      	* config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
      	Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
      	(*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
      	add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
      	(logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
      	the corresponding *fyl2x_?fxf3 instructions.
      
      	* gcc.dg/builtins-15.c: New test case.
      
      From-SVN: r66811
      e43736ad
    • Bob Wilson's avatar
      lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59. · f42f5a1b
      Bob Wilson authored
              * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
              * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
              XCHAL_HAVE_L32R): New.
              * config/xtensa/xtensa-protos.h (non_const_move_operand,
              xtensa_load_constant, xtensa_function_prologue,
              xtensa_function_epilogue): Delete prototypes.
              (xtensa_expand_prologue): New.
              * config/xtensa/xtensa.c (frame_size_const,
              TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
              non_const_move_operand, xtensa_load_constant, xtensa_reorg,
              xtensa_function_prologue): Delete.
              (add_operand, xtensa_mem_offset): Formatting.
              (move_operand): If the const16 option is available, allow any SFmode
              and SImode constants.
              (xtensa_emit_move_sequence): Inline the former contents of
              xtensa_load_constant with modifications to handle the const16 option.
              (override_options): Add xtensa_char_to_class['W'] and set it to
              the general register class only if the const16 option is enabled.
              Fix formatting.  Disallow PIC when using the const16 option.
              (print_operand): Reorganize to switch on "letter" instead of the
              RTL code.  Add output_operand_lossage calls for invalid cases.
              Add support for 't' and 'b' letters.
              (xtensa_expand_prologue): New function to replace
              xtensa_function_prologue and xtensa_reorg.
              (xtensa_function_epilogue): Declare this as static.  Delete code
              to print the retw.n or retw instruction.
              (xtensa_return_addr): Use A0_REG instead of 0.
              (xtensa_rtx_costs): Add costs for using the const16 option.
              * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
              (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
              (TARGET_SWITCHES): Add "const16" and "no-const16".
              (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
              (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
              using the const16 option.
              (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
              (TRAMPOLINE_SIZE): Change from 49 to 59.
              (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
              (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
              when using the const16 option.
              (PREDICATE_CODES): Delete non_const_move_operand.
              * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
              UNSPECV_ENTRY.
              (movdi, movdf): If the source is a constant, always expand to a
              sequence of movsi insns.
              (movdi_internal, movdf_internal): Remove alternative using l32r insns.
              (movsi_internal, movsf_internal): Add alternative using const16 insns.
              (movsf): Add const16 support.
              (entry, prologue, epilogue): New.
              (set_frame_ptr): Add missing mode for unspec_volatile operation.
              Likewise for subsequent split pattern.
              * doc/invoke.texi (Option Summary, Xtensa Options): Document new
              "-mconst16" and "-mno-const16" options.
      
      From-SVN: r66809
      f42f5a1b
    • Richard Henderson's avatar
      ia64.c (ia64_expand_load_address): Force destination to be DImode register. · ae49d6e5
      Richard Henderson authored
              * config/ia64/ia64.c (ia64_expand_load_address): Force destination
              to be DImode register.  Merge load_symptr.
              * config/ia64/ia64.md (load_symptr): Remove.
      
      From-SVN: r66808
      ae49d6e5
    • Richard Henderson's avatar
      rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from DEFERRED_CONSTANT_P. · 2adb9af1
      Richard Henderson authored
              * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
              DEFERRED_CONSTANT_P.
              * integrate.c (copy_rtx_and_substitute): Update use.
              * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
              to the copy generated.
              (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
              of the constant to see if we should emit.
              (mark_constant): Similarly.
              (output_constant_def_contents): Set TREE_ASM_WRITTEN.
      
      From-SVN: r66807
      2adb9af1
    • David Edelsohn's avatar
      rs6000.md (movsi_internal2): Use compare for self move record condition. · bb84cb12
      David Edelsohn authored
              * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
              move record condition.
              (movdi_internal2): Same.
      
      From-SVN: r66806
      bb84cb12
    • Nathan Sidwell's avatar
      gcov-io.h (gcov_write_bytes, [...]): Remove here. · 7d63a2fa
      Nathan Sidwell authored
      	* gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
      	(GCOV_TAG_*) Force type to gcov_unsigned_t.
      	(GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
      	(struct gcov_var): Remove modified. Add start, length, offset,
      	overread. Have buffer array for libgcov.
      	(gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
      	(gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
      	* gcov-io.c (gcov_open): Set mode, do not read anything.
      	(gcov_close): Write final block.
      	 (gcov_write_block, gcov_allocate): New.
      	(gcov_write_bytes): Make static. Write or allocate buffer.
      	(gcov_write_unsigned, gcov_write_counter): Buffer can never be
      	null.
      	(gcov_write_string): Adjust.
      	(gcov_write_tag)
      	(gcov_write_length): Adjust. Flush the block.
      	(gcov_write_tag_length): Buffer can never be null.
      	(gcov_read_bytes): Make static. Read in block.
      	(gcov_sync): Moved here. Adjust.
      	(gcov_seek): Moved here. Adjust.
      	* coverage.c (read_counts_file): Adjust.
      	* gcov-dump.c (print_prefix): Add position parameter.
      	(flag_dump_positions): New flag.
      	(options, main, print_usage): Add it.
      	(dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
      	tag_summary): Adjust.
      	* gcov.c (read_graph_file, read_count_file): Adjust.
      	* libgcov.c (gcov_exit): Adjust.
      
      From-SVN: r66805
      7d63a2fa
Loading