Tom Tromey [Wed, 10 Apr 2002 20:36:04 +0000 (20:36 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (java/lang/Thread.h): Mark
_Jv_AttachCurrentThreadAsDaemon as friend.
* gcj/javaprims.h (_Jv_AttachCurrentThreadAsDaemon): Declare.
* gcj/cni.h (JvAttachCurrentThreadAsDaemon): New function.
* java/lang/natThread.cc (_Jv_AttachCurrentThreadAsDaemon): New
function.
* java/lang/natRuntime.cc (_load): Recognize JNI_VERSION_1_4.
* jni.cc (_Jv_JNI_GetVersion): Return JNI_VERSION_1_4.
(_Jv_JNI_InvokeFunctions): Added
_Jv_JNI_AttachCurrentThreadAsDaemon.
(_Jv_JNI_GetEnv): Handle JNI_VERSION_1_4.
(JNI_GetDefaultJavaVMInitArgs): Likewise.
(JNI_CreateJavaVM): Likewise.
(_Jv_JNI_AttachCurrentThread): Likewise.
(_Jv_JNI_AttachCurrentThread): Added `is_daemon' argument.
(_Jv_JNI_AttachCurrentThreadAsDaemon): New method.
(_Jv_JNIFunctions): Initialize new fields.
(_Jv_JNI_NewDirectByteBuffer): New function.
(_Jv_JNI_GetDirectBufferAddress): Likewise.
(_Jv_JNI_GetDirectBufferCapacity): Likewise.
* include/jni.h (JNI_VERSION_1_4): New macro.
(JNIInvokeInterface::AttachCurrentThreadAsDaemon): New field.
(_Jv_JavaVM::AttachCurrentThreadAsDaemon): New method.
(JNINativeInterface::NewDirectByteBuffer): New field.
(JNINativeInterface::GetDirectBufferAddress): New field.
(JNINativeInterface::GetDirectBufferCapacity): New field.
(_Jv_JNIEnv::NewDirectByteBuffer): New method.
(_Jv_JNIEnv::GetDirectBufferAddress): New method.
(_Jv_JNIEnv::GetDirectBufferCapacity): New method.
From-SVN: r52144
David Edelsohn [Wed, 10 Apr 2002 20:28:21 +0000 (20:28 +0000)]
* config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
From-SVN: r52142
Toon Moene [Wed, 10 Apr 2002 19:49:52 +0000 (21:49 +0200)]
c-decl.c (c_init_decl_processing): Move generation of decls for g77_integer_type_node and friends from here ...
2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
* c-decl.c (c_init_decl_processing): Move generation of
decls for g77_integer_type_node and friends from here ...
* c-common.c (c_common_nodes_and_builtins): ... to here.
From-SVN: r52141
Ulrich Weigand [Wed, 10 Apr 2002 17:56:02 +0000 (17:56 +0000)]
reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM is only used as frame pointer when...
* reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
is only used as frame pointer when frame_pointer_needed is true.
From-SVN: r52140
Lars Brinkhoff [Wed, 10 Apr 2002 17:47:24 +0000 (17:47 +0000)]
* gcc.c-torture/execute/
20020406-1.c: Declare malloc.
From-SVN: r52138
Richard Earnshaw [Wed, 10 Apr 2002 14:06:38 +0000 (14:06 +0000)]
re PR target/817 (ARM compiler generates out-of-range accesses to constant pool data)
PR target/817
* arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
for the fact that the pool entry uses two words.
(movdf_hard_insn): Similarly. Also, ADR instruction can span
1k bytes.
(movdf_soft_insn): Similarly.
(movxf_hard_insn): Adjust neg_pool_range attribute to allow
for the fact that the pool entry uses three words.
From-SVN: r52132
Jason Merrill [Wed, 10 Apr 2002 12:18:44 +0000 (08:18 -0400)]
init.c (build_member_call): For now, don't convert to intermediate base if it would cause an error.
* init.c (build_member_call): For now, don't convert to
intermediate base if it would cause an error.
From-SVN: r52129
Richard Sandiford [Wed, 10 Apr 2002 10:36:50 +0000 (10:36 +0000)]
mips.c (mips_va_arg): When using the struct version of the EABI va_list...
* config/mips/mips.c (mips_va_arg): When using the struct version
of the EABI va_list, allow arguments in the register save area to
take up less room than a stack argument.
From-SVN: r52125
Nathan Sidwell [Wed, 10 Apr 2002 09:40:18 +0000 (09:40 +0000)]
re PR c++/5507 (Overzealous implicit typename warning)
cp:
PR c++/5507
* decl.c (make_typename_type): Remove implicit typenameness.
testsuite:
PR c++/5507
* g++.dg/template/typename2.C: New test.
From-SVN: r52124
GCC Administrator [Wed, 10 Apr 2002 07:17:16 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r52122
Richard Henderson [Wed, 10 Apr 2002 07:11:32 +0000 (00:11 -0700)]
expr.c (expand_expr): Don't force into registers if EXPAND_INITIALIZER.
* expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
if EXPAND_INITIALIZER.
From-SVN: r52118
Richard Henderson [Wed, 10 Apr 2002 05:22:33 +0000 (22:22 -0700)]
alpha.md (movdi_er_maybe_g): New.
* config/alpha/alpha.md (movdi_er_maybe_g): New.
* config/alpha/alpha.c (alpha_expand_mov): Use it.
From-SVN: r52113
Alan Modra [Wed, 10 Apr 2002 03:52:22 +0000 (03:52 +0000)]
* gcc.c-torture/execute/loop-12.c: New.
From-SVN: r52111
Alan Modra [Wed, 10 Apr 2002 03:50:39 +0000 (03:50 +0000)]
re PR rtl-optimization/6233 (simple loop miscompilation)
PR optimization/6233
* rtlanal.c (pure_call_p): New function.
* rtl.h (pure_call_p): Declare.
* loop.c (prescan_loop): Use it to set has_nonconst_call.
* gcse.c (store_killed_in_insn): Use pure_call_p here too.
From-SVN: r52110
Eric Christopher [Wed, 10 Apr 2002 03:40:00 +0000 (03:40 +0000)]
mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional information to .comm directive.
2002-04-09 Eric Christopher <echristo@redhat.com>
* config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
information to .comm directive.
From-SVN: r52109
Loren J. Rittle [Wed, 10 Apr 2002 02:51:54 +0000 (02:51 +0000)]
* configure.in: Add *-*-freebsd* configurations.
From-SVN: r52107
Richard Henderson [Wed, 10 Apr 2002 02:22:20 +0000 (19:22 -0700)]
expr.c (expand_expr): Force overflows into registers.
* expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
* gcc.c-torture/compile/
20020409-1.c: New.
From-SVN: r52104
Richard Henderson [Wed, 10 Apr 2002 00:15:58 +0000 (17:15 -0700)]
basic-block.h (flow_delete_block_noexpunge): Declare.
* basic-block.h (flow_delete_block_noexpunge): Declare.
(expunge_block_nocompact): Declare.
* cfg.c (expunge_block_nocompact): Split out from ...
(expunge_block): ... here.
* cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
(flow_delete_block_noexpunge): Split out from ...
(flow_delete_block): ... here.
* cfgcleanup.c (delete_unreachable_blocks): Compact while
removing dead blocks.
* except.c (exception_handler_labels): Remove.
(exception_handler_label_map): New.
(struct eh_region): Add aka member.
(mark_ehl_map_entry, mark_ehl_map, free_region): New.
(ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
(for_each_eh_label, for_each_eh_label_1): New.
(init_eh): Register exception_handler_label_map.
(free_eh_status): Use free_region.
(find_exception_handler_labels): Use the map, not the list.
(remove_exception_handler_label): Likewise.
(maybe_remove_eh_handler): Likewise.
(remove_eh_handler): Use the region aka bitmap.
* except.h (exception_handler_labels): Remove.
(for_each_eh_label): Declare.
* jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
* loop.c (invalidate_loops_containing_label): New.
(find_and_verify_loops): Use it. Use for_each_eh_label.
* sched-rgn.c (is_cfg_nonregular): Use
current_function_has_exception_handlers.
From-SVN: r52100
Richard Henderson [Wed, 10 Apr 2002 00:14:53 +0000 (17:14 -0700)]
hashtab.c (higher_prime_number): Use 7 as minimum.
* hashtab.c (higher_prime_number): Use 7 as minimum.
(find_empty_slot_for_expand): Don't compute hash2 unless needed.
(htab_find_slot_with_hash): Likewise.
From-SVN: r52099
Loren J. Rittle [Tue, 9 Apr 2002 23:11:36 +0000 (23:11 +0000)]
gcconfig.h (DATAEND): Update comment example to match reality.
* include/private/gcconfig.h (DATAEND): Update comment example
to match reality.
From-SVN: r52098
Benjamin Kosnik [Tue, 9 Apr 2002 21:19:55 +0000 (21:19 +0000)]
localefwd.h (locale::_Impl::_M_facets): Change from pointer to vector.
2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1072
* include/bits/localefwd.h (locale::_Impl::_M_facets): Change from
pointer to vector.
Remove forward declaration of vector.
Include vector.
* include/bits/locale_facets.tcc: Remove vector include.
(use_locale): Adjust.
(has_locale): Adjust.
* src/locale.cc: Adjust.
* src/localename.cc: Same.
From-SVN: r52095
Richard Henderson [Tue, 9 Apr 2002 21:15:38 +0000 (14:15 -0700)]
sbitmap.c (sbitmap_union_of_diff, [...]): Do not return changed status.
* sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
Do not return changed status.
(sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
New functions that do return changed status.
* sbitmap.h: Update decls.
* gcse.c, lcm.c: Use _cg functions as needed.
From-SVN: r52094
J"orn Rennecke [Tue, 9 Apr 2002 20:07:15 +0000 (20:07 +0000)]
config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
* config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
(sh64-*-elf*, sh-*-rtemself*): Likewise.
* config/sh/embed_bb.c: New file.
* config/sh/embed-elf.h: New file.
* sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
(CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
__PTRDIFF_TYPE__ .
(SUBTARGET_CPP_PTR_SPEC): Don't define.
(EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
Add subtarget_asm_endian_spec.
(ASM_SPEC): Use subtarget_asm_endian_spec.
(SUBTARGET_ASM_ENDIAN_SPEC): Define.
(RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
(WCHAR_UNSIGNED): Define.
(SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
(DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
(ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
Fix value.
* sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
(sh_adjust_cost): Likewise.
sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
__PTRDIFF_TYPE__ .
(SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
(WCHAR_TYPE_SIZE): Likewise.
(ASM_SPEC): Use subtarget_asm_endian_spec.
(SH_ELF_WCHAR_TYPE): #undef/ #define.
(MAX_WCHAR_TYPE_SIZE): Don't #undef.
* config/sh/elf.h (WCHAR_UNSIGNED): #undef .
(MAX_WCHAR_TYPE_SIZE): Don't #define .
(WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
(USER_LABEL_PREFIX): Don't #undef /#define .
(DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
* config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
(SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
(ASM_SPEC): Likewise.
(SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
(CC1_SPEC): don't supply -m3 for -m4*, -m5*.
* t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
(LIB2FUNCS_EXTRA): Define.
* t-sh64 (LIB2FUNCS_EXTRA): Define.
* config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
(LIB1ASMFUNCS_CACHE): Define.
(LIB2FUNCS_EXTRA): Redefine empty.
From-SVN: r52091
Richard Henderson [Tue, 9 Apr 2002 19:45:20 +0000 (12:45 -0700)]
* reorg.c (get_branch_condition): Use reversed_comparison_code.
From-SVN: r52090
Stephane Carrez [Tue, 9 Apr 2002 18:53:50 +0000 (20:53 +0200)]
larith.asm (__map_data_section): Fix condition and optimize for size.
* config/m68hc11/larith.asm (__map_data_section): Fix condition
and optimize for size.
(__do_global_ctors): Fix pointer comparison.
(__do_global_dtors): Likewise.
From-SVN: r52086
Tom Tromey [Tue, 9 Apr 2002 17:44:32 +0000 (17:44 +0000)]
* win32.cc (_Jv_platform_initProperties): Use GetTempPath.
From-SVN: r52084
Jason Merrill [Tue, 9 Apr 2002 17:02:43 +0000 (13:02 -0400)]
re PR rtl-optimization/6189 (Regression from 3.0.x: g++ -O3 generates wrong code)
PR optimization/6189
* semantics.c (genrtl_start_function): Don't free
DECL_SAVED_FUNCTION_DATA for inline functions.
[[Split portion of a mixed commit.]]
From-SVN: r52083.2
Jason Merrill [Tue, 9 Apr 2002 17:01:59 +0000 (13:01 -0400)]
re PR rtl-optimization/6189 (Regression from 3.0.x: g++ -O3 generates wrong code)
PR optimization/6189
* semantics.c (genrtl_start_function): Don't free
DECL_SAVED_FUNCTION_DATA for inline functions.
From-SVN: r52082
David S. Miller [Tue, 9 Apr 2002 14:52:03 +0000 (07:52 -0700)]
sparc.c (sparc_extra_constraint_check): New function, implementing EXTRA_CONSTRAINTS.
2002-04-09 David S. Miller <davem@redhat.com>
* config/sparc/sparc.c (sparc_extra_constraint_check): New
function, implementing EXTRA_CONSTRAINTS. For memory constraints,
allow reloading pseudos.
* config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
* config/sparc/sparc-protos.h: Declare it.
* config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
unsigned comparison warning.
(output_restore_regs): Mark leaf_function as unused.
From-SVN: r52080
Jason Merrill [Tue, 9 Apr 2002 13:59:59 +0000 (09:59 -0400)]
init.c (build_member_call): For now, don't convert to intermediate base if it would cause an error.
* init.c (build_member_call): For now, don't convert to
intermediate base if it would cause an error.
From-SVN: r52078
Richard Kenner [Tue, 9 Apr 2002 13:41:58 +0000 (13:41 +0000)]
expr.c (is_aligning_offset): New function.
* expr.c (is_aligning_offset): New function.
(expand_expr, case COMPONENT_EXPR): Call it.
From-SVN: r52077
Benjamin Kosnik [Tue, 9 Apr 2002 08:48:33 +0000 (08:48 +0000)]
sstream.tcc: Clean up bit ops.
2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
Richard Henderson <rth@redhat.com>
* include/bits/sstream.tcc: Clean up bit ops.
* include/bits/fstream.tcc: Same.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r52070
Jakub Jelinek [Tue, 9 Apr 2002 08:00:08 +0000 (10:00 +0200)]
locale_facets.h (__num_base::_S_scale_hex): Remove.
2002-04-09 Jakub Jelinek <jakub@redhat.com>
* include/bits/locale_facets.h (__num_base::_S_scale_hex): Remove.
(__num_base::_S_scale_oct): Remove.
* src/locale.cc (__num_base::_S_scale_hex): Remove.
(__num_base::_S_scale_oct): Remove.
From-SVN: r52068
Benjamin Kosnik [Tue, 9 Apr 2002 07:35:31 +0000 (07:35 +0000)]
bitset_members.cc: New test.
2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/6124
* testsuite/23_containers/bitset_members.cc: New test.
* include/std/std_bitset.h (_Bit_count::_S_bit_count): Move..
(_S_bit_count): Here.
(_First_one::_S_first_one): Move...
(_S_first_one): Here.
Format.
* src/bitset.cc: Adjust.
* config/linker-map.gnu: Export.
From-SVN: r52066
GCC Administrator [Tue, 9 Apr 2002 07:17:26 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r52064
Hans-Peter Nilsson [Tue, 9 Apr 2002 07:08:23 +0000 (07:08 +0000)]
Fix ChangeLog date
From-SVN: r52059
Hans-Peter Nilsson [Tue, 9 Apr 2002 07:06:18 +0000 (07:06 +0000)]
re PR objc/6107 (sparc-sun-solaris2.7 gcc-3.1 extra objc testsuite failures w/-m64)
PR objc/6107
* objc/objc-api.h (struct objc_protocol_list): Change type of
member count from int to size_t.
From-SVN: r52058
Benjamin Kosnik [Tue, 9 Apr 2002 06:14:32 +0000 (06:14 +0000)]
fstream.tcc (filebuf::seekpos): Fix.
2002-04-08 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5180
* include/bits/fstream.tcc (filebuf::seekpos): Fix.
* include/std/std_fstream.h: Clean.
* include/bits/ostream.tcc: Remove extraneous variables.
* include/bits/sstream.tcc (stringbuf::seekoff): Be strict about
open modes and which modes.
(stringbuf::seekpos): Same.
* testsuite/27_io/stringbuf_virtuals.cc: New tests.
From-SVN: r52057
Bryce McKinlay [Tue, 9 Apr 2002 05:25:11 +0000 (05:25 +0000)]
re PR java/6204 (gcj generates invalid byte code)
* libjava.lang/PR6204.java, libjava.lang/PR6204.out: New test case.
* libjava.lang/PR6085.java, libjava.lang/PR6085.out: Likewise.
From-SVN: r52056
Loren J. Rittle [Tue, 9 Apr 2002 01:35:21 +0000 (01:35 +0000)]
* include/private/gcconfig.h (DATAEND): Clarify comment.
From-SVN: r52054
Hans Boehm [Tue, 9 Apr 2002 00:39:16 +0000 (00:39 +0000)]
gc_priv.h (WARN macro): Add "GC warning:" prefix.
* include/private/gc_priv.h (WARN macro): Add "GC warning:" prefix.
(GC_large_alloc_warn_interval, GC_large_alloc_warn_suppressed):
declare.
* allchblk.c (GC_allchblk_nth): Change text and support reduced
frequency for blacklist warning message.
* misc.c (GC_large_alloc_warn_interval,
GC_large_alloc_warn_suppressed): define.
(GC_init_inner): Check GC_NO_BLACKLIST_WARNING and
GC_LARGE_ALLOC_WARN_INTERVAL environment variables.
* doc/README.environment (GC_NO_BLACKLIST_WARNING): Deprecate.
(GC_LARGE_ALLOC_WARN_INTERVAL): Add documentation.
* dyn_load.c (_DYNAMIC): Move declaration to file scope.
From-SVN: r52053
Hans Boehm [Mon, 8 Apr 2002 23:59:13 +0000 (23:59 +0000)]
java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE correctly.
* src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
correctly.
* src/ia64/unix.S: Add unwind information. Fix comments.
Save sp in a way that's compatible with unwind info.
(ffi_call_unix): Correctly restore sp in all cases.
* src/ia64/ffi.c: Add, fix comments.
From-SVN: r52048
Hans-Peter Nilsson [Mon, 8 Apr 2002 23:16:17 +0000 (23:16 +0000)]
Fix commit goof: s/istarget/ishost/ for host
From-SVN: r52047
Hans-Peter Nilsson [Mon, 8 Apr 2002 22:49:02 +0000 (22:49 +0000)]
980628-4.x, [...]: New, xfail cross-endian tests.
* g77.f-torture/execute/980628-4.x,
g77.f-torture/execute/980628-5.x,
g77.f-torture/execute/980628-6.x, g77.f-torture/execute/alpha2.x,
g77.f-torture/execute/auto0.x, g77.f-torture/execute/auto1.x,
g77.f-torture/compile/alpha1.x: New, xfail cross-endian tests.
From-SVN: r52046
Hans-Peter Nilsson [Mon, 8 Apr 2002 22:20:39 +0000 (22:20 +0000)]
Make-lang.in (f/target.o): Depend on diagnostic.h.
* Make-lang.in (f/target.o): Depend on diagnostic.h.
* target.c: Include diagnostic.h.
(ffetarget_memcpy_): Call sorry if host and target endians are
not matching.
From-SVN: r52043
Jakub Jelinek [Mon, 8 Apr 2002 20:24:17 +0000 (22:24 +0200)]
* src/sparc/v8.S: Make .eh_frame dependent on target word size.
From-SVN: r52041
Tom Tromey [Mon, 8 Apr 2002 18:57:57 +0000 (18:57 +0000)]
re PR libgcj/6068 (libgcj build picks up libgcj.spec from install tree)
* configure.in: Add FLAGS_FOR_TARGET to GCJ_FOR_TARGET.
Fixes PR libgcj/6068.
From-SVN: r52038
Tom Tromey [Mon, 8 Apr 2002 18:32:23 +0000 (18:32 +0000)]
For PR libgcj/5303:
* .cvsignore: Added rmic.1 and rmiregistry.1.
* gcj.texi (Top): Link to new nodes.
(Invoking rmic): New node.
(Invoking rmiregistry): Likewise.
* Make-lang.in (java.generated-manpages): Added rmic.1 and
rmiregistry.1.
(java.maintainer-clean): Likewise.
($(srcdir)/java/rmic.1): New target.
($(srcdir)/java/rmiregistry.1): Likewise.
(java.install-man): Handle rmic.1 and rmiregistry.1.
From-SVN: r52035
David S. Miller [Mon, 8 Apr 2002 17:20:48 +0000 (10:20 -0700)]
re PR target/6082 (memory model wrong for FreeBSD/sparc64)
2002-04-08 David S. Miller <davem@redhat.com>
PR target/6082
* config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
Make init_priority work on Sparc when using GNU ld.
* config/sparc/linux.h, config/sparc/linux64.h,
config/sparc/netbsd-elf.h, config/sparc/freebsd.h
(CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
* config/sparc/sol2-gld.h: New file to do the same.
* config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
sparc/sol2-gld.h to tm_file.
PR optimization/4328
* config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
* doc/md.texi: Document it.
* config/sparc/sparc.md (movdi_insn_sp64_novis,
movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
movdf_insn_v9only_vis, movdf_insn_sp64_novis,
movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
* config/sparc/sparc.c (mem_min_alignment): Fix comment.
From-SVN: r52031
Andreas Jaeger [Mon, 8 Apr 2002 17:09:50 +0000 (19:09 +0200)]
Revert last patch from Richard Henderson.
From-SVN: r52029
Alberto Biancardi [Mon, 8 Apr 2002 14:43:35 +0000 (16:43 +0200)]
re PR libgcj/6187 (method distance of class java.awt.geom.Point2D causes infinite recursion)
2002-04-08 Alberto Biancardi <alberto.biancardi@unipv.it>
Fix for PR libgcj/6187:
* java/awt/geom/Point2D.java (distance): Call distanceSq, not
distance.
From-SVN: r52027
Paolo Carlini [Mon, 8 Apr 2002 12:29:38 +0000 (14:29 +0200)]
parse.y (namespace_qualifier, [...]): Add ending ';', in accordance with POSIX.
2002-04-08 Paolo Carlini <pcarlini@unitus.it>
* parse.y (namespace_qualifier, maybe_identifier,
begin_explicit_instantiation, end_explicit_instantiation,
apparent_template_type, .finish_template_type,
do_id, maybe_init, defarg_again, component_decl_1):
Add ending ';', in accordance with POSIX.
From-SVN: r52026
Gerald Pfeifer [Mon, 8 Apr 2002 12:07:37 +0000 (14:07 +0200)]
contrib.texi (Contributors): Add John David Anglin and Loren J. Rittle (the latter also to Testers).
* doc/contrib.texi (Contributors): Add John David Anglin and Loren
J. Rittle (the latter also to Testers). Update David O'Brien's entry.
* doc/contrib.texi (Contributors): Add David O'Brien.
From-SVN: r52024
Bryce McKinlay [Mon, 8 Apr 2002 12:03:02 +0000 (12:03 +0000)]
gcj.texi (Invocation): Update JvAttachCurrentThread documentation.
* gcj.texi (Invocation): Update JvAttachCurrentThread documentation.
Add note about handling uncaught exceptions. Add an exception handler
to example.
From-SVN: r52022
Alan Modra [Mon, 8 Apr 2002 08:54:50 +0000 (18:24 +0930)]
Oops, commit right file.
From-SVN: r52021
Alan Modra [Mon, 8 Apr 2002 08:53:48 +0000 (08:53 +0000)]
configure.in (auto-build.h): Use target_alias and build_alias when running configure.
* configure.in (auto-build.h): Use target_alias and build_alias
when running configure.
(gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
(gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
* configure: Regenerate.
From-SVN: r52020
GCC Administrator [Mon, 8 Apr 2002 07:17:01 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r52019
Bryce McKinlay [Mon, 8 Apr 2002 06:41:36 +0000 (06:41 +0000)]
parse.y (resolve_qualified_expression_name): Clear "from_super" flag after using it to patch CALL_EXPR.
* parse.y (resolve_qualified_expression_name): Clear "from_super" flag
after using it to patch CALL_EXPR.
From-SVN: r52015
Bryce McKinlay [Mon, 8 Apr 2002 06:37:26 +0000 (06:37 +0000)]
* gcj.texi (Invocation): Document CNI invocation API.
From-SVN: r52012
David S. Miller [Mon, 8 Apr 2002 00:30:07 +0000 (17:30 -0700)]
config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2002-04-07 David S. Miller <davem@redhat.com>
* config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
From-SVN: r52011
Mark Wielaard [Mon, 8 Apr 2002 00:23:28 +0000 (00:23 +0000)]
AbstractMap.java (putAll): Use entrySet size.
* java/util/AbstractMap.java (putAll): Use entrySet size.
(toString): Explicitly use getKey() and getValue().
From-SVN: r52008
Mark Wielaard [Sun, 7 Apr 2002 22:33:09 +0000 (22:33 +0000)]
xfails: Add CASE_INSENSITIVE_ORDER...
* libjava.mauve/xfails: Add CASE_INSENSITIVE_ORDER, result was
unspecified and test should be updated to match latest spec.
Add AcuniaPropertiesTest, known bug #6219. Add test_getClassLoader,
what we do seems to be not really right or wrong.
From-SVN: r52006
John David Anglin [Sun, 7 Apr 2002 21:29:01 +0000 (21:29 +0000)]
re PR c++/5933 (HP-UX: broken MI of virtual classes)
PR 5933
* pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
generating 32-bit pic code.
From-SVN: r52004
Franz Sirl [Sun, 7 Apr 2002 18:23:19 +0000 (18:23 +0000)]
re PR rtl-optimization/6086 (Reload misoptimizes DImode PREINC on PPC)
2002-04-07 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
PR optimization/6086
* g++.dg/opt/preinc1.C: New test.
From-SVN: r52001
Mark Wielaard [Sun, 7 Apr 2002 12:18:58 +0000 (12:18 +0000)]
Hashtable.java (contains): Remove NullPointer check.
* java/util/Hashtable.java (contains): Remove NullPointer check.
(containsValue): Add NullPointer check.
(remove): Always throw NullPointerException when key is null.
From-SVN: r51994
Bryce McKinlay [Sun, 7 Apr 2002 11:30:35 +0000 (12:30 +0100)]
typo
From-SVN: r51991
Adam King [Sun, 7 Apr 2002 11:27:00 +0000 (11:27 +0000)]
natSystem.cc (init_properties): Call new function _Jv_platform_initProperties.
2002-04-07 Adam King <aking@dreammechanics.com>
* java/lang/natSystem.cc (init_properties): Call new function
_Jv_platform_initProperties.
* win32 (_Jv_platform_initProperties): New function that adds Win32
support for the System properties os.name, os.arch, os.version,
user.name, user.home, and user.dir.
* include/posix.h, include/win32.h, posix.cc: New function
_Jv_platform_initProperties.
From-SVN: r51989
Mark Wielaard [Sun, 7 Apr 2002 09:21:27 +0000 (09:21 +0000)]
mauve.exp: Use libgcj.jar not libgcj.zip.
* libjava.mauve/mauve.exp: Use libgcj.jar not libgcj.zip.
* libjava.mauve/xfails: add Character.classify12 (number 1),
Character.getType (number 11), Character.getType (number 20) and
Character.getType (number 22). We implement 1.4 Character.
From-SVN: r51987
GCC Administrator [Sun, 7 Apr 2002 08:16:51 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r51986
Mark Wielaard [Sun, 7 Apr 2002 07:45:06 +0000 (07:45 +0000)]
* java/lang/Character,java (isDefined): getType() != UNASSIGNED.
From-SVN: r51982
Mark Wielaard [Sun, 7 Apr 2002 07:40:49 +0000 (07:40 +0000)]
ArrayList.java (addAll(int,Collection)): System.arraycopy all of the remaining elements.
* java/util/ArrayList.java (addAll(int,Collection)): System.arraycopy
all of the remaining elements.
* java/util/Vector.java (addAll(int,Collection)): Likewise.
(removeRange): If toIndex == fromIndex do
nothing, if toIndex < fromIndex throw IndexOutIfBoundsException.
(removeAll): Always throw NullPointerException when collection is
null.
(retrainAll): Likewise.
From-SVN: r51979
Mark Mitchell [Sun, 7 Apr 2002 06:09:27 +0000 (06:09 +0000)]
re PR c++/5571 (crash in initialization of a static variable)
PR c++/5571
* stor-layout.c (layout_decl): Reset the RTL for the decl.
* class.c (layout_class_type): Remember incomplete static
variables.
(finish_struct_1): Call complete_vars, not
hack_incomplete_structures.
* cp-tree.h (hack_incomplete_structures): Rename to ...
(complete_vars): ... this.
(struct saved_scope): Remove incomplete.
(namespace_scope_incomplete): Remove.
* decl.c (struct binding_level): Remove incomplete.
(incomplete_vars): New variable.
(mark_binding_level): Don't mark incomplete.
(print_binding_level): Don't print it.
(mark_saved_scope): Don't mark incomplete.
(pushdecl): Use maybe_register_incopmlete_var.
(cxx_init_decl_processing): Register incomplete_vars for GC.
(start_decl_1): Clarify error message.
(hack_incomplete_vars): Remove.
(maybe_register_incomplete_var): New function.
(complete_vars): Likewise.
* g++.dg/opt/static2.C: New test.
From-SVN: r51978
Jason Thorpe [Sun, 7 Apr 2002 04:19:31 +0000 (04:19 +0000)]
configure.in (alpha*-*-netbsd*): Add target.
* configure.in (alpha*-*-netbsd*): Add target.
* configure: Regenerate.
From-SVN: r51976
Jason Thorpe [Sun, 7 Apr 2002 03:12:23 +0000 (03:12 +0000)]
cppinit.c (cpp_create_reader): Initialize discard_comments_in_macro_exp.
* cppinit.c (cpp_create_reader): Initialize
discard_comments_in_macro_exp.
(COMMAND_LINE_OPTIONS): Add "-CC" option.
(cpp_handle_option): Handle "-CC" option.
* cpplex.c (save_comment): If saving a C++ comment in
a directive, convert it to a C comment.
(_cpp_lex_direct): Pass second comment start character to
save_comment to indicate comment type.
* cpplib.c (_cpp_handle_directive): If processing
a "#define" directive and discard_comments_in_macro_exp
is false, re-enable saving of comments.
(lex_macro_node): If discard_comments_in_macro_exp is false,
discard any comments before the macro identifier.
* cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
member.
* cppmacro.c (cpp_get_token): If expanding a macro while
processing a directive, discard any comments we might encounter.
(parse_params): If discard_comments_in_macro_exp is false,
ignore comments in the macro parameter list.
* gcc.c (cpp_unique_options): Add "-CC" option.
(option_map): Map "--comments-in-macros" to "-CC".
* doc/cppopts.texi: Document "-CC" option.
* f/lang-specs.h: Add "-CC" option.
* testsuite/gcc.dg/cpp/maccom1.c: New test.
* testsuite/gcc.dg/cpp/maccom2.c: New test.
* testsuite/gcc.dg/cpp/maccom3.c: New test.
* testsuite/gcc.dg/cpp/maccom4.c: New test.
* testsuite/gcc.dg/cpp/maccom5.c: New test.
* testsuite/gcc.dg/cpp/maccom6.c: New test.
From-SVN: r51975
Jason Merrill [Sat, 6 Apr 2002 22:22:00 +0000 (17:22 -0500)]
re PR c++/4934 (Seg fault on legal code)
PR c++/4934
* error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
set before checking it.
From-SVN: r51972
John David Anglin [Sat, 6 Apr 2002 22:10:54 +0000 (22:10 +0000)]
* reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
From-SVN: r51971
Mark Mitchell [Sat, 6 Apr 2002 19:42:22 +0000 (19:42 +0000)]
re PR rtl-optimization/5120 (tail recursion incorrect using -O2)
PR opt/5120
* sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
RTX_UNCHANGING_P for the functions arguments when a tail call
is made.
From-SVN: r51969
Jason Merrill [Sat, 6 Apr 2002 16:57:23 +0000 (11:57 -0500)]
toplev.c (flag_no_inline, [...]): Default to 2.
* toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
(parse_options_and_default_flags): Set them appropriately.
* c-common.c (c_common_post_options): Don't set flag_really_no_inline.
From-SVN: r51959
Jason Merrill [Sat, 6 Apr 2002 16:15:20 +0000 (11:15 -0500)]
re PR c++/525 (Problem with Multiple Inheritance and -pedantic)
PR c++/525
* init.c (build_member_call): Use build_scoped_ref.
(resolve_offset_ref): Likewise.
* call.c (build_scoped_method_call): Likewise.
* tree.c (maybe_dummy_object): Kludge around current_class_type being
wrong.
* typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm.
* cp-tree.h: Adjust.
* init.c (push_base_cleanups): Just use build_scoped_method_call.
From-SVN: r51956
Jason Merrill [Sat, 6 Apr 2002 15:59:14 +0000 (10:59 -0500)]
re PR c++/6179 (EH regression test failure for STLport-4.5.3)
PR c++/6179
* method.c (implicitly_declare_fn): Pass unqualified type to
synthesize_exception_spec.
From-SVN: r51954
Mark Wielaard [Sat, 6 Apr 2002 08:26:08 +0000 (08:26 +0000)]
ArrayList.jva (removeRange): If toIndex == fromIndex do nothing...
* java/util/ArrayList.jva (removeRange): If toIndex == fromIndex do
nothing, if toIndex < fromIndex throw IndexOutIfBoundsException.
From-SVN: r51947
Hans-Peter Nilsson [Sat, 6 Apr 2002 08:20:35 +0000 (08:20 +0000)]
t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
* config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
here.
* config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
semicolon.
* config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
types come in by-reference. Fix typo in comment.
From-SVN: r51946
GCC Administrator [Sat, 6 Apr 2002 08:17:39 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r51945
David S. Miller [Sat, 6 Apr 2002 04:55:28 +0000 (20:55 -0800)]
freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2002-04-05 David S. Miller <davem@redhat.com>
* config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
* config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
{sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
From-SVN: r51940
Adam Megacz [Sat, 6 Apr 2002 04:20:02 +0000 (04:20 +0000)]
exception.cc (abort): added static modifier
2002-04-05 Adam Megacz <adam@xwt.org>
* exception.cc (abort): added static modifier
From-SVN: r51938
Adam Megacz [Sat, 6 Apr 2002 04:19:10 +0000 (04:19 +0000)]
exception.cc (abort): added static modifier
2002-04-05 Adam Megacz <adam@xwt.org>
* exception.cc (abort): added static modifier
From-SVN: r51937
Richard Henderson [Sat, 6 Apr 2002 01:14:42 +0000 (17:14 -0800)]
* doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
From-SVN: r51936
Jonathan Wakely [Fri, 5 Apr 2002 17:58:41 +0000 (17:58 +0000)]
stl_algo.h (unique_copy, [...]): Doxygenate.
2002-04-05 Jonathan Wakely <jw@kayari.org>
* include/bits/stl_algo.h (unique_copy, __gcd, rotate, rotate_copy,
random_shuffle, partition, stable_partition, sort, stable_sort,
partial_sort, partial_sort_copy, nth_element): Doxygenate.
From-SVN: r51927
David S. Miller [Fri, 5 Apr 2002 13:46:50 +0000 (05:46 -0800)]
2002-04-05 David S. Miller <davem@redhat.com>
* config/os/gnu-linux/bits/os_defines.h
(__glibcpp_long_double_bits): Set to 64 on 32-bit Sparc.
From-SVN: r51921
Jakub Jelinek [Fri, 5 Apr 2002 11:43:40 +0000 (13:43 +0200)]
* mklibgcc.in: Use $tmpmapfile, not tmp-$@.
From-SVN: r51918
Alexandre Oliva [Fri, 5 Apr 2002 09:26:38 +0000 (09:26 +0000)]
mips.h (ISA_HAS_BRANCHLIKELY, [...]): Disable if TARGET_MIPS16.
* config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
From-SVN: r51917
Andreas Schwab [Fri, 5 Apr 2002 09:06:04 +0000 (09:06 +0000)]
Fix last change: c-common.h instead of c-convert.h.
From-SVN: r51916
Andreas Schwab [Fri, 5 Apr 2002 08:52:58 +0000 (08:52 +0000)]
c-convert.c: Include c-convert.h.
* c-convert.c: Include c-convert.h.
* Makefile.in (c-convert.o): Updated.
From-SVN: r51915
Jakub Jelinek [Fri, 5 Apr 2002 08:23:36 +0000 (10:23 +0200)]
mklibgcc.in: Use separate libgcc.map for each multilib.
* mklibgcc.in: Use separate libgcc.map for each multilib.
* Makefile.in (distclean): Don't remove libgcc.map here.
From-SVN: r51914
Jakub Jelinek [Fri, 5 Apr 2002 08:20:02 +0000 (10:20 +0200)]
Makefile.in (s-mlib): Handle --disable-multilib by separate genmultilib invocation.
* Makefile.in (s-mlib): Handle --disable-multilib by separate
genmultilib invocation.
From-SVN: r51912
GCC Administrator [Fri, 5 Apr 2002 08:17:03 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r51910
Richard Sandiford [Fri, 5 Apr 2002 08:00:32 +0000 (08:00 +0000)]
mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs to avoid clash with Irix header file sys/ucontext.h.
* config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
to num_gprs for symmetry.
* config/mips/mips.c: Adjust accordingly.
From-SVN: r51906
Neil Booth [Fri, 5 Apr 2002 06:17:16 +0000 (06:17 +0000)]
* ChangeLog: Forgotten commit.
From-SVN: r51903
Alan Modra [Fri, 5 Apr 2002 04:42:17 +0000 (04:42 +0000)]
t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o Add rules to make null object file.
* config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
Add rules to make null object file.
From-SVN: r51901
Adam Megacz [Fri, 5 Apr 2002 04:22:28 +0000 (04:22 +0000)]
win32.h (_Jv_platform_close_on_exec): added inline modifier.
2002-04-04 Adam Megacz <adam@xwt.org>
* include/win32.h (_Jv_platform_close_on_exec): added inline
modifier.
From-SVN: r51899