Commit Graph

19954 Commits

Author SHA1 Message Date
Nathan Sidwell 9becac0c3e reload1.c (eliminate_regs): Don't do anything, if we're not generating code.
�
        * reload1.c (eliminate_regs): Don't do anything, if we're not
        generating code.

From-SVN: r24167
1998-12-07 15:10:43 -07:00
Alexandre Petit-Bianco ac8258565c parse.y (array_initializer): Tagged <node>.
Mon Dec  7 15:13:52 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.y (array_initializer): Tagged <node>.
	(variable_initializer:): Use default rule.
	(array_initializer:): Defined actions.
	(variable_initializers:): Likewise.
	(resolve_qualified_expression_name): Use DECL_CONTEXT to build
 	non-static field accesses.
	(patch_invoke): Fixed indentation typo.
	(java_complete_tree): Likewise.
	(build_labeled_block): Changed leading comment. Generate an error
 	in case of duplicate loop labels.
	(patch_conditional_expr): Patch results of string concatenation
 	operations.
Fixes a ?: bug when string concatenation operator are in
operands. Makes duplicate loop label declaration an error. Fixes
random bugs.

From-SVN: r24164
1998-12-07 08:23:02 -08:00
Per Bothner 89e09b9a23 constants.c (find_methodref_index): When the class is an interface...
d
	* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24163
1998-12-07 07:43:16 -08:00
Per Bothner 23a7b8f510 constants.c (find_methodref_index): When the class is an interface...
a
	* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24162
1998-12-07 07:43:15 -08:00
Per Bothner 157412f5c7 constants.c (find_methodref_index): When the class is an interface...
T
	* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24161
1998-12-07 07:43:14 -08:00
Per Bothner 72a0aac6d2 constants.c (find_methodref_index): When the class is an interface...
/
	* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24160
1998-12-07 07:43:11 -08:00
Per Bothner 2dfaf550bd constants.c (find_methodref_index): When the class is an interface...
* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24159
1998-12-07 07:43:10 -08:00
DJ Delorie 5f680ab65b Fix -membedded-data bug found by mips16 port.
* mips/mips.h (ENCODE_SECTION_INFO): Handle TARGET_EMBEDDED_DATA.
	Add comment.
	* mips/mips.c (mips_select_section): Add comment.

From-SVN: r24158
1998-12-07 07:32:26 -08:00
Mike Stump 069f7cf27a lex.c (check_newline): Add support for \ as `natural' characters in file names in #line to be...
Mon Dec  7 17:56:06 1998  Mike Stump  <mrs@wrs.com>
	* lex.c (check_newline): Add support for \ as `natural'
	characters in file names in #line to be consistent with #include
	handling.  We support escape prcessing in the # 1 "..." version of
	the command.

From-SVN: r24157
1998-12-07 10:02:16 -05:00
Mike Stump c25d8793cc cccp.c (ignore_escape_flag): Add support for \ as `natural' characters in file names in #line to be...
Mon Dec  7 17:55:06 1998  Mike Stump  <mrs@wrs.com>
	* cccp.c (ignore_escape_flag): Add support for \ as `natural'
	characters in file names in #line to be consistent with #include
	handling.  We support escape prcessing in the # 1 "..." version of
	the command.  See also support in cp/lex.c.
	(handle_directive): Likewise.
	(do_line): Likewise.

From-SVN: r24156
1998-12-07 09:57:30 -05:00
Zack Weinberg 3a5ac29d20 decl2.c: s/data/opts/ when initializing cpp_reader structure.
1998-12-07  Zack Weinberg  <zack@rabi.phys.columbia.edu>
	* cp/decl2.c: s/data/opts/ when initializing cpp_reader
          structure.

