Commit Graph

17069 Commits

Author SHA1 Message Date
Mark Mitchell
8f259df3c0 cp-tree.h (complete_type_or_else): Declare.
* cp-tree.h (complete_type_or_else): Declare.
	* init.c (build_new_1, build_delete): Use it.
	* typeck.c (require_complete_type): Use complete_type, rather than
	expanding it inline.
	(complete_type_or_else): New function.
	(build_component_ref): Use it.
	(pointer_int_sum): Make sure the type pointed to is complete.
	(pointer_diff): Likewise.

From-SVN: r20499
1998-06-13 23:45:18 +00:00
Mark Mitchell
581d38d0ba pt.c (for_each_template_parm): Traverse the TYPE_CONTEXT for types.
* pt.c (for_each_template_parm): Traverse the TYPE_CONTEXT for
	types.

From-SVN: r20498
1998-06-13 23:35:46 +00:00
Mark Mitchell
5e7955289f search.c (get_matching_virtual): Note that member templates cannot override virtual functions.
* search.c (get_matching_virtual): Note that member templates
	cannot override virtual functions.

From-SVN: r20497
1998-06-13 23:34:56 +00:00
Jeff Law
a61e1825f5 Initial revision
From-SVN: r20494
1998-06-13 13:52:15 -06:00
Richard Henderson
3bde0154ef Kill wrong ev6 comment.
From-SVN: r20466
1998-06-13 08:36:35 -07:00
Krister Walfridsson
a08432bd45 netbsd.h (DEFAULT_PCC_STRUCT_RETURN): Undefine before redefining it.
* config/sparc/netbsd.h (DEFAULT_PCC_STRUCT_RETURN): Undefine before
        redefining it.

From-SVN: r20454
1998-06-13 06:09:41 -07:00
Jeff Law
eef4ba6139 Daily bump.
From-SVN: r20451
1998-06-12 18:45:02 -06:00
Doug Evans
416db27133 (ENDFILE_SPEC): Add -lgloss.
From-SVN: r20450
1998-06-12 22:54:50 +00:00
Doug Evans
a4ea8d9781 * m32r/m32r.h (STARTFILE_SPEC): Delete crtsysc.o.
From-SVN: r20445
1998-06-12 18:10:23 +00:00
Brendan Kehoe
f2e48b67c8 pt.c (check_explicit_specialization): If DECLARATOR turned into an error_mark_node from lookup_template_function...
* pt.c (check_explicit_specialization): If DECLARATOR turned into
	an error_mark_node from lookup_template_function, return the same.
	(determine_specialization): Also make sure TEMPLATE_ID isn't an
	error_mark_node, before we try to read its operands.
	* decl.c (grokdeclarator): If we got an error_mark_node from
	check_explicit_specialization, just return it right back.

