Commit Graph

19854 Commits

Author SHA1 Message Date
Benjamin Kosnik
4f18e4776e *** empty log message ***
From-SVN: r24095
1998-12-04 19:12:58 +00:00
Benjamin Kosnik
91f51a6d66 H
nortel regressions since 97r1

From-SVN: r24094
1998-12-04 19:12:58 +00:00
Benjamin Kosnik
543df66a56
nortel regressions since 97r1

From-SVN: r24093
1998-12-04 19:12:58 +00:00
Bernd Schmidt
faa9eb1977 * tm.texi (SMALL_REGISTER_CLASSES): Make description match reality.
From-SVN: r24092
1998-12-04 13:09:39 +00:00
Alexandre Oliva
4dab1f3e9f using5.C: usified using[567].C here
* g++.old-deja/g++.other/using5.C: usified using[567].C here
	* g++.old-deja/g++.other/using6.C: removed
	* g++.old-deja/g++.other/using7.C: Mark Mitchel removed it

From-SVN: r24091
1998-12-04 12:57:50 +00:00
Bernd Schmidt
f62a15e367 final.c (cleanup_subreg_operands): Delete some unused code.
* final.c (cleanup_subreg_operands): Delete some unused code.
	* recog.h (MAX_RECOG_ALTERNATIVES): New macro.
	(struct insn_alternative): New structure definition.
	(recog_op_alt): Declare variable.
	(preprocess_constraints): Declare function.
	* recog.c (recog_op_alt): New variable.
	(extract_insn): Verify number of alternatives is in range.
	(preprocess_constraints): New function.
	* reg-stack.c: Include recog.h.
	(constrain_asm_operands): Delete.
	(get_asm_operand_lengths): Delete.
	(get_asm_operand_n_inputs): New function.
	(record_asm_reg_life): Delete OPERANDS, CONSTRAINTS, N_INPUTS and
	N_OUTPUTS args.  All callers changed.
	Compute number of inputs and outputs here by calling
	get_asm_operand_n_inputs.
	Instead of constrain_asm_operands, call extract_insn,
	constrain_operands and preprocess_constaints.  Use information
	computed by these functions throughout.
	(record_reg_life): Delete code that is unused due to changes in
	record_asm_reg_life.
	(subst_asm_stack_regs): Delete OPERANDS, OPERAND_LOC, CONSTRAINTS,
	N_INPUTS and N_OUTPUTS args.  All callers changed.
	Similar changes as in record_asm_reg_life.
	(subst_stack_regs): Move n_operands declaration into the if statement
	where it's used.
	Delete code that is unused due to changes in subst_asm_stack_regs.
	* stmt.c (expand_asm_operands): Verify number of alternatives is in
	range.
	* Makefile.in (reg-stack.o): Depend on recog.h.

From-SVN: r24090
1998-12-04 12:55:59 +00:00
Alexandre Oliva
71eb0b9ec3 * g++.old-deja/g++.pt/spec20.C: Re-insert non-bogus ERROR marks.
From-SVN: r24089
1998-12-04 11:31:32 +00:00
Jason Merrill
f3400fe27c pt.c (check_template_shadow): New fn.
* pt.c (check_template_shadow): New fn.
	* decl2.c (grokfield): Use it.
	* decl.c (pushdecl): Likewise.
	(pushdecl_class_level): Likewise.
	(start_method): Likewise.
	(xref_tag): Don't try to use 't' if we're defining.
Fixes Sec14/7/C14387.cm.
	* call.c (check_dtor_name): Just return an error_mark_node.
	* pt.c (lookup_template_class): Complain about using non-template here.
	* parse.y (apparent_template_type): Not here.
Fixes Sec14/C14339.cm.
	* pt.c (check_explicit_specialization): Complain about specialization
	with C linkage.
Fixes Sec14/C14340.cm.
	* lang-options.h: Add -f{no-,}implicit-inline-templates.
	* pt.c (convert_nontype_argument): Don't assume that any integer
	argument is intended to be a constant-expression.
Fixes Sec14/7/P14245.C.

From-SVN: r24086
1998-12-04 06:14:21 -05:00
Jeffrey A Law
2ec10ea98a * except.c (set_exception_version_code): Argument is an "int".
From-SVN: r24085
1998-12-03 18:26:15 -07:00
Christopher Faylor
8d525fa8a7 * pexecute.c: Remove obsolete ifdefed cygwin code.
From-SVN: r24084
1998-12-03 18:21:00 -07:00
Jeff Law
36e77ea6ff Daily bump.
From-SVN: r24083
1998-12-03 17:45:02 -07:00
Joseph Myers
f4190acc20 pdp11.h: Use optimize_size for space optimizations.
* pdp11.h: Use optimize_size for space optimizations.
	* pdp11.c: Likewise.
	* pdp11.md: Likewise.

