Commit Graph

19228 Commits

Author SHA1 Message Date
Per Bothner
2331d640ce *** empty log message ***
From-SVN: r23200
1998-10-20 03:56:33 -07:00
Per Bothner
a533752270 *** empty log message ***
From-SVN: r23199
1998-10-20 03:17:08 -07:00
Gavin Romig-Koch
cb2fdc843b regclass.c (fix_register): Add error message.
* regclass.c (fix_register): Add error message.
	* invoke.texi (-fcall-used-REG,-fcall-saved-REG): Note the
	  new error message

From-SVN: r23198
1998-10-20 08:03:37 +00:00
Kaveh R. Ghazi
0ca3fb0a16 New warning, `missing-noreturn':
* c-decl.c (warn_missing_noreturn): New global variable.
        (c_decode_option): Check for new flags -W{no-}missing-noreturn.
        (finish_function): Implement missing noreturn warning.
        * c-tree.h (warn_missing_noreturn): Declare extern.
        * invoke.texi: Document new flags.
        * toplev.c (documented_lang_options): Add description.

From-SVN: r23197
1998-10-20 07:32:08 +00:00
Michael Hayes
f1c374cbf1 c4x.c (c4x_parallel_process): Disable until BCT loop optimization stable for the C4x.
* config/c4x/c4x.c (c4x_parallel_process): Disable until BCT
	loop optimization stable for the C4x.
	(c4x_rptb_info_t, c4x_dump, c4x_rptb_in_range, c4x_rptb_unjumped_loop,
	c4x_rptb_find_comp_and_jump, c4x_rptb_loop_info_get,
	c4x_rptb_emit_init, c4x_rptb_process): Deleted (superceded by BCT
	loop optimization).
	(c4x_address_conflict): Be more paranoid when packing a volatile
	memref in a parallel load/store.

From-SVN: r23196
1998-10-20 03:18:57 +00:00
Michael Hayes
95cb020334 c4x.md (repeat_block_top, [...]): Deleted.
* config/c4x/c4x.md (repeat_block_top, repeat_block_end,
 	repeat_block_filler): Deleted.
	(*ashlqi3_set, *ashrqi3_const_set, *ashrqi3_nonconst_clobber):
 	Condition code not set if destination register from 'c' class.
	(*subbqi3_carry_clobber): Fix typo.

From-SVN: r23195
1998-10-20 03:01:10 +00:00
Jeff Law
c171c2878d Daily bump.
From-SVN: r23194
1998-10-19 18:45:02 -06:00
Martin v. Löwis
163c4dc51f New test case.
From-SVN: r23192
1998-10-19 23:23:04 +00:00
Jeffrey A Law
15f8470fd0 gcse.c (compute_hash_table): Correctly identify hard regs which are clobbered across calls.
* gcse.c (compute_hash_table): Correctly identify hard regs which are
        clobbered across calls.

From-SVN: r23191
1998-10-19 17:17:48 -06:00
Jeff Law
18e765cbda [multiple changes]
1998-10-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
        * reorg.c (steal_delay_list_from_target) Check for insns that
        modify the condition codes and effect the direction of the jump
        in the sequence.
Sat Oct 17 13:09:09 1998  Graham  <grahams@rcp.co.uk>
        * function.c (purge_addressof_1): Replace call to
        emit_insns_before() with emit_insn_before().

From-SVN: r23189
1998-10-19 14:23:44 -06:00
Jason Merrill
ea4d3ff6e0 new
From-SVN: r23188
1998-10-19 16:13:26 -04:00
Jason Merrill
1590ea76e9 update
From-SVN: r23187
1998-10-19 16:13:15 -04:00
Jason Merrill
51924768e7 Revamp references to member functions.
* method.c (hack_identifier): Call build_component_ref for a
	reference to a member function.
	* typeck.c (build_component_ref): Only return a single function
	if it's static.  Otherwise, return a COMPONENT_REF.
	(build_x_function_call): Handle a COMPONENT_REF.
	(build_unary_op): Handle all unknown-type things.
	* decl2.c (arg_assoc): Handle COMPONENT_REF.
	* class.c (instantiate_type): Complain if the function we get is a
	nonstatic member function.  Remove code for finding "compatible"
	functions.
	* pt.c (tsubst_copy): Handle NOP_EXPR.
	* tree.c (build_dummy_object): New fn.
	(maybe_dummy_object): New fn.
	(is_dummy_object): New fn.
	* cp-tree.h: Declare them.
	* cvt.c (cp_convert_to_pointer): Use maybe_dummy_object.
	* error.c (dump_expr, case OFFSET_REF): Use is_dummy_object.
	* init.c (build_member_call): Use maybe_dummy_object and
	is_dummy_object.
	(build_offset_ref): Use maybe_dummy_object.
	(resolve_offset_ref): Use is_dummy_object.
	* typeck.c (build_x_function_call): Call build_dummy_object.
	(unary_complex_lvalue): Call is_dummy_object.
	* typeck.c (build_component_addr): Make sure field is a field.
	* call.c (build_new_op): Delete obsolete code.
	* pt.c (tsubst, TEMPLATE*PARM*): Abort if we don't have any args.

From-SVN: r23186
1998-10-19 16:08:23 -04:00
Mike Stump
4f2905fb4b * libgcc2.c (__pure_virtual): Call __terminate instead of _exit.
From-SVN: r23185
1998-10-19 15:34:53 -04:00
Per Bothner
8b27f22596
Undo some mistakes from previous merge.

From-SVN: r23184
1998-10-19 06:43:57 -07:00
Per Bothner
c20012b633
Undo some mistakes from previous merge.

From-SVN: r23183
1998-10-19 06:43:55 -07:00
Jeffrey A Law
dbcce8f8e8 * 981019-1.c: New test.
From-SVN: r23182
1998-10-19 07:04:43 -06:00
Jeff Law
2fb5435af8 Fix dumb thinko.
From-SVN: r23181
1998-10-19 07:03:32 -06:00
Bernd Schmidt
51d87cd905 * jump.c (sets_cc0_p): Compile only if HAVE_cc0.
From-SVN: r23180
1998-10-19 06:28:19 -06:00
Jeffrey A Law
e1f7435e41 loop.c (scan_loop): Be more selective about what invariants are moved out of a loop.
* loop.c (scan_loop): Be more selective about what invariants are
        moved out of a loop.

From-SVN: r23178
1998-10-19 06:20:32 -06:00
Jeffrey A Law
38bf4c6fcd Bump for snapshot
From-SVN: r23176
1998-10-19 04:47:33 -06:00
Jeffrey A Law
c3cad2213e libgcc2.c (eh_context_static): Do not call malloc to allocate the static eh_context structure.
* libgcc2.c (eh_context_static): Do not call malloc to allocate the
        static eh_context structure.

From-SVN: r23175
1998-10-19 04:44:52 -06:00
Jeffrey A Law
b1fc873cc2 reload1.c (reload_reg_free_before_p): Hack.
* reload1.c (reload_reg_free_before_p): Hack.  Return 0 if EQUIV
        is nonzero.  This is temporary!

From-SVN: r23174
1998-10-19 04:30:23 -06:00
Dave Love
495e6ebb40 configure.in: Use AC_CONFIG_AUX_DIR.
1998-10-19  Dave Love  <d.love@dl.ac.uk>
	* configure.in: Use AC_CONFIG_AUX_DIR.

From-SVN: r23173
1998-10-19 10:14:19 +00:00
Bernd Schmidt
8e2f6e35ba combine.c (recog_for_combine): Lose PADDED_SCRATCHES arg.
* combine.c (recog_for_combine): Lose PADDED_SCRATCHES arg.  All
	callers changed.
	(try_combine): Don't update max_scratch.
	* flow.c (max_scratch, num_scratch): Delete variables.
	(life_analysis_1): Don't initialize max_scratch.
	(propagate_block): Don't update max_scratch.
	(mark_set_1): Don't increment num_scratch.
	* regs.h (max_scratch): Delete declaration.

From-SVN: r23172
1998-10-19 03:47:55 -06:00
Jeff Law
02bc973394 sched.c (update_flow_info): Handle death notes made invalid by instruction splitting.
�
        * sched.c (update_flow_info): Handle death notes made invalid by
        instruction splitting.  Partially reverts Oct 15, 1998 patch.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r23171
1998-10-19 03:44:36 -06:00
Jeff Law
5f5702e21c sched.c (update_flow_info): Handle death notes made invalid by instruction splitting.
�
        * sched.c (update_flow_info): Handle death notes made invalid by
        instruction splitting.  Partially reverts Oct 15, 1998 patch.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r23170
1998-10-19 03:44:34 -06:00
Jeff Law
577a8b78ca sched.c (update_flow_info): Handle death notes made invalid by instruction splitting.
P
        * sched.c (update_flow_info): Handle death notes made invalid by
        instruction splitting.  Partially reverts Oct 15, 1998 patch.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r23169
1998-10-19 03:44:31 -06:00
Kaveh R. Ghazi
6fbe990127 Warning fixes:
* Makefile.in (lex.o): Depend on dwarfout.h.
        * lang-specs.h: Add missing braces in initializer.
        * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.

From-SVN: r23168
1998-10-19 09:17:21 +00:00
Jeff Law
f2e4552251 Daily bump.
From-SVN: r23167
1998-10-18 18:45:01 -06:00
Jeff Law
1b8a4ef39f config.if (cxx_interface, [...]): Do not try to set these if the appropriate directories and files to not exist.
P
        * config.if (cxx_interface, libstdcxx_interface): Do not try to set
        these if the appropriate directories and files to not exist.

From-SVN: r23166
1998-10-18 11:37:10 -06:00
Jeff Law
35cd256514 config.if (cxx_interface, [...]): Do not try to set these if the appropriate directories and files to not exist.
�
        * config.if (cxx_interface, libstdcxx_interface): Do not try to set
        these if the appropriate directories and files to not exist.

From-SVN: r23165
1998-10-18 11:37:09 -06:00
Jeffrey A Law
6acdd0fd75 function.c (uninitialized_vars_warning): Do not warn for a VAR_DECL if it has a nonzero DECL_INITIAL.
* function.c (uninitialized_vars_warning): Do not warn for a VAR_DECL
        if it has a nonzero DECL_INITIAL.

From-SVN: r23164
1998-10-18 10:34:41 -06:00
Martin v. Löwis
39ee4d93e6 decl2.c (validate_nonmember_using_decl): Fix using-directives of std if std is ignored.
* decl2.c (validate_nonmember_using_decl): Fix using-directives of
        std if std is ignored.

From-SVN: r23162
1998-10-18 09:21:17 +00:00
Jason Merrill
820fcad8d1 * decl.c (grokvardecl): Fix thinko.
From-SVN: r23161
1998-10-18 00:18:02 -04:00
Jason Merrill
1eab9b5614 decl.c (grokdeclarator): Embedded attrs bind to the right, not the left.
* decl.c (grokdeclarator): Embedded attrs bind to the right,
	not the left.

From-SVN: r23160
1998-10-18 00:11:07 -04:00
Jason Merrill
52fbc84763 parse.y (fn.def2): Fix 'attrs' format.
* parse.y (fn.def2): Fix 'attrs' format.
	* Makefile.in (CONFLICTS): Update.
	* parse.y (expr_or_declarator_intern): New rule.
	(expr_or_declarator, direct_notype_declarator, primary,
	functional_cast): Use it.
	(notype_declarator_intern): New rule.
	(notype_declarator, complex_notype_declarator): Use it.

From-SVN: r23159
1998-10-17 23:10:53 -04:00
Jeff Law
176b6042f7 Daily bump.
From-SVN: r23158
1998-10-17 18:45:02 -06:00
Jason Merrill
79c4d4b7a8 decl.c (grokfndecl): Set DECL_CONTEXT to namespace if appropriate.
* decl.c (grokfndecl): Set DECL_CONTEXT to namespace if appropriate.
	(grokvardecl): Likewise.

From-SVN: r23157
1998-10-17 19:01:39 -04:00
Kaveh R. Ghazi
1ddb2906cc Warning fixes:
* class.c (make_method_vec): Cast 1st argument of `bzero' to (PTR).
        (add_method): Likewise for arguments 1 & 2 of `bcopy'.
        * decl.c (signal_catch): Mark with ATTRIBUTE_NORETURN.
        * pt.c (process_partial_specialization): Cast 1st argument of
        `bzero' to (PTR).
        * tree.c (build_base_fields): Cast `base_align' to (int) when
        comparing against one.

From-SVN: r23156
1998-10-17 20:33:45 +00:00
Kaveh R. Ghazi
79c9824ecb Warning fixes:
* Makefile.in (flow.o): Depend on recog.h.
        * cpplib.h (directive_table): Add missing initializiers.
        (finclude): Change type of variable `bsize' to size_t.
        * cse.c (rtx_cost): Mark parameter `outer_code' with ATTRIBUTE_UNUSED.
        * dwarfout.h (dwarfout_label): Wrap prototype in macro RTX_CODE.
        * fix-header.c (lookup_std_proto): Cast the result of `strlen' to
        `int' when comparing against one.
        (cpp_file_line_for_message): Mark parameter `pfile' with
        ATTRIBUTE_UNUSED.
        (cpp_fatal): Mark parameter `pfile' with ATTRIBUTE_UNUSED.
        * flow.c: Include recog.h.
        (sbitmap_copy): Cast arguments 1 & 2 of `bcopy' to (PTR).
        * function.c (thread_prologue_and_epilogue_insns): Mark parameter
        `f' with ATTRIBUTE_UNUSED.
        (reposition_prologue_and_epilogue_notes): Likewise.
        * genopinit.c (gen_insn): Cast argument of ctype functions to
        `unsigned char'.
        * haifa-sched.c: Include recog.h.
        (blockage_range): Cast result of UNIT_BLOCKED macro to (int) when
        comparing against one.
        * libgcc2.a (__throw): Revert ATTRIBUTE_UNUSED change for now.
        * mips-tfile.c (parse_end): Cast the argument of ctype function to
        `unsigned char'.
        (parse_ent): Likewise.
        (parse_input): Likewise.
        * optabs.c (init_libfuncs): Likewise.
        * protoize.c (find_rightmost_formals_list): Likewise.
        * recog.h (const_double_operand): Fix typo in prototype.
        * tlink.c (scan_linker_output): Cast the argument of ctype
        function to `unsigned char'.
        * toplev.c (check_lang_option): Cast the result of `strlen' to
        `int' when comparing against one.

