Commit Graph

20931 Commits

Author SHA1 Message Date
Jeff Law
7bd19d63fd aoutos.h (ASM_OUTPUT_CONSTRUCTOR): Delete.
h
        * config/aoutos.h (ASM_OUTPUT_CONSTRUCTOR): Delete.
        (ASM_OUTPUT_DESTRUCTOR, ASM_OUTPUT_GC_ENTRY): Likewise.

From-SVN: r25351
1999-02-21 12:39:50 -07:00
Jeff Law
b61e099621 aoutos.h (ASM_OUTPUT_CONSTRUCTOR): Delete.
�
        * config/aoutos.h (ASM_OUTPUT_CONSTRUCTOR): Delete.
        (ASM_OUTPUT_DESTRUCTOR, ASM_OUTPUT_GC_ENTRY): Likewise.

From-SVN: r25350
1999-02-21 12:39:44 -07:00
Richard Henderson
00bc45c139 Update attribute value documentation.
From-SVN: r25349
1999-02-21 10:39:33 -08:00
Richard Henderson
7ee37ba40c genattrtab.c (check_attr_value): Allow negative const_int if negative_ok.
* genattrtab.c (check_attr_value): Allow negative const_int if
        negative_ok.  Accept integral arithmetic operators.  Accept
        direct references to other attributes.  Accept symbol_ref in
        non-constant attributes.
        (max_attr_value): Add new argument `unknownp'.  Update all callers.
        (or_attr_value): Likewise.
        (simplify_knowing): Don't optimize if max_attr_value unknown.
        (write_length_unit_log): Likewise with or_attr_value.
        (find_and_mark_used_attributes): Don't fallthru case.
        (write_attr_set): Pass thru all non-cond expressions.
        (write_attr_value): Handle symbol_ref, attr, and arithmetic.

From-SVN: r25348
1999-02-21 10:30:37 -08:00
Mark Mitchell
0301787454 cp-tree.h (CLASSTYPE_METHOD_VEC): Adjust comment.
1999-02-19  Mark Mitchell  <mark@markmitchell.com>
	* cp-tree.h (CLASSTYPE_METHOD_VEC): Adjust comment.
	(fn_type_unification): Adjust prototype.
	(lookup_fnfields_1): Declare.
	* call.c (add_template_candidate_real): Adjust call to
	fn_type_unification.
	* class.c (add_method): Don't allow duplicate declarations of
	constructors or destructors.
	(resolve_address_of_overloaded_function): Remove unused variable.
	Adjust call to fn_type_unification.
	* decl.c (grokfndecl): Be more robust in the face of illegal
	specializations.
	* decl2.c (check_classfn): Remove hokey handling of member
	templates.
	* pt.c (determine_specialization): Improve comments.  Adjust to
	handle template argument deduction as per the standard.
	(check_explicit_specialization): Fix comment spacing.  Handle
	type-conversion operators correctly.  Improve error-recovery.
	(fn_type_unification): Remove EXTRA_FN_ARG parameter.
	(get_bindings_real): Simplify handling of static members.
	* search.c (lookup_fnfields_1): Make it have external linkage.
	* typeck.c (compparms): Fix comment.
	(build_unary_op): Don't try to figure out which template
	specialization is being referred to when when the address-of
	operator is used with a template function.

From-SVN: r25347
1999-02-21 16:38:23 +00:00
Per Bothner
939d7216dc decl.c (build_result_decl): New method.
d
	* decl.c (build_result_decl), java-tree.h:  New method.
	(complete_start_java_method):  Handle synchronized methods.
	Don't build DECL_RESULT here.  (Ordering dependency problem.)
	(start_java_method):  Call build_result_decl here instead  ...
	* parse.y (java_complete_expand_method):  ... and here.
	(expand_start_java_method): Don't call complete_start_java_method here.
	(java_complete_expand_method):  Call it here instead.
	* parse.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT):  Moved to ..
	* java-tree.h:  ... here.
	* expr.c (force_evaluation_order):  Fix typo, don't handle ARRAY_REF.
	* parse.y (java_complete_lhs):  Don't call force_evaluation_order
	for ARRAY_REF - it doesn't work when array bounds are checked.
	(patch_array_ref):  Handle it here instead.

From-SVN: r25346
1999-02-21 07:42:27 -08:00
Per Bothner
2d5a51939f decl.c (build_result_decl): New method.
* decl.c (build_result_decl), java-tree.h:  New method.
	(complete_start_java_method):  Handle synchronized methods.
	Don't build DECL_RESULT here.  (Ordering dependency problem.)
	(start_java_method):  Call build_result_decl here instead  ...
	* parse.y (java_complete_expand_method):  ... and here.
	(expand_start_java_method): Don't call complete_start_java_method here.
	(java_complete_expand_method):  Call it here instead.
	* parse.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT):  Moved to ..
	* java-tree.h:  ... here.
	* expr.c (force_evaluation_order):  Fix typo, don't handle ARRAY_REF.
	* parse.y (java_complete_lhs):  Don't call force_evaluation_order
	for ARRAY_REF - it doesn't work when array bounds are checked.
	(patch_array_ref):  Handle it here instead.

From-SVN: r25345
1999-02-21 07:42:22 -08:00
Per Bothner
92ada2426b decl.c (build_result_decl): New method.
�
	* decl.c (build_result_decl), java-tree.h:  New method.
	(complete_start_java_method):  Handle synchronized methods.
	Don't build DECL_RESULT here.  (Ordering dependency problem.)
	(start_java_method):  Call build_result_decl here instead  ...
	* parse.y (java_complete_expand_method):  ... and here.
	(expand_start_java_method): Don't call complete_start_java_method here.
	(java_complete_expand_method):  Call it here instead.
	* parse.h (BUILD_MONITOR_ENTER, BUILD_MONITOR_EXIT):  Moved to ..
	* java-tree.h:  ... here.
	* expr.c (force_evaluation_order):  Fix typo, don't handle ARRAY_REF.
	* parse.y (java_complete_lhs):  Don't call force_evaluation_order
	for ARRAY_REF - it doesn't work when array bounds are checked.
	(patch_array_ref):  Handle it here instead.

From-SVN: r25344
1999-02-21 07:42:17 -08:00
Per Bothner
edd643a930 jcf-write.c (generate_classfile): Emit "Exceptions" attribute.
* jcf-write.c (generate_classfile):  Emit "Exceptions" attribute.

From-SVN: r25343
1999-02-21 07:41:32 -08:00
Michael Hayes
cd4b354624 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
        * regmove.c (discover_flags_reg): Use word_mode instead of SImode.

From-SVN: r25342
1999-02-21 05:17:17 -08:00
Richard Henderson
e7f5b971ec regmove.c (discover_flags_reg): Remove cc0 code.
* regmove.c (discover_flags_reg): Remove cc0 code.
        (mark_flags_life_zones) [HAVE_cc0]: Force use of cc0; bail if
        a potential flags register was identified.

From-SVN: r25341
1999-02-21 05:16:11 -08:00
Jeff Law
3f860e2bcd Daily bump.
From-SVN: r25340
1999-02-20 17:45:03 -07:00
Craig Burley
9074cde5db fix LSTAT intrinsic per Krister Walfridsson <cato@df.lth.se>
From-SVN: r25339
1999-02-20 09:55:52 -05:00
Franz Sirl
04be634669 Fix rs6000.md typo
From-SVN: r25337
1999-02-20 08:16:43 -05:00
Jeffrey A Law
477d3dbc51 string, [...]: Revert recent change.
* string, std/straits.h, std/bastring.h: Revert recent change.  Needs
        some libiberty support before it can be re-enabled.

From-SVN: r25336
1999-02-20 05:21:51 -07:00
Richard Earnshaw
8a27a83e4a * xm-arm.h (HOST_BITS_PER_LONGLONG): Define.
From-SVN: r25335
1999-02-20 09:10:22 +00:00
Craig Burley
fa0848d53a fix doc attributions, etc.
From-SVN: r25334
1999-02-19 21:05:58 -05:00
Jeff Law
27711fb7eb Daily bump.
From-SVN: r25333
1999-02-19 17:45:03 -07:00
Richard Henderson
dc2cb19139 regmove.c (discover_flags_reg): New function.
* regmove.c (discover_flags_reg): New function.
        (flags_set_1, mark_flags_life_zones): New functions.
        (regmove_optimize): Call them.
        (fixup_match_1): Use insn modes rather than sets_cc0_p.

From-SVN: r25332
1999-02-19 15:02:58 -08:00
Per Bothner
419ff8e1c2 Ooops -forgot ChangeLog.
From-SVN: r25329
1999-02-19 08:33:59 -08:00
Per Bothner
dc0b3eff72 Force left-to-right evaluation of binary operations etc.
d
	Force left-to-right evaluation of binary operations etc.
	* expr.c (force_evaluation_order), java-tree.h:  New function.
	* parse.y (java_complete_lhs):  Pass binary operations, procedure
	calls, and ARRAY_REFs to force_evaluation_order.
	(various):  Set TREE_SIDE_EFFECTS more carefully.
	Tolerate random (non-UTF8) encoding in comments without complaining.
	* lex.c (java_read_char):  Return 0xFFFE if bad UTF8 encoding.
	(java_is_eol):  Handle '\r' followed by '\n' instead of vice versa.
	* parse.y (resolve_qualified_expression_name):  Handle error_mark.
	(java_complete_node case EXPR_WITH_FILE_LOCATION):  Likewise.
	* parse.y (java_complete_lhs):  Ignore an empty statement in a
	COMPOUND_EXPR.  Don't complain about empty statement after return.

From-SVN: r25328
1999-02-19 08:33:22 -08:00
Per Bothner
68ae3b17eb Force left-to-right evaluation of binary operations etc.
T
	Force left-to-right evaluation of binary operations etc.
	* expr.c (force_evaluation_order), java-tree.h:  New function.
	* parse.y (java_complete_lhs):  Pass binary operations, procedure
	calls, and ARRAY_REFs to force_evaluation_order.
	(various):  Set TREE_SIDE_EFFECTS more carefully.
	Tolerate random (non-UTF8) encoding in comments without complaining.
	* lex.c (java_read_char):  Return 0xFFFE if bad UTF8 encoding.
	(java_is_eol):  Handle '\r' followed by '\n' instead of vice versa.
	* parse.y (resolve_qualified_expression_name):  Handle error_mark.
	(java_complete_node case EXPR_WITH_FILE_LOCATION):  Likewise.
	* parse.y (java_complete_lhs):  Ignore an empty statement in a
	COMPOUND_EXPR.  Don't complain about empty statement after return.

From-SVN: r25327
1999-02-19 08:33:20 -08:00
Per Bothner
7428556059 Force left-to-right evaluation of binary operations etc.
Force left-to-right evaluation of binary operations etc.
	* expr.c (force_evaluation_order), java-tree.h:  New function.
	* parse.y (java_complete_lhs):  Pass binary operations, procedure
	calls, and ARRAY_REFs to force_evaluation_order.
	(various):  Set TREE_SIDE_EFFECTS more carefully.
	Tolerate random (non-UTF8) encoding in comments without complaining.
	* lex.c (java_read_char):  Return 0xFFFE if bad UTF8 encoding.
	(java_is_eol):  Handle '\r' followed by '\n' instead of vice versa.
	* parse.y (resolve_qualified_expression_name):  Handle error_mark.
	(java_complete_node case EXPR_WITH_FILE_LOCATION):  Likewise.
	* parse.y (java_complete_lhs):  Ignore an empty statement in a
	COMPOUND_EXPR.  Don't complain about empty statement after return.

From-SVN: r25326
1999-02-19 08:33:18 -08:00
Per Bothner
c60ca7db2a parse.y (obtain_incomplete_type): Don't wrap unknown types in TREE_LIST - just chain the POINTER_TYPEs together.
a
	* parse.y (obtain_incomplete_type):  Don't wrap unknown types
	in TREE_LIST - just chain the POINTER_TYPEs together.
	(resolve_class):  If type already resolved, return decl.
	After resolving, update TREE_TYPE(class_type), and name (if array).
	* parse.h (do_resolve_class), parse.y:  Make non-static.
	* class.c (maybe_layout_super_class):  Take this_class argument.
	Do do_resolve_class if necessary.
	(layout_class, layout_class_methods): Adjust calls appropriately.
	* parse.h (JDEP_TO_RESOLVE, JDEP_RESOLVED_DECL, JDEP_RESOLVED,
	JDEP_RESOLVED_P):  Redefined for new TREE_LIST-less convention.
	* typeck.c (build_java_array_type):  Don't call layout_class.

From-SVN: r25325
1999-02-19 06:55:24 -08:00
Per Bothner
78d21f929b parse.y (obtain_incomplete_type): Don't wrap unknown types in TREE_LIST - just chain the POINTER_TYPEs together.
d
	* parse.y (obtain_incomplete_type):  Don't wrap unknown types
	in TREE_LIST - just chain the POINTER_TYPEs together.
	(resolve_class):  If type already resolved, return decl.
	After resolving, update TREE_TYPE(class_type), and name (if array).
	* parse.h (do_resolve_class), parse.y:  Make non-static.
	* class.c (maybe_layout_super_class):  Take this_class argument.
	Do do_resolve_class if necessary.
	(layout_class, layout_class_methods): Adjust calls appropriately.
	* parse.h (JDEP_TO_RESOLVE, JDEP_RESOLVED_DECL, JDEP_RESOLVED,
	JDEP_RESOLVED_P):  Redefined for new TREE_LIST-less convention.
	* typeck.c (build_java_array_type):  Don't call layout_class.

From-SVN: r25324
1999-02-19 06:55:23 -08:00
Per Bothner
846b0eb83d parse.y (obtain_incomplete_type): Don't wrap unknown types in TREE_LIST - just chain the POINTER_TYPEs together.
T
	* parse.y (obtain_incomplete_type):  Don't wrap unknown types
	in TREE_LIST - just chain the POINTER_TYPEs together.
	(resolve_class):  If type already resolved, return decl.
	After resolving, update TREE_TYPE(class_type), and name (if array).
	* parse.h (do_resolve_class), parse.y:  Make non-static.
	* class.c (maybe_layout_super_class):  Take this_class argument.
	Do do_resolve_class if necessary.
	(layout_class, layout_class_methods): Adjust calls appropriately.
	* parse.h (JDEP_TO_RESOLVE, JDEP_RESOLVED_DECL, JDEP_RESOLVED,
	JDEP_RESOLVED_P):  Redefined for new TREE_LIST-less convention.
	* typeck.c (build_java_array_type):  Don't call layout_class.

From-SVN: r25323
1999-02-19 06:55:18 -08:00
Per Bothner
04ed7a0ca3 parse.y (obtain_incomplete_type): Don't wrap unknown types in TREE_LIST - just chain the POINTER_TYPEs together.
* parse.y (obtain_incomplete_type):  Don't wrap unknown types
	in TREE_LIST - just chain the POINTER_TYPEs together.
	(resolve_class):  If type already resolved, return decl.
	After resolving, update TREE_TYPE(class_type), and name (if array).
	* parse.h (do_resolve_class), parse.y:  Make non-static.
	* class.c (maybe_layout_super_class):  Take this_class argument.
	Do do_resolve_class if necessary.
	(layout_class, layout_class_methods): Adjust calls appropriately.
	* parse.h (JDEP_TO_RESOLVE, JDEP_RESOLVED_DECL, JDEP_RESOLVED,
	JDEP_RESOLVED_P):  Redefined for new TREE_LIST-less convention.
	* typeck.c (build_java_array_type):  Don't call layout_class.

From-SVN: r25322
1999-02-19 06:55:17 -08:00
J"orn Rennecke
1cb1fe6699 rtlanal.c (insn_first_p): Fix return value for insn == reference.
* rtlanal.c (insn_first_p): Fix return value for insn == reference.
	* loop.c (strength_reduce, check_final_value, check_dbra_loop):
	Use loop_insn_first_p.

From-SVN: r25321
1999-02-19 14:49:59 +00:00
Craig Burley
cea0198ed9 update BUGS, INSTALL, NEWS, and their sources
From-SVN: r25320
1999-02-19 09:45:46 -05:00
Craig Burley
19d987e26d improve global/filewide semantic checking
From-SVN: r25319
1999-02-19 09:05:51 -05:00
Alexandre Petit-Bianco
fad22e3b21 parse.y (check_pkg_class_access): Allow private class access within the same package.
�
	* parse.y (check_pkg_class_access): Allow private class access
 	within the same package.
	(strip_out_static_field_access_decl): New function.
	(patch_unaryop): Call strip_out_static_field_access_decl on ++/--
 	operator argument before testing its nature.

From-SVN: r25318
1999-02-19 05:27:37 -08:00
Alexandre Petit-Bianco
e28cd97b00 parse.y (check_pkg_class_access): Allow private class access within the same package.
* parse.y (check_pkg_class_access): Allow private class access
 	within the same package.
	(strip_out_static_field_access_decl): New function.
	(patch_unaryop): Call strip_out_static_field_access_decl on ++/--
 	operator argument before testing its nature.

From-SVN: r25317
1999-02-19 05:27:35 -08:00
Michael Meissner
19378cf803 rs6000.md (scc plus eq): Fix output template.
* rs6000.md (scc plus eq): Fix output template.
        (scc plus ltu): Fix output template and collapse variants
        correcting early clobber.
        (scc plus geu): Fix output template.
        (scc plus gt): Fix output template.
        (scc plus gtu): Fix output template and collapse variants.

Co-Authored-By: David Edelsohn <edelsohn@mhpcc.edu>

From-SVN: r25316
1999-02-19 07:54:08 -05:00
Kaveh R. Ghazi
16ed229914 * cppinit.c (print_help): Remove unescaped newline in string.
From-SVN: r25315
1999-02-19 12:50:44 +00:00
Per Bothner
a7d8d81f7c Use new TRY_FINALLY_EXPR tree node.
�
Use new TRY_FINALLY_EXPR tree node.  See ChangeLog.

From-SVN: r25314
1999-02-19 04:32:50 -08:00
Per Bothner
10b3fbc515 Use new TRY_FINALLY_EXPR tree node.
h
Use new TRY_FINALLY_EXPR tree node.  See ChangeLog.

From-SVN: r25313
1999-02-19 04:32:40 -08:00
Per Bothner
0a3af4d86c Use new TRY_FINALLY_EXPR tree node.
(
Use new TRY_FINALLY_EXPR tree node.  See ChangeLog.

From-SVN: r25312
1999-02-19 04:32:39 -08:00
Per Bothner
ececaeae34 Use new TRY_FINALLY_EXPR tree node.
�
Use new TRY_FINALLY_EXPR tree node.  See ChangeLog.

From-SVN: r25311
1999-02-19 04:32:38 -08:00
J"orn Rennecke
b72bdd8496 loop.c (strength_reduce): Check for intervening jumps when converting biv increment to giv.
* loop.c (strength_reduce): Check for intervening jumps when
	converting biv increment to giv.

From-SVN: r25310
1999-02-19 11:59:01 +00:00
Per Bothner
4e03cf86c3 tree.def (TRY_FINALLY_EXPR, [...]): New tree nodes,
�
	* tree.def (TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR):  New tree nodes,
	* expr.c (expand_expr):  Support new tree nodes.

From-SVN: r25309
1999-02-19 03:19:32 -08:00
Per Bothner
b335b813b5 tree.def (TRY_FINALLY_EXPR, [...]): New tree nodes,
h
	* tree.def (TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR):  New tree nodes,
	* expr.c (expand_expr):  Support new tree nodes.

From-SVN: r25308
1999-02-19 03:19:30 -08:00
Per Bothner
502bf1f3ea tree.def (TRY_FINALLY_EXPR, [...]): New tree nodes,
`
	* tree.def (TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR):  New tree nodes,
	* expr.c (expand_expr):  Support new tree nodes.