From-SVN: r24155
1998-12-07 09:20:55 -05:00
Zack Weinberg c50bca0894 cpplib.c (initialize_char_syntax): Use ISALPHA and ISALNUM so it'll work on non-ASCII platforms.
1998-12-07  Zack Weinberg  <zack@rabi.phys.columbia.edu>
	* cpplib.c (initialize_char_syntax): Use ISALPHA and ISALNUM
          so it'll work on non-ASCII platforms.  Always consider $ an
          identifier character.  Take no arguments.
	  (cpp_reader_init): Call initialize_char_syntax with no
          arguments.
	  (cpp_start_read): Don't call initialize_char_syntax again.
          Clear is_idchar['$'] and is_idstart['$'] if not
          opts->dollars_in_ident.
	* cpplib.h (struct cpp_reader): Replace void *data element by
          cpp_options *opts.  Rearrange elements to make gdb printout
          less annoying (put buffer stack at end).
	  (CPP_OPTIONS): Get rid of now-unnecessary cast.
	* cppmain.c: s/data/opts/ when initializing cpp_reader
          structure.
	* c-decl.c: Likewise.
	* objc/objc-act.c: Likewise.
	* fix-header.c: Likewise.

From-SVN: r24154
1998-12-07 09:15:29 -05:00
Zack Weinberg f1a86df6cb cpplib.h (struct cpp_buffer): Replace dir and dlen members with a struct file_name_list pointer.
1998-11-26 01:17 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
	* cpplib.h (struct cpp_buffer): Replace dir and dlen members
	with a struct file_name_list pointer.
	(struct cpp_reader): Add pointer to chain of `actual
	directory' include searchpath entries.
	(struct file_name_list): Add *alloc pointer for the sake of
	the actual-directory chain.
	Move definition of HOST_WIDE_INT here.
	(cpp_parse_escape): Change prototype to match changes in
	cppexp.c.
	* cppfiles.c (actual_directory): New function.
	(finclude): Use it to initialize the buffer's actual_dir
	entry.
	(find_include_file): We don't need to fix up max_include_len
	here.
	* cpplib.c (do_include): Don't allocate a file_name_list on
	the fly for current directory "" includes, use the one that's
	been preallocated in pfile->buffer->actual_dir.  Hoist out
	duplicate code from the search_start selection logic.
	(cpp_reader_init): Initialize pfile->actual_dirs.
	Remove definition of HOST_WIDE_INT.  Change calls
	to cpp_parse_escape to match changes in cppexp.c (note
	hardcoded MASK, which is safe since this is the source
	character set).
	* cppexp.c: Bring over changes to cpp_parse_escape from cccp.c
	to handle wide character constants in #if directives.  The
	function now returns a HOST_WIDE_INT, and takes a third
	argument which is a binary mask for all legal values (0x00ff
	for 8-bit `char', 0xffff for 16-bit `wchar_t', etc.)  Define
	MAX_CHAR_TYPE_MASK and MAX_WCHAR_TYPE_MASK.  Change callers of
	cpp_parse_escape to match.  [Fixes c-torture/execute/widechar-1.c]

From-SVN: r24153
1998-12-07 08:35:20 -05:00
Dave Brolley 93447205e5 [multiple changes]
Mon Dec  7 15:38:25 1998  Dave Brolley  <brolley@cygnus.com>
	* gcc.c (default_compilers): Fix typo in USE_CPPLIB spec for cc1.
Mon Dec  7 15:38:25 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
        * c-aux-info.c (concat): Wrap function definition in !USE_CPPLIB.
        * cppalloc.c: Move function `xcalloc' from cpplib.c to here.
        * cpplib.c: Move function `xcalloc' from here to cppalloc.c.

From-SVN: r24152
1998-12-07 07:42:21 -05:00
Jason Merrill f070035e54 update
From-SVN: r24151
1998-12-07 07:27:51 -05:00
Jason Merrill 2642b9bfd5 decl.c (build_typename_type): Set DECL_ARTIFICIAL.
* decl.c (build_typename_type): Set DECL_ARTIFICIAL.
	* error.c (dump_simple_decl): Also print namespace context.
	(dump_function_decl): Likewise.
	* decl2.c (ambiguous_decl): Don't print old value if it's
	error_mark_node.
	* decl.c (lookup_name_real): Fix handling of local types shadowed
	by a non-type decl.  Remove obsolete code.
	* cp-tree.h (DECL_FUNCTION_SCOPE_P): New macro.
