1. 31 Jan, 2004 7 commits
    • combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine and restore it to... · 4de249d9
      2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
      
       	* combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
      	and restore it to gen_lowpart_general on exit.
      	(gen_lowpart_for_combine): Adjust all callers to go through
      	gen_lowpart.
      	* cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
      	and restore it to gen_lowpart_general on exit.
      	(gen_lowpart_if_possible): Adjust all callers to go through
      	gen_lowpart.
      	* emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
      	(gen_lowpart): Declare as pointer to function, initialized to
      	gen_lowpart_general.
      	* rtl.h (gen_lowpart): Declare as pointer to function.
      
      From-SVN: r77026
      Paolo Bonzini committed
    • bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (". · f84d109f
      	* bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
      	* calls.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* function.c: Likewise.
      	* reload1.c: Likewise.
      	* config/i386/cygming.h: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/i386/winnt.c: Likewise.
      
      From-SVN: r77025
      Kazu Hirata committed
    • re PR bootstrap/9249 (bootstrap fails with --enable-__cxa-atexit on Solaris) · 354b7da5
      2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
      
              PR bootstrap/9249
              * doc/install.texi: document --enable-__cxa_atexit option.
              * configure.ac: Disable __cxa_atexit if not supported.
              * configure: Regenerate.
      
      From-SVN: r77023
      Dara Hazeghi committed
    • ggc-zone.c (ggc_free): New function. · 9781b6da
      2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
      
      	* ggc-zone.c (ggc_free): New function.
      
      From-SVN: r77019
      Daniel Berlin committed
    • alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c, · 283334f0
      	cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
      	flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
      	ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
      	tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
      	config/alpha/alpha.c, config/alpha/alpha.h,
      	config/alpha/alpha.md, config/alpha/unicosmk.h,
      	config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
      	config/c4x/c4x-protos.h, config/c4x/c4x.md,
      	config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
      	config/frv/frvend.c, config/i386/cygming.h,
      	config/i386/djgpp.h, config/i386/emmintrin.h,
      	config/i386/gthr-win32.c, config/i386/i386-interix.h,
      	config/i386/i386-protos.h, config/i386/openbsd.h,
      	config/i386/winnt.c, config/i386/xm-mingw32.h,
      	config/i386/xmmintrin.h, config/ia64/ia64.md,
      	config/iq2000/iq2000.md, config/m32r/m32r.md,
      	config/m68k/m68k.md, config/mcore/mcore-elf.h,
      	config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
      	config/mips/iris5gas.h, config/mips/iris6.h,
      	config/mips/iris6gas.h, config/mips/linux.h,
      	config/mips/mips.md, config/mips/netbsd.h,
      	config/mips/openbsd.h, config/mips/windiss.h,
      	config/pa/fptr.c, config/rs6000/aix.h,
      	config/rs6000/altivec.h, config/rs6000/darwin.h,
      	config/rs6000/xcoff.h, config/s390/s390-protos.h,
      	config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
      	config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
      	config/sparc/sol2.h: Update copyright.
      
      From-SVN: r77018
      Kazu Hirata committed
    • Makefile.in (abs_docdir, abs_srcdir): Define. · 71cbe2c1
      gcc/
      2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Makefile.in (abs_docdir, abs_srcdir): Define.
      	(doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
      
      gcc/ada/
      2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
      	(doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
      	(doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
      
      gcc/f/
      2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (doc/g77.dvi): Use $(abs_docdir).
      
      gcc/java/
      2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (doc/gcj.dvi): Use $(abs_docdir).
      
      gcc/treelang/
      2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).
      
      From-SVN: r77017
      Kelley Cook committed
    • Daily bump. · 7e434ad4
      From-SVN: r77012
      GCC Administrator committed
  2. 30 Jan, 2004 33 commits
    • genconfig.c (main): Have CC0_P check its operand even on a target without cc0. · bfb2d661
      	* genconfig.c (main): Have CC0_P check its operand even on a
      	target without cc0.
      
      From-SVN: r77009
      Kazu Hirata committed
    • re PR c++/13693 ([tree-ssa] build failure in mipsisa64-elf) · 59445d74
              PR c++/13693
              * method.c (use_thunk): Don't force_target_expr for void thunks.
              * tree.c (build_target_expr_with_type): Assert non-void type.
              (force_target_expr): Likewise.
      
      From-SVN: r77008
      Richard Henderson committed
    • 6.cc: New. · 7c960b3d
      2004-01-30  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/21_strings/basic_string/cons/char/6.cc: New.
      	* testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
      	* testsuite/performance/21_strings/string_cons_input_iterator.cc:
      	New.
      
      From-SVN: r77006
      Paolo Carlini committed
    • alpha.c: Remove mentions of deprecates macros in comments... · bd5bd7ac
      	* config/alpha/alpha.c: Remove mentions of deprecates macros
      	in comments, remove some target-independent comments about target
      	macros, and/or add minimal function comments for target hook
      	implementations.
      	* config/avr/avr.c: Likewise.
      	* config/ia64/ia64.h: Likewise.
      	* config/ip2k/ip2k.c: Likewise.
      	* config/iq2000/iq2000.c: Likewise.
      	* config/m32r/m32r.h: Likewise.
      	* config/m68hc11/m68hc11.c: Likewise.
      	* config/mcore/mcore.c: Likewise.
      	* config/mmix/mmix.c: Likewise.
      	* config/mn10300/mn10300.c: Likewise.
      	* config/pa/pa.c: Likewise.
      	* config/pdp11/pdp11.c: Likewise.
      	* config/rs6000/rs6000.h: Likewise.
      	* config/sh/sh.c: Likewise.
      	* config/sh/sh.h: Likewise.
      	* config/sparc/sparc.c: Likewise.
      	* config/sparc/sparc.h: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/xtensa/xtensa.c: Likewise.
      
      From-SVN: r77005
      Kazu Hirata committed
    • re PR rtl-optimization/12147 (Wrong code with -O2 in context of reload) · 808ededc
      	PR optimization/12147
      	* reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
      	RELOAD_FOR_OPADDR_ADDR.
      	(reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
      	might be reused as RELOAD_FOR_OPADDR_ADDR register.
      
      From-SVN: r77003
      Ulrich Weigand committed
    • configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1. · a1ddb355
      2004-01-30  Michael Koch  <konqueror@gmx.de>
      
      	* configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
      	* configure: Regenerated.
      	* glib-2.0.m4: Removed.
      	* gtk-2.0.m4: Removed.
      	* libart.m4: Removed.
      	* pkg.m4: New file.
      
      From-SVN: r76993
      Michael Koch committed
    • Fix whitespace. · 630d42a0
      From-SVN: r76990
      David Edelsohn committed
    • reload.c (get_secondary_mem): Fix updating of secondary_memlocs_elim_used. · 98e5e087
      	* reload.c (get_secondary_mem):  Fix updating of
      	secondary_memlocs_elim_used.
      
      From-SVN: r76989
      Jan Hubicka committed
    • varasm.c (struct rtx_const, [...]): Remove. · 3234b52d
              * varasm.c (struct rtx_const, struct pool_constant): Remove.
              (MAX_RTX_HASH_TABLE): Remove.
              (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
              (first_pool, last_pool, pool_offset): Remove.
              (struct rtx_constant_pool): Split out from ...
              (struct varasm_status): ... here.  Reference one via pointer.
              (struct constant_descriptor_rtx): Merge struct pool_constant.
              (SYMHASH): Remove.
              (decode_rtx_const): Remove.
              (const_hash_rtx, compare_constant_rtx): Remove.
              (record_constant_rtx): Remove.
              (const_desc_rtx_hash, const_desc_rtx_eq): New.
              (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
              (const_rtx_hash_1, const_rtx_hash): New.
              (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
              (simplify_subtraction): Use simplify_rtx.
              (force_const_mem): Rewrite to use new data structures.
              (find_pool_constant): Likewise.
              (get_pool_constant, get_pool_constant_mark,
              get_pool_constant_for_function, get_pool_mode,
              get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
              (output_constant_pool_2): Split out from output_constant_pool.
              (output_constant_pool_1): Likewise.  Use new pool datastructures.
              (output_constant_pool): Zap entire pool datastructure.
              (mark_constant): Use new pool datastructures.
              (mark_constants): Use for_each_rtx.
              (mark_constant_pool): Use new pool datastructures.
      
      From-SVN: r76985
      Richard Henderson committed
    • Remove #if 0. Copy operands[1] to pseudo for simplify_gen_subreg. · be77d9e7
      OKed by David Edehlson.
      
      From-SVN: r76984
      Fariborz Jahanian committed
    • gcse.c (bypass_block): Fix a typo in the previous check-in to the file. · f0cad2d5
      	* gcse.c (bypass_block): Fix a typo in the previous check-in
      	to the file.
      
      From-SVN: r76981
      Kazu Hirata committed
    • allocator_thread.cc (do_loop): Don't use clear, but instead assign. · 7b1d1edf
      
      2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
      
      	* testsuite/performance/20_util/allocator_thread.cc (do_loop):
      	Don't use clear, but instead assign. Use insert.
      
      From-SVN: r76979
      Felix Yen committed
    • demangle.cc: Add instantiations. · c9732ce7
      
      2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* src/demangle.cc: Add instantiations.
      	* src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
      	* src/Makefile.in: Regenerate.
      
      From-SVN: r76978
      Benjamin Kosnik committed
    • allocator.cc: Protect _S_get_thread_id() and _S_thread_key_destr() with #ifdef __GTHREADS. · 25d24447
              * src/allocator.cc: Protect _S_get_thread_id() and
              _S_thread_key_destr() with #ifdef __GTHREADS.
      
      From-SVN: r76977
      David Edelsohn committed
    • toplev.c: Include alloc-pool.h. · 40ca90bf
      2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
      
              * toplev.c: Include alloc-pool.h.
              * Makefile.in (toplev.c): Update dependencies.
      
      From-SVN: r76976
      Andrew Pinski committed
    • Reshuffle performance testsuite. · 33e95e9d
      2004-01-30  Paolo Carlini  <pcarlini@suse.de>
      
      	Reshuffle performance testsuite.
      	* testsuite/performance/allocator.cc, allocator_map_thread.cc,
      	allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
      	cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
      	fstream_seek_write.cc, ifstream_extract_float.cc,
      	ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
      	list_create_fill_sort.cc, map_create_fill.cc,
      	narrow_widen_char.cc, narrow_widen_wchar_t.cc,
      	ofstream_insert_float.cc, ofstream_insert_int.cc,
      	string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
      	wchar_t_out.cc: Split into...
      	* testsuite/performance/20_util/allocator.cc: New.
      	* testsuite/performance/20_util/allocator_map_thread.cc: New.
      	* testsuite/performance/20_util/allocator_thread.cc: New.
      	* testsuite/performance/21_strings/string_append: New.
      	* testsuite/performance/22_locale/is_wchar_t.cc: New.
      	* testsuite/performance/22_locale/narrow_widen_char.cc: New.
      	* testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
      	* testsuite/performance/22_locale/wchar_t_in.cc: New.
      	* testsuite/performance/22_locale/wchar_t_length.cc: New.
      	* testsuite/performance/22_locale/wchar_t_out.cc: New.
      	* testsuite/performance/23_containers/container_benchmark.cc: New.
      	* testsuite/performance/23_containers/list_create_fill_sort.cc: New.
      	* testsuite/performance/23_containers/map_create_fill.cc: New.
      	* testsuite/performance/26_numerics/complex_norm.cc: New.
      	* testsuite/performance/27_io/cout_insert_int.cc: New.
      	* testsuite/performance/27_io/filebuf_copy.cc: New.
      	* testsuite/performance/27_io/filebuf_sputc.cc: New.
      	* testsuite/performance/27_io/fstream_seek_write.cc: New.
      	* testsuite/performance/27_io/ifstream_extract_float.cc: New.
      	* testsuite/performance/27_io/ifstream_extract_int.cc: New.
      	* testsuite/performance/27_io/ifstream_getline.cc: New.
      	* testsuite/performance/27_io/ofstream_insert_float.cc: New.
      	* testsuite/performance/27_io/ofstream_insert_int.cc: New.
      
      From-SVN: r76974
      Paolo Carlini committed
    • case-range1.C, [...]: New tests. · 48ef529f
             * g++.dg/ext/case-range1.C, g++.dg/ext/case-range2.C,
             g++.dg/ext/case-range3.C: New tests.
      
      From-SVN: r76973
      Michael Matz committed
    • re PR c++/13813 ([DR206] Incomplete member variables in a template.) · d0acf599
      	DR206
      	PR c++/13813
      	* g++.dg/template/member4.C: New test.
      
      From-SVN: r76971
      Giovanni Bajo committed
    • re PR c++/13813 ([DR206] Incomplete member variables in a template.) · a9f46cbb
      	DR206
      	PR c++/13813
      	* decl.c (grokdeclarator): Check immediatly type completeness for
      	non-dependent types.
      
      From-SVN: r76970
      Giovanni Bajo committed
    • combine.c (simplify_shift_const, case XOR): Be careful when commuting XOR with ASHIFTRT. · 39a44a4e
      	* combine.c (simplify_shift_const, case XOR): Be careful when
      	commuting XOR with ASHIFTRT.
      
      From-SVN: r76965
      Richard Kenner committed
    • re PR c++/13683 (bogus warning about passing non-PODs through ellipsis) · 63823931
      	PR c++/13683
      	* g++.dg/template/sizeof6.C: New test.
      
      From-SVN: r76964
      Giovanni Bajo committed
    • re PR c++/13683 (bogus warning about passing non-PODs through ellipsis) · 5840af0f
      	PR c++/13683
      	* call.c (convert_arg_to_ellipsis): Don't emit a warning if within
      	a sizeof expression.block
      
      From-SVN: r76963
      Giovanni Bajo committed
    • sparc-protos.h: Remove the prototype for sparc_builtin_saveregs. · 3e2cc1d1
      	* config/sparc/sparc-protos.h: Remove the prototype for
      	sparc_builtin_saveregs.
      	* config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
      	(TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
      	(TARGET_PROMOTE_PROTOTYPES): Likewise.
      	(TARGET_STRUCT_VALUE_RTX): Likewise.
      	(TARGET_RETURN_IN_MEMORY): Likewise.
      	(TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
      	(TARGET_STRICT_ARGUMENT_NAMING): Likewise.
      	(sparc_builtin_saveregs): Make it static.
      	(sparc_promote_prototypes): New.
      	(sparc_struct_value_rtx): Likewise.
      	(sparc_return_in_memory): Likewise.
      	* config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
      	(PROMOTE_FUNCTION_RETURN): Likewise.
      	(RETURN_IN_MEMORY): Likewise.
      	(STRUCT_VALUE): Likewise.
      	(STRUCT_VALUE_INCOMING): Likewise.
      	(EXPAND_BUILTIN_SAVEREGS): Likewise.
      	(STRICT_ARGUMENT_NAMING): Likewise.
      	(PROMOTE_PROTOTYPES): Likewise.
      
      	* config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
      
      Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
      
      From-SVN: r76961
      Kazu Hirata committed
    • re PR c/12818 (-fwritable strings triggers bad code generation) · 5e9295fa
      	PR c/12818
      	* varasm.c (const_hash_1) <STRING_CST>: Use the
      	address to compute the hash value if flag_writable_strings.
      	(compare_constant) <STRING_CST>: Compare the addresses
      	if flag_writable_strings.
      	(build_constant_desc): Do not copy the expression for a
      	STRING_CST if flag_writable_strings.
      
      From-SVN: r76958
      Eric Botcazou committed
    • * gnu/java/net/PlainSocketImpl.java · 7dcc98e2
      	(inChannelOperation): New field.
      	(isInChannelOperation): New accessor.
      	(setInChannelOperation): New modifier.
      	* gnu/java/nio/ServerSocketChannelImpl.java
      	(accept): Set and reset our server socket's PlainSocketImpl's
      	"in channel operation" indicator before and after delegating
      	the accept to our server socket.
      	* gnu/java/nio/SocketChannelImpl.java
      	(connect): Set and reset our socket's PlainSocketImpl's "in channel
      	operation" indicator before and after delegating the operation to
      	our socket.
      	(read): Likewise.
      	(write): Likewise.
      	* java/net/ServerSocket.java (implAccept): Don't throw an
      	IllegalBlockingModeException if we have a non-blocking
      	channel which initiated this accept operation.
      	* java/net/Socket.java (connect): Don't throw an
      	IllegalBlockingModeException if we have a non-blocking
      	channel which initiated this connect operation.
      	* java/nio/channels/spi/AbstractSelectableChannel.java
      	(configureBlocking): Only call implConfigureBlocking() if
      	the desired blocking mode is different from our current one.
      
      From-SVN: r76956
      Mohan Embar committed
    • basic_string.tcc (_Rep::_S_create): Never allocate a string bigger than max_size()... · d1615643
      2004-01-30  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/basic_string.tcc (_Rep::_S_create):
      	Never allocate a string bigger than max_size(); always keep
      	__capacity and __size in sync to avoid memory leaks at
      	deallocation time.
      
      From-SVN: r76955
      Paolo Carlini committed
    • alloc-pool.c: Include hashtab.h · 1e0f41c9
      
      	* alloc-pool.c: Include hashtab.h
      	(alloc_pool_descriptor): New structure
      	(alloc_pool_hash): New global variable.
      	(hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
      	(create_alloc_pool): Update statistics.
      	(free_alloc_pool): Likewise.
      	(pool_alloc): Likewise.
      	(output_info): New structure
      	(print_statistics, dump_alloc_pool_statistics): New function.
      	* alloc-pool.h (alloc_pool_def): Turn name to be constant.
      	(dump_alloc_pool_statistics): Declare.
      	* toplev.c (finalize):  Dump statistics.
      
      From-SVN: r76951
      Jan Hubicka committed
    • reload.c (secondary_memlocs_elim_used): New static variable. · 048b0d2e
      
      	* reload.c (secondary_memlocs_elim_used): New static variable.
      	(get_secondary_mem): Update it.
      	(find_reloads): Use it.
      
      From-SVN: r76950
      Jan Hubicka committed
    • reload.c (secondary_memlocs_elim_used): New static variable. · 1f2eae8d
      
      	* reload.c (secondary_memlocs_elim_used): New static variable.
      	(get_secondary_mem): Update it.
      	(find_reloads): Use it.
      
      [[Split portion of a mixed commit.]]
      
      From-SVN: r76949.2
      Jan Hubicka committed
    • * toplev.c: Fix broken checkin of 2003-12-30, again. · 80a08664
      From-SVN: r76948
      Steven Bosscher committed
    • basic_string.tcc (_S_construct(_InIterator, _InIterator, const _Alloc&,… · 690495b0
      basic_string.tcc (_S_construct(_InIterator, _InIterator, const _Alloc&, input_iterator_tag)): Simplify the double loop, streamline.
      
      2004-01-30  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/basic_string.tcc (_S_construct(_InIterator,
      	_InIterator, const _Alloc&, input_iterator_tag)): Simplify
      	the double loop, streamline.
      
      	* include/bits/basic_string.tcc: Very minor tweaks.
      
      From-SVN: r76937
      Paolo Carlini committed
    • configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for s390*-*-* targets by… · 57116d8d
      configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for s390*-*-* targets by specifying a 'nop' insn.
      
      	* configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
      	s390*-*-* targets by specifying a 'nop' insn.
      	* configure: Regenerate.
      
      From-SVN: r76934
      Ulrich Weigand committed