From-SVN: r25307
1999-02-19 03:19:28 -08:00
David Edelsohn
90a79256fe AIX 4.3.2 linker bug
From-SVN: r25306
1999-02-19 06:02:59 -05:00
Craig Burley
5ecccf3b26 update intdoc.texi
From-SVN: r25305
1999-02-19 04:16:31 -05:00
Craig Burley
a27e2d3955 new g77 tests
From-SVN: r25304
1999-02-19 04:15:46 -05:00
Andreas Schwab
577c6ece68 m68k.c (m68k_align_loops_string, [...]): Add const.
* config/m68k/m68k.c (m68k_align_loops_string,
	m68k_align_jumps_string, m68k_align_funcs_string): Add const.
	* config/m68k/m68k.h (m68k_align_loops_string,
	m68k_align_jumps_string, m68k_align_funcs_string): Likewise.

From-SVN: r25303
1999-02-19 01:20:34 +00:00
Jeff Law
6a67f0c74a Daily bump.
From-SVN: r25302
1999-02-18 17:45:03 -07:00
Kaveh R. Ghazi
834003f492 cp-tree.h (lvalue_or_else): Qualify a char* with the `const' keyword to match an analogous change at the...
* cp-tree.h (lvalue_or_else): Qualify a char* with the `const'
        keyword to match an analogous change at the top level.
        * tree.c (lvalue_or_else): Likewise.