Fixes g++.other/lookup6.C
	* lang-options.h: Add -fpermissive.
	* decl2.c: Likewise.
	* cp-tree.h: Add flag_permissive.
	* decl.c (init_decl_processing): If neither -fpermissive or -pedantic
	were specified, set flag_pedantic_errors.
	* call.c (build_over_call): Turn dropped qualifier messages
	back into pedwarns.
	* cvt.c (convert_to_reference): Likewise.
	* typeck.c (convert_for_assignment): Likewise.

From-SVN: r24150
1998-12-07 07:27:47 -05:00
Nick Clifton 1db9f6ceae Improve -dp output by using tabs and including instruciton lengths
From-SVN: r24149
1998-12-07 11:45:49 +00:00
Michael Hayes eb6a3bc0b4 loop.c (check_dbra_loop): Fix initial_value and initial_equiv_value in the loop_info structure.
* loop.c (check_dbra_loop): Fix initial_value and initial_equiv_value
        in the loop_info structure.
Should fix -O1 -funroll-loops bootstrap problems.

From-SVN: r24146
1998-12-07 02:56:56 -07:00
Catherine Moore e6592fffc4 configure.in: (arm*-*-ecos-elf): New target.
Mon Dec  7 09:58:26 1998  Catherine Moore  <clm@cygnus.com>
        * configure.in:  (arm*-*-ecos-elf):  New target.
        * configure:  Regenerated.
        * config/arm/elf.h (ASM_WEAKEN_LABEL):  Define.
        * config/arm/ecos-elf.h:  New file.
        * config/arm/unknown-elf.h (TARGET_VERSION):  Check
        for redefinition.

From-SVN: r24145
1998-12-07 04:15:34 -05:00
J"orn Rennecke 1a953d0f16 * sh.c (output_far_jump): Emit braf only for TARGET_SH2.
From-SVN: r24144
1998-12-07 08:18:29 +00:00
Jeff Law e253ffc28b Daily bump.
From-SVN: r24142
1998-12-06 17:45:03 -07:00
Per Bothner 0f0d331917 jcf-dump.c (INVOKE): If invokeinterface, print number of args.
* jcf-dump.c (INVOKE):  If invokeinterface, print number of args.

From-SVN: r24140
1998-12-06 05:46:42 -08:00
Jeffrey A Law 8962b4b434 Bump for snapshot
From-SVN: r24132
1998-12-05 21:19:49 -07:00
Michael Hayes 5629b16c01 loop.c (check_dbra_loop): New argument loop_info.
* loop.c (check_dbra_loop): New argument loop_info.  Update fields
        as needed.

From-SVN: r24131
1998-12-05 21:19:20 -07:00
Jeffrey A Law 01bdf1bc98 Bump for snapshot
From-SVN: r24130
1998-12-05 20:40:17 -07:00
Jeff Law 34cc7eff3b Revert accidental checkin from Oct 31 (egad).
From-SVN: r24129
1998-12-05 20:02:47 -07:00
Alexandre Oliva 7dc8c71409 * gcc.dg/ultrasp1.c: New test.
From-SVN: r24127
1998-12-06 02:16:21 +00:00
Alexandre Oliva badcf91620 gcc.texi (Bug Reporting): 40Kb is a soft limit, larger compressed reports are ok and preferred over URLs
* gcc.texi (Bug Reporting): 40Kb is a soft limit, larger
	compressed reports are ok and preferred over URLs

From-SVN: r24126
1998-12-06 02:01:26 +00:00
Alexandre Oliva 892d0a6dfc * invoke.texi (Warning Options): Soften the tone of -pedantic
From-SVN: r24125
1998-12-06 01:56:01 +00:00
Jason Merrill e5b0708ab9 sort
From-SVN: r24124
1998-12-05 20:44:12 -05:00
H.J. Lu cd2c4c543f Forgot to commit.
From-SVN: r24123
1998-12-05 18:35:55 -07:00
Jason Merrill ee996e9e57 decl2.c (coerce_new_type): Use same_type_p.
* decl2.c (coerce_new_type): Use same_type_p.
	(coerce_delete_type): Likewise.
	* call.c (check_dtor_name): Return 1, not error_mark_node.

From-SVN: r24122
1998-12-05 20:33:10 -05:00
Richard Henderson 02e3377d92 alias.c (memrefs_conflict_p): A second ANDed address disables the aligned address optimization.
* alias.c (memrefs_conflict_p): A second ANDed address
        disables the aligned address optimization.

