1. 17 Feb, 2000 16 commits
  2. 16 Feb, 2000 24 commits
    • Make DECL_CONTEXT mean the class in which a member function was declared, even… · 4f1c5b7d
      Make DECL_CONTEXT mean the class in which a member function was declared, even for a virtual function.
      
      	Make DECL_CONTEXT mean the class in which a member function was
      	declared, even for a virtual function.
      	* cp-tree.h (DECL_CLASS_CONTEXT): Adjust.
      	(DECL_FRIEND_CONTEXT): New macro.
      	(DECL_REAL_CONTEXT): Remove.
      	(SET_DECL_FRIEND_CONTEXT): Likewise.
      	(DECL_VIRTUAL_CONTEXT): Adjust.
      	(DECL_CLASS_SCOPE_P): Use TYPE_P.
      	(add_friends): Remove.
      	(hack_decl_function_context): Likewise.
      	* call.c (build_new_function_call): Replace DECL_REAL_CONTEXT with
      	CP_DECL_CONTEXT.
      	(build_over_call): Fix indentation.  Use DECL_CONTEXT
      	instead of DECL_CLASS_CONTEXT.
      	* class.c (dfs_build_vcall_offset_vtbl_entries): Likewise.
      	(add_method): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
      	(strictly_overrides): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
      	(build_vtbl_or_vbase_field): Don't set DECL_CLASS_CONTEXT.
      	(build_base_field): Likewise.
      	(finish_struct_1): Likewise.
      	(build_self_reference): Likewise.
      	* decl.c (push_class_binding): Use CP_DECL_CONTEXT, not
      	DECL_REAL_CONTEXT.
      	(pushtag): Use decl_function_context, not
      	hack_decl_function_context.
      	(decls_match): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
      	(duplicate_decls): Use DECL_VIRTUAL_CONTEXT.
      	(pushdecl): Remove bogus code.
      	(start_decl): Use DECL_CONTEXT rather than DECL_CLASS_CONTEXT.
      	(cp_finish_decl): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
      	(grokfndecl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
      	Use decl_function_context, nothack_decl_function_context.
      	(grokvardecl): Don't set DECL_CLASS_CONTEXT.
      	(grokdeclarator): Likewise.  Use decl_function_context, not
      	hack_decl_function_context.
      	(copy_args_p): Document.  Don't use DECL_CLASS_CONTEXT.
      	(start_function): Use DECL_FRIEND_CONTEXT, not
      	DECL_CLASS_CONTEXT.  Use decl_function_context, not
      	hack_decl_function_context.
      	(finish_function): Use decl_function_context, not
      	hack_decl_function_context.
      	(maybe_retrofit_in_chrg): Use DECL_CONTEXT, not
      	DECL_CLASS_CONTEXT.
      	(grokclassfn): Set DECL_VIRTUAL_CONTEXT, not DECL_CONTEXT.
      	(finish_static_data_member_decl): Don't set DECL_CLASS_CONTEXT.
      	(grokfield): Likewise.
      	(finish_builtin_type): Likewise.
      	(finish_vtable_vardec): Use decl_function_context, not
      	hack_decl_function_context.
      	(import_export_decl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
      	(start_static_initialization_or_destruction): Likewise.
      	(finish_static_initialization_or_destruction): Likewise.
      	(mark_used): Adjust logic for deciding when to synthesize methods.
      	* dump.c (dequeue_and_dump): Use CP_DECL_CONTEXT, not
      	DECL_REAL_CONTEXT.
      	* error.c (dump_function_decl): Use DECL_CONTEXT, not
      	DECL_CLASS_CONTEXT.
      	* friend.c (is_friend): Likewise.
      	(add_friends): Remove.
      	(do_friend): Use SET_DECL_FRIEND_CONTEXT.
      	* lex.c (begin_definition_of_inclass_inline): Use
      	decl_function_context, not hack_decl_function_context.
      	(process_next_inline): Likewise.
      	(do_identifier): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
      	* method.c (set_mangled_name_for_decl): Use DECL_CONTEXT, not
      	DECL_CLASSS_CONTEXT.
      	(hack_identifier): Likewise.
      	(synthesize_method):  Use decl_function_context, not
      	hack_decl_function_context.
      	* pt.c (template_class_depth_real): Use CP_DECL_CONTEXT, not
      	DECL_REAL_CONTEXT.
      	(is_member_template): Use decl_function_context, not
      	hack_decl_function_context.  Use DECL_CONTEXT, not
      	DECL_CLASS_CONTEXT.
      	(build_template_decl): Set DECL_VIRTUAL_CONTEXT, not
      	DECL_CLASS_CONTEXT.
      	(check_default_tmpl_args): Use CP_DECL_CONTEXT, not
      	DECL_REAL_CONTEXT.
      	(push_template_decl_real): Likewise.
      	(instantiate_class_template): Don't call add_friends.
      	(tsubst_default_argument): Use DECL_CONTEXT, not
      	DECL_REAL_CONTEXT.
      	(tsubst_decl): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
      	Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
      	(set_meangled_name_for_template_decl): Use DECL_CONTEXT, not
      	DECL_CLASS_CONTEXT.
      	* repo.c (repo_inline_used): Likewise.
      	* search.c (current_scope): Adjust for new _CONTEXT macros.
      	(context_for_name_lookup): Use CP_DECL_CONTEXT, not
      	DECL_REAL_CONTEXT.
      	(friend_accessible_p): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
      	(lookup_fnfields_here):Likewise.
      	(check_final_overrider): Likewise.
      	(init_vbase_pointers): Likewise.
      	(virtual_context): Likewise.
      	* semantics.c (finish_member_declaration): Just set DECL_CONTEXT.
      	(expand_body): Use decl_function_context, not
      	hack_decl_function_context.
      	* tree.c (hack_decl_function_context): Remove.
      	* typeck.c (build_x_function_call): Use DECL_CONTEXT, not
      	DECL_CLASS_CONTEXT.
      	* typeck2.c (error_not_base_type): Likewise.
      
      From-SVN: r32018
      Mark Mitchell committed
    • jni.cc (_Jv_JNI_NewObjectV): Corrected assertion. · 1adbc4d8
      	* jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
      	(_Jv_JNI_NewObject): Likewise.
      	(_Jv_JNI_NewObjectA): Likewise.
      	(_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
      	as "return" type to _Jv_CallAnyMethodA.
      	(_Jv_JNI_CallAnyMethodA): Likewise.
      	(_Jv_JNI_CallAnyVoidMethodV): Likewise.
      
      From-SVN: r32017
      Tom Tromey committed
    • throwit.java: New file. · 5b0d59b4
      	* libjava.jni/throwit.java: New file.
      	* libjava.jni/throwit.c: New file.
      	* libjava.jni/throwit.out: New file.
      
      From-SVN: r32016
      Tom Tromey committed
    • * decl.c (xref_tag): Don't SET_IDENTIFIER_NAMESPACE_VALUE. · b32369e6
      From-SVN: r32015
      Jason Merrill committed
    • config.guess: Synchronize with master repository. · 7a15eef5
      	* config.guess: Synchronize with master repository.
      	* config.sub: Likewise.
      
      From-SVN: r32014
      Franz Sirl committed
    • jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not findClass. · d77a1640
      	* jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
      	findClass.
      
      From-SVN: r32013
      Tom Tromey committed
    • findclass.java: New file · 5bdd3ac1
      	* libjava.jni/findclass.java: New file
      	* libjava.jni/findclass.c: New file
      	* libjava.jni/findclass.out: New file
      
      From-SVN: r32012
      Tom Tromey committed
    • findclass.java: New file · 04297fe7
      	* libjava.jni/findclass.java: New file
      	* libjava.jni/findclass.c: New file
      	* libjava.jni/findclass.out: New file
      
      From-SVN: r32011
      Tom Tromey committed
    • Move RTL checking code into make_insn_raw · 47984720
      From-SVN: r32010
      Nick Clifton committed
    • configure (gcc_version): When setting, narrow search to lines containing `version_string'. · 4746ee26
      	* configure (gcc_version): When setting, narrow search to
      	lines containing `version_string'.
      
      gcc:
      	* version.c: Include gansidecl.h and version.h.
      
      	* version.h: Wrap entire file in macro __GCC_VERSION_H__.
      
      	* configure.in (gcc_version): When setting, narrow search to
      	lines containing `version_string'.
      
      	* Makefile.in (mainversion): Likewise.
      	(GCC_H): New variable.
      	(gcc.h): Delete target.
      	(gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
      	(version.o): Depend on version.h.
      	(dbxout.o): Don't depend on gcc.h.
      
      gcc/cp:
      	* Make-lang.in (g++spec.o): Depend on $(GCC_H), not gcc.h.
      
      gcc/f:
      	* Make-lang.in (g77spec.o): Depend on $(GCC_H), not gcc.h.
      
      gcc/java:
      	* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
      
      libf2c:
      	* configure.in (gcc_version): When setting, narrow search to
      	lines containing `version_string'.
      
      From-SVN: r32009
      Kaveh R. Ghazi committed
    • md.texi (Simple Constraints): Add item about whitespace. · 88a56c2e
      	* md.texi (Simple Constraints): Add item about whitespace.
      	* genoutput.c (strip_whitespace): New.
      	(scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
      	strip_whitespace for constraints.
      	Test pointer using NULL, not 0.
      
      Co-Authored-By: Michael Meissner <meissner@cygnus.com>
      
      From-SVN: r32008
      Hans-Peter Nilsson committed
    • Daily bump. · 1efa676d
      From-SVN: r32007
      Jeff Law committed
    • * cpplib.c (do_line): Pedwarn for #line > 32767. · 7113a160
      From-SVN: r32006
      Alexandre Oliva committed
    • Jonathan Larmour <jlarmour@redhat.co.uk>: · 3ea8083f
      Add new __GNUC_PATCHLEVEL__ define.
      
      From-SVN: r32004
      Jonathan Larmour committed
    • * config.sub: Add support for avr target. · ba96c72d
      From-SVN: r32003
      Denis Chertykov committed
    • * configure.in: Add support for avr target. · ed4acb3b
      From-SVN: r32002
      Denis Chertykov committed
    • InterfaceDispatch.java: New file. · 432ba90f
      2000-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
      
              * libjava.lang/InterfaceDispatch.java: New file.
              * libjava.lang/InterfaceDispatch.out: New file.
      
      From-SVN: r32001
      Bryce McKinlay committed
    • sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode. · c2843061
      	* sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
      	(sh_addr_diff_vec_mode): Don't declare.
      	* sh.c (sh_addr_diff_vec_mode): Delete.
      
      From-SVN: r32000
      J"orn Rennecke committed
    • decl2.c (lang_decode_option): Enable automatic line wrapping. · 7e05b7ae
      2000-01-16  Gabriel Dos Reis  <gdr@codesourcery.com>
      
              * decl2.c (lang_decode_option): Enable automatic line wrapping.
      
      From-SVN: r31999
      Gabriel Dos Reis committed
    • sh.md (udivsi3_i1, [...]): Name. · a512fa97
      	* sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
      	(smulsi3_highpart_i): Name.
      	(udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
      	(divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
      	(smulsi3_highpart, umulsi3_highpart): Likewise.
      
      	(mulsidi3_i, umulsidi3_i): Make rtl describe operation
      	correctly independent of endianness.
      	(mulsidi3, umulsidi3): Now define_insn.  Hide details that
      	confuse the optimizers.
      	(mulsidi3+1, umulsidi3+1): New define_split.
      
      From-SVN: r31997
      J"orn Rennecke committed
    • virtual.java: New file. · 73d7c689
      	* libjava.jni/virtual.java: New file.
      	* libjava.jni/virtual.c: New file.
      	* libjava.jni/virtual.out: New file.
      	* libjava.jni/final_method.java: New file.
      	* libjava.jni/final_method.c: New file.
      	* libjava.jni/final_method.out: New file.
      	* libjava.jni/overload.java: New file.
      	* libjava.jni/overload.c: New file.
      	* libjava.jni/overload.out: New file.
      	* libjava.jni/simple_int.java: New file.
      	* libjava.jni/simple_int.c: New file.
      	* libjava.jni/simple_int.out: New file.
      	* libjava.jni/invoke.out: New file.
      	* libjava.jni/invoke.c: New file.
      	* libjava.jni/invoke.java: New file.
      
      From-SVN: r31996
      Tom Tromey committed
    • resolve.cc (ncode): Set args_raw_size. · d348bda4
      	* resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
      	jni_arg_types.
      	(init_cif): Added `rtype_p' argument.
      	* include/java-interp.h (class _Jv_MethodBase): Added
      	args_raw_size.
      	(class _Jv_InterpMethod): Removed args_raw_size.
      	(class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
      	* jni.cc (call): Pass JNIEnv and (for static methods only) the
      	class pointer as well as the ordinary arguments.
      
      From-SVN: r31995
      Tom Tromey committed