Commit Graph

17250 Commits

Author SHA1 Message Date
John Wehle
9bc6d2c207 i386.md (cmpsi_1, [...]): Remove code which set CC_REVERSED since reload should ensure that the operands...
* i386.md (cmpsi_1, cmphi_1, cmpqi_1): Remove code
        which set CC_REVERSED since reload should ensure that
        the operands are already the correct type.

From-SVN: r20434
1998-06-11 17:33:35 -06:00
Benjamin Kosnik
112a70c24d friend.c (do_friend): Add support for nested classes using member functions of the enclosing class as...
8
	* friend.c (do_friend): Add support for nested classes using
 	member functions of the enclosing class as friends.
egcs bug

From-SVN: r20433
1998-06-11 20:11:55 +00:00
Benjamin Kosnik
67fe9f06fa friend.c (do_friend): Add support for nested classes using member functions of the enclosing class as...
�
	* friend.c (do_friend): Add support for nested classes using
 	member functions of the enclosing class as friends.
egcs bug

From-SVN: r20432
1998-06-11 20:11:54 +00:00
Jim Wilson
fb95c8c956 Fix m68k build failure.
* except.c (expand_builtin_eh_stub): Call emit_move_insn rather than
	calling gen_rtx_SET.

From-SVN: r20431
1998-06-11 10:15:02 -07:00
David Edelsohn
9500928842 x-aix43 (AR): Delete.
* config/rs6000/x-aix43 (AR): Delete.
	(AR_FOR_TARGET_FLAGS): Add -X32_64 here.

From-SVN: r20430
1998-06-11 11:48:50 -04:00
David W. Schuler
bf6f78d154 * config/i386/aix386ng.h (CPP_SPEC): Remove extraneous quote.
From-SVN: r20429
1998-06-11 09:22:41 -06:00
Jim Wilson
45cc4c096a Fix mips build error.
* mips.c (override_options): Replace word_mode with explicit
	TARGET_64BIT check.

From-SVN: r20428
1998-06-11 05:54:24 -07:00
Michael Meissner
ecb75b7ab9 For regmove if we could not improve code by changing the source to the destination, copy the source to the destination directly
From-SVN: r20427
1998-06-11 11:51:52 +00:00
Dave Brolley
8e34149da2 toplev.c (lang_options): Add missing options (nostdinc, idirafter).
Thu Jun 11 10:30:09 1998  Dave Brolley  <brolley@cygnus.com>
	* toplev.c (lang_options): Add missing options (nostdinc, idirafter).

From-SVN: r20426
1998-06-11 03:51:52 -04:00
Jeff Law
90de93a0bd Daily bump.
From-SVN: r20425
1998-06-10 18:45:02 -06:00
Mark Mitchell
41efda8f53 call.c (convert_default_arg): Make global, not static.
* call.c (convert_default_arg): Make global, not static.
	(convert_arg_for_ellipsis): Split out from ...
	(build_over_call): Here.
	* cp-tree.h (convert_default_arg); Declare.
	(convert_arg_to_ellipsis): Likewise.
	(do_member_init): Remove.
	* init.c (do_member_init): Remove; this code is dead.
	(expand_member_init): Remove much of this code; it is dead.
	* typeck.c (convert_arguments): Use convert_default_arg and
	convert_arg_for_ellipsis, rather than duplicating here.
	* call.c (convert_like): Don't fail silently if
	build_user_type_conversion fails.  Always return error_mark_node
	for failure.

From-SVN: r20424
1998-06-11 00:07:24 +00:00
Mark Mitchell
8358a974b5 rtl.h (rtx_def): Improve documentation.
* rtl.h (rtx_def): Improve documentation.
	(MEM_IN_STRUCT_P): Likewise.