From-SVN: r24121
1998-12-05 17:23:01 -08:00
Jason Merrill 07f04c9162 update
From-SVN: r24120
1998-12-05 20:21:51 -05:00
Jason Merrill d3a8b79bc2 fix size_t
From-SVN: r24119
1998-12-05 20:18:21 -05:00
Richard Henderson 11f39bb852 New test.
From-SVN: r24118
1998-12-05 16:46:00 -08:00
Jeff Law 9186280e24 Daily bump.
From-SVN: r24117
1998-12-05 17:45:02 -07:00
H.J. Lu 5edc923076 print-rtl.c (print_rtx): Add prototype.
* print-rtl.c (print_rtx): Add prototype.
        * unroll.c (iteration_info): Make it static.

From-SVN: r24116
1998-12-05 16:23:52 -07:00
Alexandre Oliva c3a6e90500 * g++.old-deja/g++.ns/template7.C: New test.
From-SVN: r24115
1998-12-05 23:10:15 +00:00
Alexandre Oliva 2732314e1e * g++.old-deja/g++.other/expr1.C: New test.
From-SVN: r24114
1998-12-05 22:46:57 +00:00
Alexandre Oliva ad98743694 * g++.old-deja/g++.eh/tmpl3.C: New test.
From-SVN: r24113
1998-12-05 22:39:22 +00:00
Alexandre Oliva 658269bda2 * g++.old-deja/g++.eh/tmpl2.C: New test.
From-SVN: r24112
1998-12-05 22:37:32 +00:00
Richard Henderson 4bd75896d3 alpha.c (alpha_emit_set_const_1): Fix parenthesis error in -c << n case.
* alpha.c (alpha_emit_set_const_1): Fix parenthesis error
        in -c << n case.

From-SVN: r24111
1998-12-05 10:51:00 -08:00
Jason Merrill c78358d473 * i960.h (BOOL_TYPE_SIZE): Define.
From-SVN: r24110
1998-12-05 10:17:24 -05:00
Michael Hayes e868a8406d c4x.c (valid_parallel_load_store): Flog functionality from old valid_parallel_operands_4.
* config/c4x/c4x.c (valid_parallel_load_store): Flog functionality
	from old valid_parallel_operands_4.
	(valid_parallel_operands_4): Check that operands for 4 operand
	parallel insns are valid, excluding load/store insns.
	* config/c4x/c4x.h (valid_parallel_load_store): Add prototype.
	* config/c4x/c4x.md (*movqf_parallel, *movqi_parallel): Use
	valid_parallel_load_store instead of valid_parallel_operands_4.
	(*absqf2_movqf_clobber, *floatqiqf2_movqf_clobber,
	*negqf2_movqf_clobber, *absqi2_movqi_clobber,
	*fixqfqi2_movqi_clobber, *negqi2_movqi_clobber,
	*notqi_movqi_clobber): Use valid_parallel_operands_4.
	(*subqf3_movqf_clobber, *ashlqi3_movqi_clobber,
	*ashrqi3_movqi_clobber, *lshrqi3_movqi_clobber,
	*subqi3_movqi_clobber): Use valid_parallel_operands_5.

From-SVN: r24108
1998-12-05 03:39:17 +00:00
Michael Hayes cd20cc860b * config/c4x/c4x.c (iteration_info): Delete.
From-SVN: r24107
1998-12-05 02:54:53 +00:00
Jeff Law 4354ec9a6a Daily bump.
From-SVN: r24106
1998-12-04 17:45:02 -07:00
Jason Merrill 053a61cbeb lex.c (handle_cp_pragma): Disable #pragma interface/implementation if MULTIPLE_SYMBOL_SPACES.
* lex.c (handle_cp_pragma): Disable #pragma interface/implementation
	if MULTIPLE_SYMBOL_SPACES.

From-SVN: r24104
1998-12-04 16:39:25 -05:00
Benjamin Kosnik 2f38dfa109
nortel regressions since 97r1

From-SVN: r24097
1998-12-04 19:12:58 +00:00
Benjamin Kosnik 8028e52a02
nortel regressions since 97r1

From-SVN: r24096
1998-12-04 19:12:58 +00:00