From-SVN: r25297
1999-02-18 20:44:21 +00:00
Kaveh R. Ghazi
5d5993dd31 bitmap.c (bitmap_print): Qualify a char* with the `const' keyword.
* bitmap.c (bitmap_print): Qualify a char* with the `const' keyword.
        * bitmap.h (bitmap_print): Likewise.
        * c-decl.c (builtin_function, grokdeclarator, grokfield): Likewise.
        * c-lang.c (build_objc_string): Likewise.
        * c-lex.c (yyerror, extend_token_buffer): Likewise.  Don't include
        limits.h or ctype.h.  Remove unused variable `p'.
        * c-lex.h (yyerror): Qualify a char* with the `const' keyword.
        * c-pragma.c (handle_pragma_token): Likewise.
        * c-pragma.h (handle_pragma_token): Likewise.
        * c-tree.h (build_objc_string, builtin_function, grokfield,
        build_indirect_ref, lvalue_or_else, readonly_warning, error_init,
        pedwarn_init): Likewise.
        * c-typeck.c (convert_for_assignment, warn_for_assignment,
        push_string, warning_init, incomplete_type_error,
        build_indirect_ref, lvalue_or_else, readonly_warning,
        build_c_cast, spelling, push_member_name, print_spelling,
        error_init, pedwarn_init, start_init): Likewise.
        * objc/objc-act.c (build_objc_string): Likewise.
        * print-tree.c (print_node_brief, print_node): Likewise.
        * tree.h (lvalue_or_else, print_node, print_node_brief): Likewise.

From-SVN: r25296
1999-02-18 20:38:48 +00:00
David Edelsohn
94e6f78366 * regclass.c (record_reg_classes): Correctly handle 'p' constraint.
From-SVN: r25295
1999-02-18 12:49:19 -07:00