From-SVN: r20423
1998-06-10 23:39:46 +00:00
Graham Stott
b3fbc9ad49 * c-decl.c (grokdeclarator): Remove unused variable "last".
From-SVN: r20422
1998-06-10 16:36:37 -06:00
Graham Stott
e80716de42 * c-decl.c (start_decl): Correct test for -Wmain.
From-SVN: r20421
1998-06-10 16:29:04 -06:00
Jason Merrill
e76e4a6842 * search.c (covariant_return_p): Complain about ambiguous base.
From-SVN: r20420
1998-06-10 17:12:16 -04:00
Jason Merrill
d60ab85145 * typeck.c (build_component_ref): Diagnose ref to nested type.
From-SVN: r20419
1998-06-10 17:03:58 -04:00
Jim Wilson
3e2b9a3d25 Fix build failure when pointers smaller than integers.
* expr.c (expand_builtin_setjmp): Store const1_rtx in target.
	(expand_builtin_longjmp): Abort if value isn't const1_rtx.
	Delete code storing value in static_chain_rtx.
	(expand_builtin, case BUILT_IN_LONGJMP): Pass NULL_RTX for target
	to second expand_expr call.

From-SVN: r20418
1998-06-10 07:55:48 -07:00
Mark Mitchell
748b909e12 * mips/mips.c: Remove -mabi=o32 and -mabi=n64.
From-SVN: r20417
1998-06-10 13:17:56 +00:00
Dave Brolley
e061d1ce14 Use cpplib for cccp.
Wed Jun 10 13:41:23 1998  Dave Brolley  <brolley@cygnus.com>
	* cppmain.c (fatal): New function.
	* configure.in (cpp_main): New configuration variable.
	* configure: Regenerated.
	* Makefile.in (CCCP): Use a configuration variable to select base for cccp.
	(cppmain$(exeext)): Add @extra_cpp_objs@.

From-SVN: r20416
1998-06-10 08:58:43 -04:00
Brendan Kehoe
347b529220 decl.c (grokparms): Check that INIT isn't an error_mark_node before giving error about invalid type...
* decl.c (grokparms): Check that INIT isn't an error_mark_node
        before giving error about invalid type for default arg.

From-SVN: r20415
1998-06-10 08:34:37 -04:00
Vladimir Makarov
2682eae952 ChangeLog
From-SVN: r20414
1998-06-10 10:57:06 +00:00
Jason Merrill
1be04112a9 * call.c (build_method_call): Fix thinko.
From-SVN: r20413
1998-06-10 06:50:44 -04:00
Jeffrey A Law
07fb7f791d * decl.c (init_decl_processing): Fix typo.
From-SVN: r20412
1998-06-10 04:44:38 -06:00
Jason Merrill
4324833a17 call.c (build_scoped_method_call): Fix thinko.
* call.c (build_scoped_method_call): Fix thinko.
	(build_method_call): Likewise.

From-SVN: r20411
1998-06-10 06:43:41 -04:00
Dave Brolley
cff559bcf0 New interface for lang_decode_option Wed Jun 10 13:07:02 1998 Dave Brolley <brolley@cygnus.com>
New interface for lang_decode_option
Wed Jun 10 13:07:02 1998  Dave Brolley  <brolley@cygnus.com>
	* objc/objc-act.c: Add cpplib declarations.
	(lang_decode_option): Initialize cpplib if necessary.
	(lang_decode_option): New argc/argv interface.

From-SVN: r20410
1998-06-10 06:22:54 -04:00
Dave Brolley
ab9e0ff9c7 New interface for lang_decode_option.
Wed Jun 10 13:17:32 1998  Dave Brolley  <brolley@cygnus.com>
	* top.h (ffe_decode_option): New argc/argv interface.
	* top.c (ffe_decode_option): New argc/argv interface.
	* parse.c (yyparse): New argc/argv interface for ffe_decode_option.
	* com.c (lang_decode_option): New argc/argv interface.

From-SVN: r20409
1998-06-10 06:18:45 -04:00
Dave Brolley
297441fd87 Integrate cpplib into the C++ front end.
1998-06-10  Dave Brolley  <brolley@cygnus.com>
	* decl2.c (lang_decode_option): New argc/argv interface.
	* cp-tree.h (lang_decode_option): New argc/argv interface.
	* lang-specs.h (default_compilers): Only call cpp if -E, -M or -MM is
	specified for cpplib-enabled compilers.
	* lex.c (lang_init): Don't check_newline for cpplib.
	(init_parse): Don't initialize cpplib here.

