1. 28 Jan, 2003 40 commits
    • TestEarlyGC.java: Added comment explaining bytecode. · f3ded1c1
      	* libjava.loader/TestEarlyGC.java: Added comment explaining
      	bytecode.
      
      From-SVN: r62047
      Tom Tromey committed
    • install.texi: Add documentation for installation into tooldirs and with DESTDIR. · 53b50ac1
      * doc/install.texi: Add documentation for installation into
      tooldirs and with DESTDIR.
      
      From-SVN: r62044
      Christian Cornelssen committed
    • config.gcc (ia64*-*-aix*): Remove. · 021aa6ed
              * config.gcc (ia64*-*-aix*): Remove.
              * config/ia64/aix.h, config/ia64/t-aix: Remove file.
              * config/ia64/unwind-aix.c: Remove file.
      
      From-SVN: r62043
      Richard Henderson committed
    • configure.in (toolexecdir, [...]): Set and AC_SUBST. · db2cd5e6
      * configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
      Remove USE_LIBDIR conditional.
      * Makefile.am (toolexecdir, toolexeclibdir): Don't override.
      * Makefile.in, configure: Rebuilt.
      
      From-SVN: r62040
      Alexandre Oliva committed
    • jargrep.c: Include xregex.h from libiberty instead of system regex.h for better portability. · 5bff4bab
      2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>
      
      	* jargrep.c: Include xregex.h from libiberty instead of
      	system regex.h for better portability.
      
      From-SVN: r62035
      Ranjit Mathew committed
    • re PR java/9254 (java::lang::Object::wait(), threads-win32.cc returns wrong return codes) · 65b8e874
      2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>
      
      	Fixes PR java/9254:
      	* include/win32-threads.h (_Jv_Mutex_t): Convert to a struct
      	additionally containing id of the owner thread as well as
      	the number of nested times the thread has acquired the mutex.
      	(_Jv_MutexInit): Initialise owner thread id and refcount to 0.
      	(_Jv_MutexDestroy): Reset owner thread id and refcount to 0.
      	(_Jv_MutexUnlock): Check if really the owner thread, reset
      	owner thread id to 0 before leaving, if leaving for the last
      	time.
      	(_Jv_MutexLock): Set owner thread id in the mutex and increment
      	refcount.
      	(_Jv_ThreadYield): Yield using a call to Sleep(0).
      	* win32-threads.cc (_Jv_CondWait): Check if really owner of
      	the passed mutex.
      	Pass handle of the broadcast event, instead of a pointer to it
      	in Win32 ResetEvent( ) call.
      	Remove incorrect return values.
      	(_Jv_CondDestroy): Close both event handles and delete
      	critical section.
      	(_Jv_CondNotify): Check if really the owner thread.
      	(_Jv_CondNotifyAll): Check if really the owner thread.
      	(_Jv_InitThreads): Change daemon_cond to a manual-reset event.
      	(really_start): Use SetEvent( ) to signal daemon_cond.
      	(_Jv_ThreadWait): Remove SignalObjectAndWait( ) and use
      	WaitForSingleObject( ) instead to wait for daemon_cond to be
      	signalled.
      
      From-SVN: r62033
      Ranjit Mathew committed
    • m68k.md (tablejump+2): Don't sign extend an address register. · c1c1d123
              * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
              register.
              * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
              * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
              * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
              * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
              * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
              * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
              * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
      
      From-SVN: r62030
      Andreas Schwab committed
    • ia64.c (ia64_rwreloc_section_type_flags): New. · 1e1bd14e
              * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
              * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
      
      From-SVN: r62028
      Richard Henderson committed
    • * Makefile.in (all-subdir, check-subdir, installcheck-subdir) · 4ce1921a
      (info-subdir, install-info-subdir, clean-info-subdir)
      (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
      (clean-subdir, distclean-subdir, maintainer-clean-subdir):
      Pass $(FLAGS_TO_PASS).
      
      From-SVN: r62013
      Christian Cornelssen committed
    • cris.c (cris_address_cost): Make static. · 75642f32
              * config/cris/cris.c (cris_address_cost): Make static.
              (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
              * config/cris/cris.h (ADDRESS_COST): Remove.
              * config/cris/cris-protos.h: Update.
      
      From-SVN: r62009
      Richard Henderson committed
    • * cse.c (find_best_addr): Kill !ADDRESS_COST code. · e37135f7
      From-SVN: r62008
      Richard Henderson committed
    • nested1.C: Test moved from ... · 4334c467
      2003-01-28  Jeffrey D. Oldham  <oldham@codesourcery.com>
      
      	* g++.dg/lookup/nested1.C: Test moved from ...
      	* g++.old-deja/g++.other/lookup24.C: ... here.
      
      From-SVN: r62007
      Jeffrey D. Oldham committed
    • regclass.c (init_reg_autoinc): New function. · 1f80c9ef
              * regclass.c (init_reg_autoinc): New function.
              (regclass): Move initialization of forbidden_inc_dec_class from
              here...
              (init_regs): to here.  Avoids reinitialization for each function,
              saving compilation time.
      
      From-SVN: r62006
      Mike Stump committed
    • cpplib.h (struct cpp_options): Add warn_deprecated field. · 9fbd3e41
              * cpplib.h (struct cpp_options): Add warn_deprecated field.
              * cppinit.c (cpp_create_reader): Turn it on by default.
              * c-opts.c (c_common_decode_option): Set it.
              * cpplib.c (do_pragma_once): Only complain about #pragma once
              if warn_deprecated is set.
      
      From-SVN: r62005
      Jason Merrill committed
    • emit-rtl.c (const_double_htab_hash): Use mode in the hash. · fe352c29
      2003-01-28  Dale Johannesen  <dalej@apple.com>
              * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
              * loop.c (scan_loop):  Move movables on -Os rich-register targets.
              * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
      
      From-SVN: r62004
      Dale Johannesen committed
    • Add ChangeLog entry for last change. · 00d29f7d
      From-SVN: r62003
      Rainer Orth committed
    • * gcc.dg/i386-cmov5.c: New test. · 69814826
      From-SVN: r62002
      Jan Hubicka committed
    • configure.in: Specifically define HAVE_BACKTRACE if building for MinGW. · e4261ef7
      2003-01-27  Ranjit Mathew  <rmathew@hotmail.com>
      
      	* configure.in: Specifically define HAVE_BACKTRACE if building
      	for MinGW.
      	* include/win32.h: Remove HAVE_BACKTRACE definition.
      	* gnu/gcj/runtime/natStackTrace.cc: Include platform.h.
      	* configure: Rebuilt.
      
      From-SVN: r62000
      Ranjit Mathew committed
    • Updated copyright year. · df87f988
      From-SVN: r61998
      Rainer Orth committed
    • * libjava.jacks/jacks.xfail: More lexer tests now pass. · 1234e738
      From-SVN: r61995
      Tom Tromey committed
    • lex.c (java_lex): Don't include UEOF as part of token. · 82b22c42
      	* lex.c (java_lex): Don't include UEOF as part of token.
      	(java_read_unicode): Error if \u sequence prematurely terminated.
      
      From-SVN: r61993
      Tom Tromey committed
    • 20010925-1.c: Changed the memcpy declaration. · bffcd064
              * gcc.c-torture/execute/20010925-1.c: Changed the
              memcpy declaration.
      
      From-SVN: r61992
      D.Venkatasubramanian committed
    • target.h (targetm.address_cost): New. · 10154ff8
      	* target.h (targetm.address_cost): New.
      	* target-def.h (TARGET_ADDRESS_COST): New.
      	(TARGET_RTX_COSTS): Uncomment.  Oops.
      	* cse.c (address_cost): Use new target hook.
      	(default_address_cost): New.
      	* output.h (default_address_cost): Declare.
      	* hooks.c (hook_int_rtx_0): New.
      	* hooks.h (hook_int_rtx_0): Declare.
      	* loop.c (combine_givs_p): Remove if 0 code.
      	* system.h (ADDRESS_COST): Poison.
      
      	* config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
      	config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
      	config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
      	config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
      	config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
      	config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
      	config/xtensa/xtensa.c, config/xtensa/xtensa.h
      	(TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
      	(ADDRESS_COST): Remove.
      
      	* config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
      	config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
      	config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
      	config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
      	config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
      	config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
      	config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
      	config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
      	config/mips/mips.c, config/mips/mips.h,
      	config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
      	config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
      	config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
      	config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
      	config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
      	config/vax/vax.c, config/vax/vax.h
      	(foo_address_cost): Make static.
      	(TARGET_ADDRESS_COST): New.
      	(ADDRESS_COST): Remove.
      
      	* config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
      	config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
      	config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
      	config/stormy16/stormy16.h
      	(ADDRESS_COST): Move code ...
      	(foo_address_cost): ... here.
      	(TARGET_ADDRESS_COST): New.
      
      	* config/m32r/m32r.c (m32r_address_cost): Remove.
      	* config/m32r/m32r-protos.h: Update.
      
      	* config/mmix/mmix.c (mmix_address_cost): Remove.
      	* config/mmix/mmix-protos.h: Update.
      
      	* config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
      	mn10300_address_cost; move unsig allocation ...
      	(mn10300_address_cost): ... here.
      	(TARGET_ADDRESS_COST): New.
      	* config/mn10300/mn10300-protos.h: Update.
      	* config/mn10300/mn10300.h (ADDRESS_COST): Remove.
      
      From-SVN: r61989
      Richard Henderson committed
    • target.h (targetm.address_cost): New. · dcefdf67
      	* target.h (targetm.address_cost): New.
      	* target-def.h (TARGET_ADDRESS_COST): New.
      	(TARGET_RTX_COSTS): Uncomment.  Oops.
      	* cse.c (address_cost): Use new target hook.
      	(default_address_cost): New.
      	* output.h (default_address_cost): Declare.
      	* hooks.c (hook_int_rtx_0): New.
      	* hooks.h (hook_int_rtx_0): Declare.
      	* loop.c (combine_givs_p): Remove if 0 code.
      	* system.h (ADDRESS_COST): Poison.
      
      	* config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
      	config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
      	config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
      	config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
      	config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
      	config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
      	config/xtensa/xtensa.c, config/xtensa/xtensa.h
      	(TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
      	(ADDRESS_COST): Remove.
      
      	* config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
      	config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
      	config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
      	config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
      	config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
      	config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
      	config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
      	config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
      	config/mips/mips.c, config/mips/mips.h,
      	config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
      	config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
      	config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
      	config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
      	config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
      	config/vax/vax.c, config/vax/vax.h
      	(foo_address_cost): Make static.
      	(TARGET_ADDRESS_COST): New.
      	(ADDRESS_COST): Remove.
      
      	* config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
      	config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
      	config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
      	config/stormy16/stormy16.h
      	(ADDRESS_COST): Move code ...
      	(foo_address_cost): ... here.
      	(TARGET_ADDRESS_COST): New.
      
      	* config/m32r/m32r.c (m32r_address_cost): Remove.
      	* config/m32r/m32r-protos.h: Update.
      
      	* config/mmix/mmix.c (mmix_address_cost): Remove.
      	* config/mmix/mmix-protos.h: Update.
      
      	* config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
      	mn10300_address_cost; move unsig allocation ...
      	(mn10300_address_cost): ... here.
      	(TARGET_ADDRESS_COST): New.
      	* config/mn10300/mn10300-protos.h: Update.
      	* config/mn10300/mn10300.h (ADDRESS_COST): Remove.
      
      From-SVN: r61988
      Richard Henderson committed
    • re PR c++/3902 ([parser] ambiguous 8.2/7) · f2ce60b8
      cp:
      	PR c++/3902
      	* parser.c (cp_parser_decl_specifier_seq): Cannot have constructor
      	inside a declarator.
      testsuite:
      	PR c++/3902
      	* g++.dg/parse/template5.C: New test.
      
      From-SVN: r61987
      Nathan Sidwell committed
    • re PR rtl-optimization/9258 (ICE in compensate_edge, at reg-stack.c:2589) · f42aadd8
      2003-01-28  Toon Moene  <toon@moene.indiv.nluug.nl>
      
      	PR fortran/9258
      	* g77.dg/pr9258: New test.
      
      From-SVN: r61984
      Toon Moene committed
    • haifa-sched.c (schedule_insn): Return necessary cycle advance after issuing the insn. · 58fb7809
      2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* haifa-sched.c (schedule_insn): Return necessary cycle advance
      	after issuing the insn.
      	(rank_for_schedule): Make a insn with /S the highest priority
      	insn.
      	(move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
      	(choose_ready): Check SCHED_GROUP_P.
      	(schedule_block): Advance cycle after issuing insn if it is
      	necessary.  Don't reorder insns if there is an insn with /S.
      	(set_priorities): Ignore schedule groups.
      
      	* sched-deps.c (remove_dependence, group_leader): Remove the
      	functions.
      	(add_dependence): Ignore schedule groups.
      	(set_sched_group_p): Don't make copy of dependencies from previous
      	insn of the schedule group.  Add anti-dependency to the previous
      	insn of the schedule group.
      	(compute_forward_dependences): Ignore schedule groups.
      
      	* sched-ebb.c (init_ready_list): Ignore schedule groups.
      
      	* sched-rgn.c (init_ready_list): Ditto.
      	(can_schedule_ready_p): Ditto.
      
      From-SVN: r61983
      Vladimir Makarov committed
    • README: Move relevant parts from README.g++. · 5db544e1
      	* README: Move relevant parts from README.g++.
      
      	* README.g++: Remove this file.
      
      From-SVN: r61982
      Gerald Pfeifer committed
    • i386.md (*movsi_1): Use movdqa to move one xmm register to another one. · 371c988b
      2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
      	register to another one.
      
      From-SVN: r61981
      Vladimir Makarov committed
    • ffi.h.in: Enable FFI_CLOSURES for x86_64. · fd2e49b2
      2003-01-28  Andrew Haley  <aph@redhat.com>
      
              * include/ffi.h.in: Enable FFI_CLOSURES for x86_64.
              * src/x86/ffi64.c (ffi_prep_closure): New.
              (ffi_closure_UNIX64_inner): New.
              * src/x86/unix64.S (ffi_closure_UNIX64): New.
      
      From-SVN: r61978
      Andrew Haley committed
    • mips.h (UNITS_PER_HWFPVALUE): Renamed from... · 447ff38f
      * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
      (UNITS_PER_FPVALUE): Defined as the width of a long double, or
      zero if no hardware floating point.
      (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
      (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
      (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
      (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
      (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
      * config/mips/mips.c (mips_arg_info): Pass TFmode values in
      even FP registers on N32 and N64.
      (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
      (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
      (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
      even-register-like alignment to 128-bit arguments.
      (save_restore_insns): Use UNITS_PER_HWFPVALUE.
      (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
      on N32 or N64.
      * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
      * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
      (TPBIT): Set to tp-bit.c.
      (tp-bit.c): Create out of fp-bit.c.
      
      From-SVN: r61977
      Alexandre Oliva committed
    • re PR c++/9433 (SegFault in dynamic_cast) · 483a5709
      libstdc++-v3:
              PR c++/9433
              * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
              with bases which are very ambiguous.
      gcc/testsuite:
              * g++.dg/abi/dcast1.C: New test.
      
      From-SVN: r61973
      Nathan Sidwell committed
    • * cse.c (cse_insn): Avoid redundant REG_EQUAL notes. · a77b7e32
      From-SVN: r61971
      Roger Sayle committed
    • sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA... · 3620944c
      	* config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
      	class contains a floating-point register, return the size of the
      	mode in half words.
      
      From-SVN: r61966
      Richard Sandiford committed
    • Add a missing change to: · 95fcd0ab
      	* gcc/doc/invoke.texi (Optimization Options): Group together
      	optional and experimental flags.  Move trapv and bounds-check
      	out of this section.  Group floating point flags together.
      	(Code Gen Options): Move trapv and bounds-check to here.
      
      From-SVN: r61964
      Gerald Pfeifer committed
    • i386.c (ix86_carry_flag_operator): New predicate. · e6e81735
       	* i386.c (ix86_carry_flag_operator):  New predicate.
       	(fcmov_operator): Fix whitespace.
       	(ix86_expand_carry_flag_compare):  Deal with floating point.
       	(ix86_expand_int_movcc): Deal with fp; update insn expansion
       	(ix86_expand_int_addcc): Likewise.
       	(ix86_expand_strlensi_unroll_1): likewsie.
       	* i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
       	* i386.md (add?i_carry_rex64): Use new predicate.
       	(sub?i3_carry_rex64): Likewise.
       	(x86_mov?icc_0_m1*): Likewise.
      
      From-SVN: r61963
      Jan Hubicka committed