From-SVN: r24082
1998-12-03 17:40:21 -07:00
Jeff Law
d1a0959019 [multiple changes]
Fri Dec  4 01:34:02 1998  Jeffrey A Law  (law@cygnus.com)
        * config.guess: Improve detection of hppa2.0 processors.
Fri Dec  4 01:33:05 1998  Niall Smart <nialls@euristix.ie>
        * config.guess: Recognize FreeBSD using ELF automatically.

From-SVN: r24081
1998-12-03 17:36:49 -07:00
Robert Lipe
18cae839b4 configure.in (mipsel-*-linux*): New target.
* configure.in (mipsel-*-linux*): New target.
	* mips/linux.h: New file, based on other Linux targets.

From-SVN: r24080
1998-12-03 17:32:33 -07:00
Mike Stump
0fcff08299 gthr-vxworks.h (__ehdtor): Fix memory leak.
* gthr-vxworks.h (__ehdtor): Fix memory leak.  The delete hook
        runs in the context of the deleter, not the deletee, so we must
        use taskVarGet to find the correct memory to free.
        (__gthread_key_create): Initialize the task
        variable subsystem so that the task variable is still active when
        the delete hook is run.

From-SVN: r24079
1998-12-03 17:28:34 -07:00
Jeff Law
9f643ff81d * pdp11.h (TARGET_40_PLUS): Fix typo.
From-SVN: r24078
1998-12-03 17:24:58 -07:00
Alexandre Petit-Bianco
1886c9d836 java-tree.h (java_layout_seen_class_methods): New function prototype.
Thu Dec  3 17:11:12 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* java-tree.h (java_layout_seen_class_methods): New function
 	prototype.
	(LAYOUT_SEEN_CLASS_METHODS): Macro removed.
	* jcf-parse.c (parse_class_file): Call java_layout_seen_class_methods.
	* parse.h (PROMOTE_RECORD_IF_COMPLETE): New macro.
	* parse.y (method_declarator:): Defined action.
	(issue_warning_error_from_context): input_filename saved, set to
 	the appropriate value and restored after java_error is called.
	(build_unresolved_array_type): Fixed comment.
	(register_fields): Use PROMOTE_RECORD_IF_COMPLETE.
	(method_header): Deal with return type the same way type are
 	handled for fields and method's parameters and local variables
 	types are handled.
	(check_method_redefinition): Removed extra CR.
	(declare_local_variables): Use PROMOTE_RECORD_IF_COMPLETE.
	(java_layout_seen_class_methods): New function.
	(java_layout_classes): Call java_layout_seen_class_methods.
Handles an obsolete way of declaring methods returning an array. Does
a better job at laying out class methods before code generation.

From-SVN: r24077
1998-12-03 09:53:02 -08:00
Mark Mitchell
2036a15c6d class.c (handle_using_decl): Fix comment.
* class.c (handle_using_decl): Fix comment.  Don't lookup
	constructors in base classes.
	(validate_lhs): Fix typo in comment.
	* search.c (lookup_field_1): Don't return a USING_DECL.
	* cp-tree.h (DECL_ACCESS): Improve documentation.
	* decl.c (expand_static_init): Don't set the initialization-done
	flag until the initialization is done.

From-SVN: r24076
1998-12-03 16:58:03 +00:00
Per Bothner
52e01aa669 parse,y (patch_synchronized_statement): Set CAN_COMPLETE_NORMALLY.
* parse,y (patch_synchronized_statement):  Set CAN_COMPLETE_NORMALLY.

From-SVN: r24075
1998-12-03 07:58:21 -08:00
Per Bothner
55593efd85 parse,y (patch_synchronized_statement): Set CAN_COMPLETE_NORMALLY.
8
	* parse,y (patch_synchronized_statement):  Set CAN_COMPLETE_NORMALLY.

From-SVN: r24074
1998-12-03 07:58:20 -08:00
Per Bothner
66af84e403 jcf-dump.c (main): Fix error message.
* jcf-dump.c (main):  Fix error message.
	* jcf-path.c (add_entry):  Style fix.

From-SVN: r24073
1998-12-03 07:54:09 -08:00
Alexandre Oliva
b0e3f98f89 * g++.old-deja/g++.pt/overload8.C: New test.
From-SVN: r24072
1998-12-03 13:32:56 +00:00
Alexandre Oliva
10e209e304 * g++.old-deja/g++.pt/overload7.C: New test.
From-SVN: r24071
1998-12-03 12:52:05 +00:00
Alexandre Oliva
174a498bca * g++.old-deja/g++.pt/spec20.C: ERROR marks were bogus
From-SVN: r24070
1998-12-03 11:24:23 +00:00
Alexandre Oliva
16fe4796d6 old-dejagnu.exp (old-dejagnu): ignore collect recompiling and relinking messages
* lib/old-dejagnu.exp (old-dejagnu): ignore collect recompiling
	and relinking messages
	* lib/g++.exp (g++_target_compile): remove .rpo file when
	compiling with -frepo