From-SVN: r20408
1998-06-10 06:16:45 -04:00
Dave Brolley
a0d85b7572 Integrate cpplib into the C and C++ front ends.
Wed Jun 10 13:07:02 1998  Dave Brolley  <brolley@cygnus.com>
	* objc/objc-act.c: Add cpplib declarations.
	(lang_decode_option): Initialize cpplib if necessary.
	(lang_decode_option): New argc/argv interface.
	* tree.h (lang_decode_option): New argc/argv interface.
	* toplev.c (lang_options): Add cpp options.
	(main): New interface for lang_decode_option.
	* gcc.c (default_compilers): Don't call cpp for a cpplib-enabled C compiler
	unless -E, -M or -MM is specified.
	* cpplib.h (cpp_handle_option): New function.
	* cpplib.c (cpp_handle_option): New function.
	(cpp_handle_options): Now calls cpp_handle_option.
	* c-tree.h (c_decode_option): New argc/argv interface.
	* c-lex.c (init_parse): cpplib now initialized in c_decode_option.
	* c-lang.c (lang_decode_option): New argc/argv interface.
	* c-decl.c: Add cpplib declarations.
	(c_decode_option): New argc/argv interface.
	(c_decode_option): Call cpp_handle_option.
	(c_decode_option): Now returns number of strings processed.

From-SVN: r20407
1998-06-10 06:12:36 -04:00
Brendan Kehoe
0875c2f39b typeck.c (build_component_ref): Make sure FIELD has a lang_specific piece before checking DECL_MUTABLE_P.
* typeck.c (build_component_ref): Make sure FIELD has a lang_specific
	piece before checking DECL_MUTABLE_P.

From-SVN: r20406
1998-06-10 06:01:13 -04:00
Robert Lipe
279813c62d eb129, eb130. New tests from Klaus-Georg Adams.
From-SVN: r20405
1998-06-10 09:52:40 +00:00
Richard Earnshaw
951930309f unroll.c (verify_addresses): Use validate_replace_rtx to undo the changes.
* unroll.c (verify_addresses): Use validate_replace_rtx to undo the
changes.  Abort if the undo fails.

From-SVN: r20404
1998-06-10 09:49:30 +00:00
Jeffrey A Law
bfed8dac97 mips.c (gpr_mode): New variable.
* mips.c (gpr_mode): New variable.
        (override_options): Initialize gpr_mode.
        (compute_frame_size): Use "gpr_mode" instead of "word_mode" to
        determine size and offset of general purpose registers save slots.
        (save_restore_insns, mips_expand_prologue): Similarly.

From-SVN: r20403
1998-06-10 03:15:39 -06:00
John Carr
0254c56158 reload1.c (reload_cse_simplify_operands): Do not call gen_rtx_REG for each alternative.
Wed Jun 10 08:56:27 1998  John Carr  <jfc@mit.edu>
	* reload1.c (reload_cse_simplify_operands): Do not call gen_rtx_REG
	for each alternative.  Do not replace a CONST_INT with a REG unless
	the reg is cheaper.

From-SVN: r20402
1998-06-10 06:00:50 +00:00
John Carr
71e89f27cd tree.c (debug_binfo): Make printf format match arguments.
1998-06-10  John Carr  <jfc@mit.edu>
	* tree.c (debug_binfo): Make printf format match arguments.
	* error.c (OB_PUTI): Make printf format match arguments.

From-SVN: r20401
1998-06-10 05:54:23 +00:00
Jason Merrill
04be6a2297 update
From-SVN: r20400
1998-06-09 23:14:02 -04:00
Jason Merrill
0202018521 init.c (resolve_offset_ref): Handle default-initialization.
* init.c (resolve_offset_ref): Handle default-initialization.
	* except.c (build_throw): Handle throwing NULL.
	* typeck.c (build_x_function_call): Use resolve_offset_ref.
	* search.c (compute_access): Only strip an anonymous union
	for a FIELD_DECL.
	* call.c (add_builtin_candidates): Tweak.
	* cvt.c (build_expr_type_conversion): Restore code for conversion
	from class types.
	* decl2.c (delete_sanity): Use it.  Clean up.
	* typeck.c (comp_ptr_ttypes_real): Fix cv-qual comparisons.
        * typeck.c (c_expand_return): Don't warn about void expressions on
        return statements in functions returning void.

