Commit Graph

26000 Commits

Author SHA1 Message Date
Tom Tromey 7af8555855 Runtime.java (loadLibraryInternal): Declare.
* java/lang/Runtime.java (loadLibraryInternal): Declare.
	* java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
	(_Jv_FindClassInCache): Likewise.
	(_Jv_FindClass): Don't conditionalize body on INTERPRETER.
	(findSystemClass): Try to load class from compiled module.
	Include Runtime.h.
	* java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
	(loadLibrary): Likewise.
	(lt_preloaded_symbols): Define.
	(loadLibraryInternal): New method.
	* include/config.h.in: Rebuilt.
	* acconfig.h (USE_LTDL): Added.
	* Makefile.am (SUBDIRS): Added $(DIRLTDL).
	(INCLUDES): Added $(INCLTDL).b
	(libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
	(libgcj_la_LIBADD): Likewise.
	* aclocal.m4, configure: Rebuilt.
	* configure.in: Added libltdl support.

From-SVN: r31472
2000-01-17 19:22:20 +00:00
Tom Tromey 06f5673716 Initial revision
From-SVN: r31468
2000-01-17 19:00:44 +00:00
Tom Tromey 451f21ef2d * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
From-SVN: r31467
2000-01-17 18:56:43 +00:00
Tom Tromey 9b4579b3bb * gjavah.c (print_field_info): Allow non-static final fields.
From-SVN: r31466
2000-01-17 18:25:37 +00:00
Kaveh Ghazi 9311a396bc Update copyrights
From-SVN: r31465
2000-01-17 17:16:21 +00:00
Kaveh Ghazi 56bcf273a9 Update copyrights
From-SVN: r31464
2000-01-17 16:49:30 +00:00
Kaveh R. Ghazi 957e47632b print-rtl.c: PROTO -> PARAMS.
* print-rtl.c: PROTO -> PARAMS.
        * real.c: Likewise.
        * reg-stack.c: Likewise.
        * resource.c: Likewise.
        * sdbout.h: Likewise.
        * simplify-rtx.c: Likewise.
        * stor-layout.c: Likewise.
        * stupid.c: Likewise.
        * xcoffout.c: Likewise.
        * xcoffout.h: Likewise.

From-SVN: r31463
2000-01-17 16:01:04 +00:00
Kaveh R. Ghazi 58782098af toplev.c: PROTO -> PARAMS.
* toplev.c: PROTO -> PARAMS.
        * toplev.h: Likewise.
        * tree.c: Likewise.
        * tree.h: Likewise.
        * unroll.c: Likewise.
        * varasm.c: Likewise.
        * varray.c: Likewise.
        * varray.h: Likewise.

From-SVN: r31462
2000-01-17 15:55:18 +00:00
Kaveh R. Ghazi cdadb1dda0 reload.c: PROTO -> PARAMS.
* reload.c: PROTO -> PARAMS.
        * reload.h: Likewise.
        * reload1.c: Likewise.
        * reorg.c: Likewise.
        * resource.h: Likewise.
        * rtl.c: Likewise.
        * rtl.h: Likewise.
        * rtlanal.c: Likewise.
        * sbitmap.h: Likewise.
        * sdbout.c: Likewise.
        * stack.h: Likewise.
        * stmt.c: Likewise.
        * system.h: Likewise.

From-SVN: r31461
2000-01-17 15:47:29 +00:00
Andrew Haley 283a159fe3 natThrowable.cc: New file.
2000-01-14  Andrew Haley  <aph@cygnus.com>

	* java/lang/natThrowable.cc: New file.

	* java/lang/Throwable.java (fillInStackTrace): Make native.
	(printStackTrace): Call native method to do this.
	(Throwable): Call fillInStackTrace.
	(stackTrace): New variable.

	* include/jvm.h: Add _Jv_ThisExecutable functions.

	* prims.cc: (_Jv_execName): New variable.
	(catch_segv): Call fillInStackTrace.
	(catch_fpe): Ditto.
	(_Jv_ThisExecutable): New functions.
	(JvRunMain): Set the name of this executable.

	* Makefile.am: Add java/lang/natThrowable.cc.
	Add name-finder.cc.
	* Makefile.in: Rebuilt.

	* acconfig.h: Add HAVE_PROC_SELF_EXE.

	* configure.in: Force link with __frame_state_for in
	FORCELIBGCCSPEC.  Add new checks for backtrace.
	* include/config.h.in: Rebuilt.

	* name-finder.cc: New file.
	* include/name-finder.h: New file.

From-SVN: r31460
2000-01-17 15:45:24 +00:00
Kaveh R. Ghazi 1353681247 machmode.h: PROTO -> PARAMS.
* machmode.h: PROTO -> PARAMS.
        * mbchar.h: Likewise.
        * mips-tdump.c: Likewise.
        * mips-tfile.c: Likewise.
        * optabs.c: Likewise.
        * output.h: Likewise.
        * prefix.c: Likewise.
        * profile.c: Likewise.
        * protoize.c: Likewise.
        * real.h: Likewise.
        * recog.c: Likewise.
        * recog.h: Likewise.
        * regclass.c: Likewise.
        * regmove.c: Likewise.
        * regs.h: Likewise.

From-SVN: r31459
2000-01-17 15:37:04 +00:00
Kaveh R. Ghazi 3fe41456ed ggc-common.c: PROTO -> PARAMS.
* ggc-common.c: PROTO -> PARAMS.
        * ggc-page.c: Likewise.
        * ggc-simple.c: Likewise.
        * ggc.h: Likewise.
        * global.c: Likewise.
        * graph.c: Likewise.
        * gthr-win32.h: Likewise.
        * haifa-sched.c: Likewise.
        * halfpic.h: Likewise.
        * integrate.c: Likewise.
        * integrate.h: Likewise.
        * jump.c: Likewise.
        * lcm.c: Likewise.
        * local-alloc.c: Likewise.
        * loop.c: Likewise.
        * loop.h: Likewise.

From-SVN: r31458
2000-01-17 15:28:05 +00:00
Kaveh R. Ghazi a94ae8f5dd genattr.c: PROTO -> PARAMS.
* genattr.c: PROTO -> PARAMS.
        * genattrtab.c: Likewise.
        * gencheck.c: Likewise.
        * gencodes.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * gengenrtl.c: Likewise.
        * genopinit.c: Likewise.
        * genoutput.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.

From-SVN: r31457
2000-01-17 15:17:38 +00:00
Kaveh R. Ghazi 3b0d91ff92 * All files: PROTO -> PARAMS.
From-SVN: r31456
2000-01-17 14:51:05 +00:00
Jeff Law 9771524624 Daily bump.
From-SVN: r31455
2000-01-17 01:45:06 -07:00
Mark Mitchell 1eb4bea9e9 class.c (finish_struct_1): Replace redundant code with assertions.
* class.c (finish_struct_1): Replace redundant code with
	assertions.

From-SVN: r31454
2000-01-17 05:12:39 +00:00
Mark Mitchell 39ac3e4f68 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
From-SVN: r31453
2000-01-17 04:15:50 +00:00
Mark Mitchell bbd15aac6f cp-tree.h (flag_new_abi): Move.
* cp-tree.h (flag_new_abi): Move.
	(flag_use_cxa_atexit): Likewise.
	(flag_honor_std): Likewise.
	(flag_rtti): Likewise.
	(vbase_offsets_in_vtable_p): Define.
	(vptrs_present_everywhere_p): Likewise.
	(TYPE_CONTAINS_VPTR_P): Likewise.
	(dfs_walk_real): Declare.
	* class.c (build_vbase_pointer_fields): Check
	vbase_offsets_in_vtable_p.
	(dfs_build_vbase_offset_vtbl_entries): Record the vbase indices in
	BINFO_VPTR_FIELD.
	(build_vbase_offset_vtbl_entries): Simplify.
	(build_vbase_offset_vtbl_entries): Adjust.
	(build_vbase_pointer): Add ability to look up vbase offsets in
	vtable.
	(start_vtable): New function.
	(add_virtual_function): Use it.
	(determine_primary_base): Use TYPE_CONTAINS_VPTR_P.
	(num_extra_vtbl_entries): Use vbase_offsets_in_vtable_p.
	(build_vtbl_initializer): Take the type of the complete object as
	input.  Use it to correctly calculate vbase offsets.
	(dfs_finish_vtbls): Pass the complete type to
	build_vtbl_initializer.
	(check_bases_and_members): Use TYPE_CONTAINS_VPTR_P.
	(create_vtable_ptr): Create a vtable even if there are no
	new virtual functions, under the new ABI.
	(finish_struct_1): Likewise.
	(get_vfield_name): Use TYPE_CONTAINS_VPTR_P.
	* decl.c (exapnd_static_init): Remove call to
	preserve_initializer.
	* decl2.c (mark_vtable_entries): Tweak to handle vbase offsets in
	vtables.
	* init.c (initialize_vtbl_ptrs): Initialize them in pre-order.
	(expand_virtual_init): Use vbase_offsets_in_vtable_p.
	(construct_virtual_bases): Don't initialize virtual base pointers
	under the new ABI.
	(build_aggr_init): Clean up comment.
	(expand_aggr_init_1): Likewise.
	* rtti.c (expand_class_desc): Store the virtual function table
	index where the vbase offset lives in the offset field.
	* search.c (dfs_walk_real): Make it global.
	(dfs_debug_mark): Use TYPE_CONTAINS_VPTR_P.
	* tree.c (make_binfo): Don't clear BINFO_VPTR_FIELD.

	* tinfo.h (USItype): Make it signed under the new ABI.
	* tinfo.cc (convert_to_base): New function.  Encapsulate base
	conversion logic here.
	(__class_type_info::do_upcast): Use it.
	(__class_type_info::do_dyncast): Likewise.
	(__class_type_info::do_find_public_subobj): Likewise.

From-SVN: r31452
2000-01-17 04:08:01 +00:00
Anthony Green 2a198bc4bf StringBuffer.java (StringBuffer): Don't special case null argument.
2000-01-16  Anthony Green  <green@cygnus.com>

	* java/lang/StringBuffer.java (StringBuffer): Don't special case
	null argument.

From-SVN: r31451
2000-01-17 00:00:43 +00:00
Anthony Green c52b57714b parse.y (build_string_concatenation): Only use StringBuffer(String) shortcut if String arg is constant.
2000-01-16  Anthony Green  <green@cygnus.com>

	* parse.y (build_string_concatenation): Only use
	StringBuffer(String) shortcut if String arg is constant.

From-SVN: r31450
2000-01-16 23:56:06 +00:00
Jeff Sturm 2ce7461bd0 StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
2000-01-16  Jeff Sturm  <jsturm@sigma6.com>

	* java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).