From-SVN: r24069
1998-12-03 11:21:28 +00:00
Michael Hayes
39cec1ac5a alias.c (addr_side_effect_eval): New function.
* alias.c (addr_side_effect_eval): New function.
	(memrefs_conflict_p): Use it.
	* rtl.h (addr_side_effect_eval): Prototype it.

From-SVN: r24068
1998-12-03 01:32:23 +00:00
Jeff Law
5cf068b168 Daily bump.
From-SVN: r24067
1998-12-02 17:45:03 -07:00
Joseph Myers
a6a715cacc * pdp11.md (extendsfdf2): Fix mode mismatch in SET.
From-SVN: r24066
1998-12-02 11:56:11 -07:00
Alexandre Petit-Bianco
c3f2a47690 class.c (layout_class_method): Call build_java_argument_signature on constructors too.
Wed Dec  2 15:52:25 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* class.c (layout_class_method): Call build_java_argument_signature
	on constructors too.
	* parse.y (check_method_redefinition): Use TYPE_ARGUMENT_SIGNATURE.
	(patch_method_invocation): Define a primary when resolving an
 	expression name. Augmented comment on code checking illegal `this'
 	usage. Loosened it test by accepting NEW_CLASS_EXPR.

From-SVN: r24065
1998-12-02 08:47:33 -08:00
Jim Wilson
226592de98 Fix reload bug that forced earlier x86 LEGITIMATE_CONSTANT_P change.
* reload.c (find_reloads): When force const to memory, put result
	in substed_operand not *recog_operand_loc.

From-SVN: r24064
1998-12-02 03:22:06 -08:00
Ulrich Drepper
1747054ffd Update.
From-SVN: r24063
1998-12-02 10:47:38 +00:00
Ulrich Drepper
b6ca239df2 Fix indentation from last patch.
Remove trailing whitespace.

From-SVN: r24062
1998-12-02 10:44:51 +00:00
Ulrich Drepper
75cb8865ae Fix indentation from last patch.
Remove trailing whitespace.

From-SVN: r24061
1998-12-02 10:36:07 +00:00
Mark Mitchell
066b4a1cc8 decl2.c (validate_nonmember_using_decl): Complain about using declarations for class members.
* decl2.c (validate_nonmember_using_decl): Complain about using
	declarations for class members.

From-SVN: r24060
1998-12-02 10:12:20 +00:00
Jeff Law
b7f7462b7a flow.c (delete_block): Call set_last_insn after we have reset NEXT_INSN (kept_tail).
8
        * flow.c (delete_block): Call set_last_insn after we have reset
        NEXT_INSN (kept_tail).

From-SVN: r24059
1998-12-02 02:14:57 -07:00
Jeff Law
2536e1eefe flow.c (delete_block): Call set_last_insn after we have reset NEXT_INSN (kept_tail).
�
        * flow.c (delete_block): Call set_last_insn after we have reset
        NEXT_INSN (kept_tail).

From-SVN: r24058
1998-12-02 02:14:54 -07:00
Ulrich Drepper
6b42b9ea0a Add missing @section.
From-SVN: r24057
1998-12-02 08:08:38 +00:00
Jeff Law
2c09c59554 Daily bump.
From-SVN: r24054
1998-12-01 17:45:02 -07:00
Jeffrey A Law
b151501eba * mips.md (trap_if): Use "$0" for the value zero.
From-SVN: r24053
1998-12-01 16:50:04 -07:00
Jeffrey A Law
e3f6ee2303 flow.c (delete_block): Call set_last_insn if we end up deleting the last insn in the rtl chain.
* flow.c (delete_block): Call set_last_insn if we end up deleting the
	last insn in the rtl chain.

From-SVN: r24052
1998-12-01 16:19:12 -07:00
Ulrich Drepper
6f4d72224e c-common.c (declare_function_name): Declare predefinied variable `__func__'.
* c-common.c (declare_function_name): Declare predefinied variable
        `__func__'.
        * c-decl.c (flag_isoc9x): Set to 1 by default.
        (c_decode_option): Handle -std= option.  Remove -flang-isoc9x.
        (grokdeclarator): Always emit warning about implicit int for ISO C 9x.
        * c-parse.in: Allow constructors in ISO C 9x.
        Rewrite designator list handling.
        Allow [*] parameters.
        Don't warn about comma at end of enum definition for ISO C 9x.
        * cccp.c (c9x): New variable.
        (rest_extension): New variable.
        (print_help): Document new -std= option.
        (main): Recognize -std= option.  Set c9x appropriately.
        (create_definition): Recognize ISO C 9x vararg macros.
        * gcc.c (default_compilers): Adjust specs for -std options.
        (option_map): Add --std.
        (display_help): Document -std.
        * toplev.c (documented_lang_options): Add -std and remove
        -flang-isoc9x.
        * c-lex.c (yylex): Recognize hex FP constants and call REAL_VALUE_ATOF
        or REAL_VALUE_HTOF based on base of the constants.
        * fold-const.c (real_hex_to_f): New function.  Replacement function
        for hex FP conversion if REAL_ARITHMETIC is not defined.
        * real.c (asctoeg): Add handling of hex FP constants.
        * real.h: Define REAL_VALUE_HTOF if necessary using ereal_atof or
        real_hex_to_f.

Co-Authored-By: Richard Henderson <rth@cygnus.com>
Co-Authored-By: Stephen L Moshier <moshier@world.std.com>

From-SVN: r24049
1998-12-01 13:05:17 -08:00
Stan Cox
8da31fc171 mips.md (div_trap): Lost last return while editing conflicts.
From-SVN: r24048
1998-12-01 19:14:51 +00:00
Stan Cox
08c2951c86 mips.md (divmodsi4*, [...]): Add -mcheck-range-division/ -mcheck-zero-division checking.
* mips.md (divmodsi4*, divmoddi4*, udivmodsi4*, udivmoddi4): Add -mcheck-range-division/
-mcheck-zero-division checking.  Avoid as macro expansion.  Use hi/lo as destination
register.
(div_trap): New.
(divsi3*, divdi3*, modsi3*, moddi3*, udivsi3*, udivdi3*, umodsi3*,
umoddi3*): Add -mcheck-range-division/-mcheck-zero-division checking.
Avoid as macro expansion.  Use hi/lo as destination register.
* mips.h (MASK_CHECK_RANGE_DIV): New.
(MASK_NO_CHECK_ZERO_DIV): New.
(ELIMINABLE_REGS): Added GP_REG_FIRST + 31.
(CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): Allow for getting
return address for leaf functions out of r31 to support
builtin_return_address.

From-SVN: r24047
1998-12-01 16:52:56 +00:00
Herman A.J. ten Brugge
1f5fb51fab Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
        * jump.c (jump_optimize): Call regs_set_between_p with PREV_INSN(x),
        NEXT_INSN(x) to check insn x.

From-SVN: r24046
1998-12-01 07:06:35 -08:00
Jeffrey A Law
45c85c4e71 reload1.c (reload): Do not set reload_completed or split insns here.
* reload1.c (reload): Do not set reload_completed or split insns
        here.  Instead...
        * toplev.c (rest_of_compilation): Set reload_completed after
        reload returns.  Split insns after reload_cse has run.

From-SVN: r24037
1998-12-01 07:36:51 -07:00
Alexandre Petit-Bianco
82371d41c2 class.c (layout_class_method): Don't report error on non-static overriding static if the method is private.
Tue Dec  1 13:53:24 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* class.c (layout_class_method): Don't report error on non-static
 	overriding static if the method is private.
	* java-tree.h (finish_class): Prototype added.
	* lex.c (java_get_line_col): Handle col argument -2 value.
	* parse.h: All static method declarations moved to parse.y.
	* parse.y: Now contains all static method declarations previously
 	found in parse.h.
	(find_expr_with_wfl, missing_return_error,
 	unreachable_stmt_error): New functions.
	(java_get_real_method_name): Identify constructors bearing class
 	names in source code compiled classes only.
	(java_complete_expand_methods): Call missing_return_error.
	(invocation_mode): Private methods invoked as static methods.
	(java_complete_tree): Call unreachable_stmt_error.
This patch corrects the way unreachable statement and missing return
statement errors are reported. It also fixes random bugs.

From-SVN: r24036
1998-12-01 06:28:02 -08:00
Richard Henderson
df3ba30ac3 * final.c (final_scan_insn): Abort if block_depth falls below 0.
From-SVN: r24030
1998-12-01 03:56:06 -08:00
J"orn Rennecke
78a2bc0856 reload1.c (emit_reload_insns): Clear spill_reg_store when doing a new non-inherited reload from the same pseudo.
* reload1.c (emit_reload_insns): Clear spill_reg_store
        when doing a new non-inherited reload from the same pseudo.

From-SVN: r24029
1998-12-01 03:53:54 -07:00
Tom Tromey
de80f41622 Makefile.in (+target): Removed.
* Makefile.in (+target): Removed.
	(+xmake_file): Likewise.
	(+tmake_file): Likewise.
	(.NOEXPORT): Removed duplicate.

From-SVN: r24028
1998-12-01 10:48:39 +00:00
Nick Clifton
bbc1b3f793 Fix problems encountered after recent egcs->devo marge
From-SVN: r24027
1998-12-01 10:28:32 +00:00