From-SVN: r20399
1998-06-09 23:13:19 -04:00
Jeffrey A Law
0365438d33 reload.c (find_reloads_toplev): Use gen_lowpart common to convert between constant representations when...
* reload.c (find_reloads_toplev): Use gen_lowpart common to convert
        between constant representations when we have (SUBREG (REG)) with
        REG equivalent to a constant.

From-SVN: r20398
1998-06-09 19:14:54 -06:00
Jeff Law
93ec7bc577 Daily bump.
From-SVN: r20397
1998-06-09 18:45:02 -06:00
Juha Sarlin
e6bcfef93a * h8300.c (get_shift_alg): Add special cases for shifts of 8 and 24.
From-SVN: r20396
1998-06-09 18:41:51 -06:00
John Wehle
9d932d439e i386.c (notice_update_cc): Clear cc_status.value2 in the case of UNSPEC 5 (bsf).
* i386.c (notice_update_cc): Clear cc_status.value2 in the
	case of UNSPEC 5 (bsf).

From-SVN: r20395
1998-06-09 18:39:23 -06:00
Jason Merrill
fa31b1a55d new
From-SVN: r20394
1998-06-09 19:45:30 -04:00
Mark Mitchell
9f54c8036b pt.c (fn_type_unification): Revise documentation.
* pt.c (fn_type_unification): Revise documentation.  Tidy.
	(type_unification): Likewise.

From-SVN: r20393
1998-06-09 23:39:34 +00:00
Richard Henderson
ac1fdb22b8 fold-const.c (fold): Even with otherwise constant trees...
* fold-const.c (fold): Even with otherwise constant trees, look for
        opportunities to combine integer constants.

From-SVN: r20392
1998-06-09 15:05:49 -07:00
John Wehle
1c5d60f501 i386.md (movsfcc, [...]): The floating point conditional move instructions don't support signed integer...
* i386.md (movsfcc, movdfcc, movxfcc): The floating point
        conditional move instructions don't support signed integer
        comparisons.

From-SVN: r20391
1998-06-09 15:42:21 -06:00
Nick Clifton
f1be41adfe Fix interrupt return epilogue.
From-SVN: r20385
1998-06-09 14:33:45 +00:00
Andrew MacLeod
0d3453dfb6 Minor tweaks.
* except.c (expand_start_catch): Rename to start_catch_handler.
	(expand_end_catch): Delete function.
	(expand_end_all_catch): Remove catch status that expand_end_catch
	use to do.
	* except.h (expand_start_catch): Rename prototype.
	(expand_end_catch): Delete prototype.
	* semantics.c (finish_try_block): Rename expand_start_catch, and delete
	expand_end_catch.
	* parse.y (function_try_block): Rename expand_start_catch, and delete
	expand_end_catch.
	* except.c (expand_end_eh_spec): Rename expand_start_catch, and delete
	expand_end_catch.

From-SVN: r20379
1998-06-09 13:28:26 +00:00
Mark Mitchell
3398f47f04 * invoke.texi: Add documentation for -mips4 and -mabi=*.
From-SVN: r20377
1998-06-09 12:57:16 +00:00
Klaus Kaempf
6805ef53ca vms.h (EXTRA_SECTIONS): Add in_ctors and in_dtors.
* alpha/vms.h (EXTRA_SECTIONS): Add in_ctors and in_dtors.
        (EXTRA_SECTION_FUNCTIONS): Add ctors_section and dtors_section.
        (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Define.

From-SVN: r20376
1998-06-09 05:12:13 -07:00
Jason Merrill
d23a1bb127 search.c (lookup_member): New fn.
* search.c (lookup_member): New fn.
	* class.c (finish_struct_1): Use it.
	* decl.c (lookup_name_real): Use it.

From-SVN: r20375
1998-06-09 08:10:57 -04:00
John Carr
9ae4ec4602 haifa-sched.c (update_flow_info): Use UNITS_PER_WORD...
* haifa-sched.c (update_flow_info): Use UNITS_PER_WORD, not MOVE_MAX,
        as the threshold to permit splitting memory operations.

From-SVN: r20374
1998-06-09 05:10:02 -07:00