1. 12 Dec, 1998 9 commits
    • Loks of changes so we can better compile from source. · 0b245181
      0
      Loks of changes so we can better compile from source.  See ChangeLog.
      
      From-SVN: r24276
      Per Bothner committed
    • parse.y (<type_declaration>): Do maybe_generate_clinit last. · 1287b91a
      	
      	* parse.y (<type_declaration>):  Do maybe_generate_clinit last.
      	(register_fields):  If a static fields has an initializer, just
      	chain it on ctxp->static_initialized, and handle later.
      	(java_complete_expand_methods):  Force <clinit> first.
      	(resolve_expression_name, resolve_field_access):  Just get DECL_INITIAL
      	- it's already been completed.
      	(patch_initialized_static_field):  New function.
      	(java_complete_field):  Call it.
      
      From-SVN: r24275
      Alexandre Petit-Bianco committed
    • parse.y (<type_declaration>): Do maybe_generate_clinit last. · 7525cc04
      �
      	* parse.y (<type_declaration>):  Do maybe_generate_clinit last.
      	(register_fields):  If a static fields has an initializer, just
      	chain it on ctxp->static_initialized, and handle later.
      	(java_complete_expand_methods):  Force <clinit> first.
      	(resolve_expression_name, resolve_field_access):  Just get DECL_INITIAL
      	- it's already been completed.
      	(patch_initialized_static_field):  New function.
      	(java_complete_field):  Call it.
      
      From-SVN: r24274
      Alexandre Petit-Bianco committed
    • expr.c (encode_newarray_type, [...]): New functions. · fdec99c6
      d
      	* expr.c (encode_newarray_type, build_new_array):  New functions.
      	* java-tree.h:  Declare build_new_array.
      	* jcf-write.c (patch_newarray):  Use build_new_array.
      	* expr.c (java_lang_expand_exp):  Support NEW_ARRAY_INIT.
      	* jcf-write.c (generate_bytecode_insns):  Support NEW_ARRAY_INIT.
      	* parse.y (patch_new_array_init):  Re-organize.
      	Now is passed the actual array (pointer) type of the value.
      	Set the type of the CONSTRUCTOR to be an ARRAY_TYPE.
      	(patch_array_constructor):  Removed - merged into patch_new_array_init.
       	(java_complete_tree):  Update patch_new_array_init.
      	* jcf-write.c (find_constant_index):  New function.
      	(generate_bytecode_insns):  Use find_constant_index.
      	(generate_classfile):  Use find_constant_index for ConstantValue.
      
      From-SVN: r24273
      Per Bothner committed
    • expr.c (encode_newarray_type, [...]): New functions. · df1e6be5
      a
      	* expr.c (encode_newarray_type, build_new_array):  New functions.
      	* java-tree.h:  Declare build_new_array.
      	* jcf-write.c (patch_newarray):  Use build_new_array.
      	* expr.c (java_lang_expand_exp):  Support NEW_ARRAY_INIT.
      	* jcf-write.c (generate_bytecode_insns):  Support NEW_ARRAY_INIT.
      	* parse.y (patch_new_array_init):  Re-organize.
      	Now is passed the actual array (pointer) type of the value.
      	Set the type of the CONSTRUCTOR to be an ARRAY_TYPE.
      	(patch_array_constructor):  Removed - merged into patch_new_array_init.
       	(java_complete_tree):  Update patch_new_array_init.
      	* jcf-write.c (find_constant_index):  New function.
      	(generate_bytecode_insns):  Use find_constant_index.
      	(generate_classfile):  Use find_constant_index for ConstantValue.
      
      From-SVN: r24272
      Per Bothner committed
    • expr.c (encode_newarray_type, [...]): New functions. · 05f9acdc
      	
      	* expr.c (encode_newarray_type, build_new_array):  New functions.
      	* java-tree.h:  Declare build_new_array.
      	* jcf-write.c (patch_newarray):  Use build_new_array.
      	* expr.c (java_lang_expand_exp):  Support NEW_ARRAY_INIT.
      	* jcf-write.c (generate_bytecode_insns):  Support NEW_ARRAY_INIT.
      	* parse.y (patch_new_array_init):  Re-organize.
      	Now is passed the actual array (pointer) type of the value.
      	Set the type of the CONSTRUCTOR to be an ARRAY_TYPE.
      	(patch_array_constructor):  Removed - merged into patch_new_array_init.
       	(java_complete_tree):  Update patch_new_array_init.
      	* jcf-write.c (find_constant_index):  New function.
      	(generate_bytecode_insns):  Use find_constant_index.
      	(generate_classfile):  Use find_constant_index for ConstantValue.
      
      From-SVN: r24271
      Per Bothner committed
    • alpha.c (alpha_expand_block_move): mode_for_size expects bits, not bytes. · f35cba21
              * alpha.c (alpha_expand_block_move): mode_for_size expects
              bits, not bytes.  Infer extra alignment from addressof.
      
      From-SVN: r24270
      Richard Henderson committed
    • decl.c (grokdeclarator): Allow field with same name as class in extern "C". · 4d7614e9
      	* decl.c (grokdeclarator): Allow field with same name as class
      	in extern "C".
      	* decl.c (lookup_name_real): Don't limit field lookup to types.
      	* class.c (check_member_decl_is_same_in_complete_scope): No error
      	if icv and x are the same.
      	* lex.c (do_identifier): Tweak error message.
      
      From-SVN: r24269
      Jason Merrill committed
    • Daily bump. · d5db8224
      From-SVN: r24268
      Jeff Law committed
  2. 11 Dec, 1998 12 commits
  3. 10 Dec, 1998 10 commits
  4. 09 Dec, 1998 9 commits
    • * flow.c: Update some comments. · c9852047
      From-SVN: r24226
      Jeffrey A Law committed
    • cp-tree.h (most_specialized_instantiation): New function. · 104bf76a
      	* cp-tree.h (most_specialized_instantiation): New function.
      	(print_candidates): Likewise.
      	* class.c (validate_lhs): Remove.
      	(resolve_address_of_overloaded_function): New function, split out
      	and then substantially reworked, from ...
      	(instantiate_type): Use it.  Simplify.
      	* cvt.c (convert_to_reference): Complain when caller has indicated
      	that's the right thing to do.  Don't crash if instantiate_type
      	fails.
      	* pt.c: Substitute `parameters' for `paramters' throughout.
      	(print_candidates): Don't make it static.
      	(most_specialized_instantiation): Split out from ...
      	(most_specialized): Here.
      
      From-SVN: r24225
      Mark Mitchell committed
    • java-tree.def (NEW_ARRAY_INIT): New Java tree code. · f8976021
      Wed Dec  9 15:37:05 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      	* java-tree.def (NEW_ARRAY_INIT): New Java tree code.
      	* lex.c (java_lex): Remember column position before advancing one
       	token. Retain location information on OCB_TK.
      	* lex.h (typedef struct java_lc): Added new field.
      	* parse.h (GET_SKIP_TYPE): New macro.
      	(QUAL_DECL_TYPE): Redefined using GET_SKIP_TYPE.
      	* parse.y (build_new_array_init, patch_new_array_init,
       	patch_array_constructor, maybe_build_array_element_wfl,
       	array_constructor_check_entry): New function prototypes.
      	(switch_block:): Tagged <node>.
      	(OCB_TK): Tagged <operator>.
      	(array_initializer:): Installed actions.
      	(variable_initializer): Build location information on element if
       	necessary.
      	(switch_statement:): Fixed indentation typo.
      	(switch_block:): Redefined default action.
      	(java_complete_tree): Handle NEW_ARRAY_INIT in MODIFY_EXPR:.
      	(patch_assignment): Removed duplicate code.
      	(maybe_build_array_element_wfl, build_new_array_init,
       	patch_new_array_init, patch_array_constructor,
       	array_constructor_check_entry): New functions.
      Parse and walk array initializer nodes.
      
      From-SVN: r24224
      Alexandre Petit-Bianco committed
    • lex.c (lang_init_options): Initialize cpplib. · dfb0fb1d
      Wed Dec  9 15:33:01 1998  Dave Brolley  <brolley@cygnus.com>
      	* lex.c (lang_init_options): Initialize cpplib.
      	* decl2.c (parse_options,cpp_initialized): Removed.
      	(lang_decode_option): Move initialization of cpplib to
      	lang_init_options.
      
      From-SVN: r24221
      Dave Brolley committed
    • objc-act.c (cpp_initialized): Removed. · 8a1a524a
      Wed Dec  9 15:29:26 1998  Dave Brolley  <brolley@cygnus.com>
      	* objc/objc-act.c (cpp_initialized): Removed.
      	(lang_init_options): Initialize cpplib.
      	(lang_decode_option): Move initialization of cpplib to
      	lang_init_options.
      
      From-SVN: r24220
      Dave Brolley committed
    • c-lang.c: (parse_options,parse_in): Added. · 5d7da2c6
      Wed Dec  9 15:29:26 1998  Dave Brolley  <brolley@cygnus.com>
      	* c-lang.c: (parse_options,parse_in): Added.
      	(lang_init_options): Initialized cpplib here.
      	* c-decl.c (parse_options,cpp_initialized): Removed.
      	(c_decode_option): Move initialization of cpplib to
      	lang_init_options.
      
      From-SVN: r24219
      Dave Brolley committed
    • decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL... · 33964bf4
      	* decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL, as
      	well as the TYPE_DECL, when a typedef name is assigned to a
      	previously anonymous type.
      
      From-SVN: r24218
      Mark Mitchell committed
    • Typo fix in last entry. · a0078b37
      From-SVN: r24217
      Joern Rennecke committed