From-SVN: r23155
1998-10-17 20:26:29 +00:00
Graham Stott
eb51666662 * gcse.c (dump_cuid_table): Correct typo.
From-SVN: r23154
1998-10-17 06:11:06 -06:00
Per Bothner
f9d48c822a Makefile.in: Link with libiberty.a instead of memmove.o.
�
	* Makefile.in:  Link with libiberty.a instead of memmove.o.

From-SVN: r23153
1998-10-17 04:27:41 -07:00
Per Bothner
3e9cfddb07 *** empty log message ***
From-SVN: r23152
1998-10-17 04:27:40 -07:00
Nick Clifton
1f50b02979 Prepend '-m' to --hrlp output of target specific options.
Ignore text after end of first word of a language specific option.

From-SVN: r23151
1998-10-17 11:04:29 +00:00
Jeff Law
13c8e8e30e Comment tweak.
From-SVN: r23150
1998-10-16 19:45:13 -06:00
Bernd Schmidt
297927a89c reload1.c (reg_used_by_pseudo): New static variable.
* reload1.c (reg_used_by_pseudo): New static variable.
	(choose_reload_regs): Initialize it.
	Use it instead of testing spill_reg_order to determine whether a
	pseudo is live in a hard register across the current insn.
	Fix a typo in a reference to reload_reg_rtx.