From-SVN: r31449
2000-01-16 21:33:46 +00:00
Anthony Green ed4c3661d5 *** empty log message ***
From-SVN: r31448
2000-01-16 21:01:25 +00:00
Mark Mitchell a67861482d init.c (construct_virtual_bases): Don't look up the addresses of virtual bases at run-time.
* init.c (construct_virtual_bases): Don't look up the addresses of
	virtual bases at run-time.

From-SVN: r31447
2000-01-16 20:22:56 +00:00
Anthony Green 31fcb1b9a9 pr83.out: New file.
* libjava.lang/pr83.out: New file.
	* libjava.lang/pr83.java: New file.

	* libjava.lang/pr109.out: New file.
	* libjava.lang/pr109.java: New file.

From-SVN: r31446
2000-01-16 19:55:09 +00:00
Alexandre Oliva a0f20853ca Oops, a reference to mmap_zero remained
From-SVN: r31445
2000-01-16 18:49:31 +00:00
Alexandre Oliva 4acab94bfa aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
* aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
* configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
* ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
* configure, config.in: Rebuilt.

From-SVN: r31444
2000-01-16 18:16:55 +00:00
Zack Weinberg 08439bec5f i386.md: Add peephole to merge successive stack adjusts.
* config/i386/i386.md: Add peephole to merge successive stack
	adjusts.

