1. 18 Jan, 2000 5 commits
  2. 17 Jan, 2000 24 commits
    • re GNATS gcj/128 (weak error message when expecting final modifier) · 18990de5
      Mon Jan 17 11:58:17 2000  Joerg Brunsmann  <joerg.brunsmann@fernuni-hagen.de>
      
              * parse.y (format_parameter:): Use final: rule instead of modifiers:.
              (final:): New rule.
      
      Joerg Brunsmann's contribution to fix the Java PR #128.
      
      From-SVN: r31477
      Joerg Brunsmann committed
    • cp-tree.h (build_shared_int_cst): New function. · a68ad5bd
      	* cp-tree.h (build_shared_int_cst): New function.
      	* call.c (build_over_call): Use DECL_VIRTUAL_CONTEXT, for clarity.
      	* class.c (modify_vtable_entry): Likewise.
      	(add_virtual_function): Split out code to generated shared
      	INTEGER_CSTs to build_share_int_cst.
      	(modify_all_vtables): Handle all the overridden functions here.
      	Add overridden functions from non-primary virtual bases to the
      	primary vtable.
      	(finish_struct_1): Adjust call to modify_all_vtables.  Add
      	overridden functions from non-primary bases to the vtable.
      	* tree.c (build_shared_int_cst): New function.
      
      From-SVN: r31476
      Mark Mitchell committed
    • Oops, forgot to save ChangeLog on previous commit · e41e26be
      From-SVN: r31475
      Zack Weinberg committed
    • fixlib.c: Add copyright notice. · b51207a4
      	* fixinc/fixlib.c: Add copyright notice.
      	(compile_re): New function.
      	* fixinc/fixlib.h: Prototype compile_re.
      
      	* fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
      	Use compile_re to compile regular expressions.
      
      	* fixinc/fixincl.c (egrep_test): Don't bother asking regexec
      	where the pattern matched.
      
      	* fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
      	use 'replace'.
      	(ultrix_ansi_compat): Likewise.
      	(interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
      	add egrep test.
      	(interactv_add2, interactv_add3): Delete.
      	(x11_sprintf): Don't use filename glob.
      	* fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
      	Regenerate.
      
      From-SVN: r31474
      Zack Weinberg committed
    • cp-tree.h (scratchalloc): Remove. · 051e6fd7
      	* cp-tree.h (scratchalloc): Remove.
      	(build_scratch_list): Likewise.
      	* call.c (convert_class_to_reference): Replace build_scratch_list
      	and build_expr_list with build_tree_list.
      	(add_candidate): Replace scratchalloc with expralloc.  Note memory
      	leak.
      	(build_user_type_conversion_1):  Replace build_scratch_list
      	and build_expr_list with build_tree_list.
      	(build_new_op): Likewise.
      	(build_op_delete_call): Likewise.
      	(convert_like): Likewise.
      	* cvt.c (ocp_convert): Likewise.
      	* decl.c (start_decl): Likewise.
      	(start_function): Likewise.
      	(finish_destructor_body): Likewise.
      	(maybe_build_cleanup_1): Likewise.
      	* decl2.c (reparse_decl_as_expr): Likewise.
      	* init.c (perform_member_init): Likewise.
      	(expand_cleanup_for_base): Likewise.
      	(build_builtin_delete_call): Likewise.
      	(build_new_1): Likewise.
      	(build_delete): Likewise.
      	* method.c (do_build_assign_ref): Likewise.
      	* parse.y (already_scoped_stmt): Likewise.
      	(nontrivial_exprlist): Likewise.
      	(net_initializer): Likewise.
      	(initlist): Likewise.
      	* parse.c: Regenerated.
      	* rtti.c (build_x_typeid): Likewise.
      	(build_dynamic_cast_1): Likewise.
      	* typeck.c (build_x_compound_expr): Likewise.
      	(build_static_cast): Likewise.
      	(build_modify_expr): Likewise.
      
      	* cp-tree.h (DECL_VINDEX): Add documentation.
      	* class.c (build_vtable_entry): Likewise.
      	(start_vtable): Add comment.
      	(add_virtual_function): Replace pending_hard_virtuals with
      	overridden_virtuals and pending_virtuals with new_virtuals.
      	Replace redundant assignments with assertions.
      	(check_for_override): Add comment.
      	(check_bases_and_members): Replace pending_hard_virtuals with
      	overridden_virtuals and pending_virtuals with new_virtuals.
      	(create_vtbl_ptr): Likewise.
      	(layout_class_type): Likewise.
      	(finish_struct_1): Likewise.  Add comments.
      
      From-SVN: r31473
      Mark Mitchell committed
    • Runtime.java (loadLibraryInternal): Declare. · 7af85558
      	* 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
      Tom Tromey committed
    • Initial revision · 06f56737
      From-SVN: r31468
      Tom Tromey committed
    • * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'. · 451f21ef
      From-SVN: r31467
      Tom Tromey committed
    • * gjavah.c (print_field_info): Allow non-static final fields. · 9b4579b3
      From-SVN: r31466
      Tom Tromey committed
    • Update copyrights · 9311a396
      From-SVN: r31465
      Kaveh Ghazi committed
    • Update copyrights · 56bcf273
      From-SVN: r31464
      Kaveh Ghazi committed
    • print-rtl.c: PROTO -> PARAMS. · 957e4763
              * 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
      Kaveh R. Ghazi committed
    • toplev.c: PROTO -> PARAMS. · 58782098
              * 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
      Kaveh R. Ghazi committed
    • reload.c: PROTO -> PARAMS. · cdadb1dd
              * 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
      Kaveh R. Ghazi committed
    • natThrowable.cc: New file. · 283a159f
      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
      Andrew Haley committed
    • machmode.h: PROTO -> PARAMS. · 13536812
              * 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
      Kaveh R. Ghazi committed
    • ggc-common.c: PROTO -> PARAMS. · 3fe41456
              * 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
      Kaveh R. Ghazi committed
    • genattr.c: PROTO -> PARAMS. · a94ae8f5
              * 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
      Kaveh R. Ghazi committed
    • * All files: PROTO -> PARAMS. · 3b0d91ff
      From-SVN: r31456
      Kaveh R. Ghazi committed
    • Daily bump. · 97715246
      From-SVN: r31455
      Jeff Law committed
    • class.c (finish_struct_1): Replace redundant code with assertions. · 1eb4bea9
      	* class.c (finish_struct_1): Replace redundant code with
      	assertions.
      
      From-SVN: r31454
      Mark Mitchell committed
    • * tree.h (BINFO_VPTR_FIELD): Augment documentation. · 39ac3e4f
      From-SVN: r31453
      Mark Mitchell committed
    • cp-tree.h (flag_new_abi): Move. · bbd15aac
      	* 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
      Mark Mitchell committed
    • StringBuffer.java (StringBuffer): Don't special case null argument. · 2a198bc4
      2000-01-16  Anthony Green  <green@cygnus.com>
      
      	* java/lang/StringBuffer.java (StringBuffer): Don't special case
      	null argument.
      
      From-SVN: r31451
      Anthony Green committed
  3. 16 Jan, 2000 11 commits