From-SVN: r20444
1998-06-12 08:56:22 -04:00
Kaveh R. Ghazi
38831dfe51 Mips warning fixes:
* mips.c (small_int): Mark parameter `mode' with ATTRIBUTE_UNUSED.
        (large_int): Likewise.
        (pc_or_label_operand): Likewise.
        (call_insn_operand): Likewise.
        (consttable_operand): Likewise.
        (m16_uimm3_b): Likewise.
        (m16_simm4_1): Likewise.
        (m16_nsimm4_1): Likewise.
        (m16_simm5_1): Likewise.
        (m16_nsimm5_1): Likewise.
        (m16_uimm5_4): Likewise.
        (m16_nuimm5_4): Likewise.
        (m16_simm8_1): Likewise.
        (m16_nsimm8_1): Likewise.
        (m16_uimm8_1): Likewise.
        (m16_nuimm8_1): Likewise.
        (m16_uimm8_m1_1): Likewise.
        (m16_uimm8_4): Likewise.
        (m16_nuimm8_4): Likewise.
        (m16_simm8_8): Likewise.
        (m16_nsimm8_8): Likewise.
        (m16_usym8_4): Likewise.
        (m16_usym5_4): Likewise.
        (mips_move_1word): Change type of variable `i' from int to size_t.
        (mips_move_2words): Likewise.
        (output_block_move): Mark parameter `libname' with ATTRIBUTE_UNUSED.
        (function_arg_advance): Use HOST_PTR_PRINTF to print an address.
        (function_arg): Likewise.
        (function_arg_partial_nregs): Mark parameter `named' with
        ATTRIBUTE_UNUSED.
        (override_options): Use ISDIGIT instead of isdigit.
        (mips_output_external): Mark parameter `file' with ATTRIBUTE_UNUSED.
        (final_prescan_insn): Likewise for parameters `opvec' and `noperands'.
        (save_restore_insns): Cast HOST_WIDE_INT arguments passed to
        function `fatal' to long before printing.  Use
        HOST_WIDE_INT_PRINT_DEC in fprintf.  Both changes done several
        times in this function.
        (function_prologue): Mark parameter `size' with ATTRIBUTE_UNUSED.
        (function_epilogue): Likewise for parameters `file' and `size'.
        Print an int with "%d" not "%ld".
        (mips_select_rtx_section): Mark parameter `x' with ATTRIBUTE_UNUSED.
        (mips_function_value): Likewise for parameter `func'.
        (function_arg_pass_by_reference): Likewise for parameters `cum'
        and `named'.
        (extend_operator): Likewise for parameter `mode'
        (highpart_shift_operator): Likewise.
        * mips.md (mul_acc_si): Remove unused variable `macc'.

From-SVN: r20443
1998-06-12 12:06:29 +00:00
Mark Mitchell
2a238a974b class.c (instantiate_type): Don't treat template-ids that don't specify any template arguments as...
* class.c (instantiate_type): Don't treat template-ids that don't
	specify any template arguments as equivalent to ordinary
	identifiers.  Use OFFSET_REF instead of SCOPE_REF to refer to
	pointer-to-members for member templates.  Tidy slightly.
	* cp-tree.def (TEMPLATE_ID_EXPR): Revise documentation.
	* init.c (build_offset_ref): Handle template-ids like ordinary
	identifiers, for the most part, but store a TEMPLATE_ID_EXPR in the
	offset part of the OFFSET_REF.
	* typeck.c (build_unary_op): Change check for unknown types to
	look for OFFSET_REFs, not SCOPE_REFs.

From-SVN: r20442
1998-06-12 09:47:04 +00:00
Richard Henderson
77a45a2ea4 fold-const.c (fold): Revert last change.
* fold-const.c (fold): Revert last change.  It breaks constant
        expressions somehow.

From-SVN: r20441
1998-06-12 02:34:00 -07:00
Andreas Schwab
8d62b411cf expr.c (do_jump, [...]): When comparing complex prevent operands from being evaluated twice.
* expr.c (do_jump, case EQ_EXPR, NE_EXPR): When comparing complex
	prevent operands from being evaluated twice.

From-SVN: r20440
1998-06-12 01:26:05 +00:00
Jeff Law
b91feb1811 Daily bump.
From-SVN: r20439
1998-06-11 18:45:01 -06:00
Jeffrey A Law
da4ce9c2af * gcc.c-torture/execute/980612-1.c: New test.
From-SVN: r20438
1998-06-11 18:11:18 -06:00
Sergey Okhapkin
19a862359f toplev.c (lang_options): Add -remap as a preprocessor option.
8
        * toplev.c (lang_options): Add -remap as a preprocessor option.

From-SVN: r20437
1998-06-11 17:53:50 -06:00
Sergey Okhapkin
cac456261b toplev.c (lang_options): Add -remap as a preprocessor option.
�
        * toplev.c (lang_options): Add -remap as a preprocessor option.

From-SVN: r20436
1998-06-11 17:53:47 -06:00
Mark Mitchell
2ee4e084b7 pt.c (is_member_template_class): New function.
* pt.c (is_member_template_class): New function.
	(push_template_decl_real): Use it.

From-SVN: r20435
1998-06-11 23:53:24 +00:00
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