From-SVN: r31443
2000-01-16 17:53:02 +00:00
Mark Mitchell f83611476f class.c (build_vbase_pointer): Relocate.
* class.c (build_vbase_pointer): Relocate.
	(build_vbase_pointer_fields): Likewise.
	(dfs_build_vbase_offset_vtbl_entries): Likewise.
	(build_vbase_offset_vtbl_entries): Likewise.

From-SVN: r31442
2000-01-16 17:38:06 +00:00
Mark Mitchell 5bb2a29215 decl.c (init_decl_processing): Complain if -fnew-abi -fno-vtable-thunks is used.
* decl.c (init_decl_processing): Complain if -fnew-abi
	-fno-vtable-thunks is used.

From-SVN: r31441
2000-01-16 17:06:42 +00:00
Mark Mitchell 84602ee016 decl2.c (lang_decode_option): Don't couple flag_honor_std to flag_new_abi.
* decl2.c (lang_decode_option): Don't couple flag_honor_std to
	flag_new_abi.

From-SVN: r31440
2000-01-16 17:03:49 +00:00
Mark Mitchell 70ae320124 cp-tree.h (num_extra_vtbl_entries): New function.
* cp-tree.h (num_extra_vtbl_entries): New function.
	(size_extra_vtbl_entries): Likewise.
	(dfs_vtable_path_unmark): Likewise.
	(dfs_vtable_path_unmarked_real_bases_queue_p): Likewise.
	(dfs_vtable_path_marked_real_bases_queue_p): Likewise.
	* class.c (num_extra_vtbl_entries): New function.
	(size_extra_vtbl_entries): Likewise.
	(dfs_build_vbase_offset_vtbl_entries): New function.
	(build_vbase_offset_vtbl_entries): Likewise.
	(build_vtbl_initializer): Use it.
	(finish_struct_1): Adjust vtable sizes (using
	num_extra_vtbl_entries).
	* expr.c (cplus_expand_expr): Assert that the DECL_RTL for a
	THUNK_DECL is non-NULL before expanding it.
	* init.c (expand_virtual_init): Adjust the vtable pointer by
	size_extra_vtbl_entries before storing it.
	* search.c (get_shared_vase_if_not_primary): Adjust prototype.
	Handle TREE_LIST parameters here, not in the dfs_* functions.
	(dfs_unmarked_real_bases_queue_p): Adjust.
	(dfs_marked_real_bases_queue_p): Likewise.
	(dfs_vtable_path_unmarked_real_bases_queue_p): New function.
	(dfs_vtable_path_marked_real_bases_queue_p): New function.
	(dfs_vtable_path_unmark): Likewise.