From-SVN: r23149
1998-10-16 19:44:01 -06:00
Bernd Schmidt
f8dd7f9883 flow.c (propagate_block): Replace code that computes and uses regs_sometimes_live with simpler code that...
* flow.c (propagate_block): Replace code that computes and uses
        regs_sometimes_live with simpler code that just walks the set of
        currently live registers.

From-SVN: r23148
1998-10-16 19:38:15 -06:00
Bernd Schmidt
0a578fee77 Makefile.in (insn-extract.o): Fix dependencies.
* Makefile.in (insn-extract.o): Fix dependencies.
	* genextract.c (main): Generate includes for insn-config.h and
	recog.h.
	Delete generation of declarations which are now in recog.h.
	* genrecog.c (main): Delete generation of definitions which are
	now in recog.c.
	* local-alloc.c (block_alloc): Use extract_insn and the variables
	it sets up instead of looking up values by insn_code.
	* recog.c (recog_operand, recog_operand_loc, recog_dup_loc,
	recog_dup_num): Define here instead of generating the definition in
	genrecog.c.
	(recog_n_operands, recog_n_dups, recog_n_alternatives,
	recog_operand_mode, recog_constraints, recog_operand_address_p):
	New variables.
	(extract_insn): New function.
	* recog.h (extract_insn): Declare function.
	(which_alternative, recog_n_operands, recog_n_dups,
	recog_n_alternatives, recog_operand_mode, recog_constraints,
	recog_operand_address_p): Declare variables.
	* regclass.c (n_occurrences): New static function.
	* reload.c (n_occurrences): Delete function.
	(find_reloads): Use extract_insn.
	* reload.h (n_occurrences): Delete declaration.

From-SVN: r23147
1998-10-16 19:28:57 -06:00
Jeff Law
e02bdac131 Daily bump.
From-SVN: r23146
1998-10-16 18:45:02 -06:00