From-SVN: r31439
2000-01-16 16:59:44 +00:00
Jeff Law 2f4facc91e Daily bump.
From-SVN: r31438
2000-01-16 01:45:07 -07:00
John Wehle b522962825 gcse.c (insert_insn_end_bb): Use emit_block_insn_before instead of emit_insn_before.
* gcse.c (insert_insn_end_bb): Use emit_block_insn_before
	instead of emit_insn_before.  Also handle NOTE_INSN_BASIC_BLOCK
	when walking backwards to find all the parameter loads when
	the basic block ends in a call.

From-SVN: r31437
2000-01-15 20:46:21 +00:00
Jeff Law 8430ac57f2 Daily bump.
From-SVN: r31436
2000-01-15 01:45:06 -07:00
Mark Mitchell ef97bf6bdd optimize.c (copy_body_r): Clear the operand three of a TARGET_EXPR when copying it.
* optimize.c (copy_body_r): Clear the operand three of a
	TARGET_EXPR when copying it.

From-SVN: r31435
2000-01-15 04:36:04 +00:00
Michael Hayes a2be868fba loop.c (this_loop_info): Delete.
* loop.c (this_loop_info): Delete.
	(uid_loop): Add in place of uid_loop_num.  All uses updated.
 	(loop_number_exit_count): Delete and replace with entry in loop
	structure.  All uses updated.
	(loop_number_loop_starts, loop_number_loop_ends): Likewise.
	(loop_number_loop_cont, loop_number_cont_dominator): Likewise.
	(loop_outer_loop): Likewise.
	(loop_invalid, loop_number_exit_labels): Likewise.
	(loop_used_count_register): Delete and replace with entry in
	loop_info structure.
	(find_and_verify_loops): Add loops argument.
	(verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
	loop_end, etc. arguments with loop structure pointer.  All callers
	changed.
	(loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
	(check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
	(load_mems_and_recount_loop_regs_set, load_mems): Likewise.
	(insert_bct): Likewise.
	(basic_induction_var): New argument level.
	* loop.h (struct loop_info): Delete fields num, loops_enclosed,
	vtop, and cont.  Add used_count_register.
	(uid_loop): Delete declaration.
 	(loop_number_exit_count): Likewise.
	(loop_number_loop_starts, loop_number_loop_ends): Likewise.
	(loop_number_loop_cont, loop_number_cont_dominator): Likewise.
	(loop_outer_loop, loop_used_count_register): Likewise.
	(loop_invalid, loop_number_exit_labels): Likewise.
	(unroll_loop): Replace loop_start and loop_end arguments
 	with loop structure pointer.
	(loop_precondition_p, loop_iterations): Likewise.
	Include basic-block.h.
	* unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
 	with loop structure pointer.
	(loop_precondition_p, loop_iterations): Likewise.
	* basic-block.h (struct loop): New entries vtop, cont,
 	cont_dominator, start, end, top, scan_start, exit_labels,
	exit_count.
	* Makefile.in (LOOP_H): Add basic-block.h to dependencies.

From-SVN: r31434
2000-01-15 03:01:49 +00:00
Gerald Pfeifer d07ecc3bdf * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
From-SVN: r31433
2000-01-15 03:00:11 +00:00
Martin v. Löwis f2aabbd80d New test case.
From-SVN: r31432
2000-01-14 23:43:19 +00:00
Martin v. Löwis 64f1326a88 method.c (build_decl_overload_real): Check whether we are in :: before returning __builtin_new/delete.
* method.c (build_decl_overload_real): Check whether we are in ::
	before returning __builtin_new/delete.

From-SVN: r31431
2000-01-14 23:42:10 +00:00
Nathan Sidwell 0f7624fc47 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
From-SVN: r31430
2000-01-14 23:11:38 +00:00
Kaveh R. Ghazi b0106b2463 pdp11-protos.h: New file.
* pdp11-protos.h: New file.

        * pdp11.c: Include tm_p.h.  Add static prototypes.  Fix compile
        time warnings.

        * pdp11.h: Move prototypes to pdp11-protos.h.  Fix compile time
        warnings.

        * pdp11.md: Likewise.

        * 2bsd.h: Likewise.

From-SVN: r31429
2000-01-14 23:07:07 +00:00
Kaveh R. Ghazi 69bc71fad0 mn10300-protos.h: New file.
* mn10300-protos.h: New file.

        * mn10300.c: Include tm_p.h.  Add static prototypes.  Fix compile
        time warnings.

        * mn10300.h: Move prototypes to mn10300-protos.h.  Fix compile time
        warnings.

        * mn10300.md: Likewise.

From-SVN: r31428
2000-01-14 23:03:45 +00:00
Kaveh R. Ghazi ac42d1e9b1 mn10200-protos.h: New file.
* mn10200-protos.h: New file.

        * mn10200.c: Include tm_p.h.  Add static prototypes.  Fix compile
        time warnings.

        * mn10200.h: Move prototypes to mn10200-protos.h.  Fix compile time
        warnings.

        * mn10200.md: Likewise.

From-SVN: r31427
2000-01-14 23:00:20 +00:00
Kaveh R. Ghazi 441d04c6db h8300-protos.h: New file.
* h8300-protos.h: New file.

        * h8300.c: Include tm_p.h.  Add static prototypes.  Fix compile
        time warnings.

        * h8300.h: Move prototypes to h8300-protos.h.  Fix compile time
        warnings.

        * h8300.md: Likewise.

From-SVN: r31426
2000-01-14 22:57:31 +00:00
Kaveh R. Ghazi 05b13f5974 varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
* varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
        (asm_emit_uninitialised): Likewise.

From-SVN: r31425
2000-01-14 22:53:45 +00:00
Gavin Romig-Koch 0025b7fa03 mips.h (ISA_HAS_INT_CONDMOVE): New.
* config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
	* config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.

From-SVN: r31424
2000-01-14 22:30:12 +00:00
Clinton Popetz ea64cab431 mips.c (override_options): Don't turn on extra alignment for mips16.
* config/mips/mips.c (override_options): Don't turn on extra
	alignment for mips16.

From-SVN: r31423
2000-01-14 16:38:23 -05:00
Clinton Popetz f5c8ac96dc mips.c (mips_va_arg): Fix fprv for the 32 bit eabi...
* config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
	eabi, and make sure queued POSTINCREMENT rtl is emitted at
	the right point.

From-SVN: r31422
2000-01-14 16:21:57 -05:00
Clinton Popetz 5e4f624424 builtins.c (PAD_VARARGS_DOWN): Define.
* builtins.c (PAD_VARARGS_DOWN): Define.
	(std_expand_builtin_va_arg): Use the above macro.
	* config/mips/mips.c (PAD_VARARGS_DOWN): Define.
	* tm.texi (Register Arguments): Document the above macro.

From-SVN: r31421
2000-01-14 16:19:51 -05:00
Nick Clifton 06be917325 If RTL checking is enabled, make sure that emit_insn is not used to emit a
jump insn.

From-SVN: r31420
2000-01-14 20:51:04 +00:00