Commit Graph

16282 Commits

Author SHA1 Message Date
Bernd Schmidt 4d1d804584 basic-block.h (basic_block_computed_jump_target): Declare.
* basic-block.h (basic_block_computed_jump_target): Declare.
	* flags.h: (current_function_has_computed_jump): Declare.
	* flow.c: (basic_block_computed_jump_target): Define.
	(flow_analysis): Allocate it. Set current_function_has_computed_jump
	to 0.
	(find_basic_blocks): Set current_function_has_computed_jump and
	elements of basic_block_computed_jump_target to 1 as appropriate.
	* function.c: (current_function_has_computed_jump): Define.
	* global.c (global_conflicts): Don't allocate pseudos into stack regs
	at the start of a block that is reachable by a computed jump.
	* reg-stack.c (stack_reg_life_analysis): If must restart, do so
	immediately.
	(subst_stack_regs): Undo change from Sep 4 1997.
	(uses_reg_or_mem): Now unused, deleted.
	* stupid.c (stupid_life_analysis): Compute
	current_function_has_computed_jump.
	(stupid_find_reg): Don't allocate stack regs if the function has a
	computed goto.
        * haifa-sched.c (is_cfg_nonregular): Delete code to determine if
        the current function has a computed jump.  Use the global value
        instead.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r18860
1998-03-27 17:12:41 -07:00
Jeffrey A Law 56f28b73e7 freebsd.h (CPP_PREDEFINES): Remove __386BSD__.
* i386/freebsd.h (CPP_PREDEFINES): Remove __386BSD__.
        (DWARF2_UNWIND_INFO): Define to zero.
David E. O'Brien sez it's the right thing to do.

From-SVN: r18859
1998-03-27 16:23:10 -07:00
Mark Mitchell a9936d39ea error.c (dump_decl): Be a bit more explicit with template type arguments, when verbose.
* error.c (dump_decl): Be a bit more explicit with template
	type arguments, when verbose.

From-SVN: r18858
1998-03-27 20:25:21 +00:00
Jason Merrill fae4153b40 * inc/exception: Reorder closing braces.
From-SVN: r18857
1998-03-27 13:17:29 -05:00
Michael Meissner 6ed4bb9a67 Make GCC_EXEC_PREFIX work again
From-SVN: r18856
1998-03-27 14:20:40 +00:00
Mark Mitchell 7fe6899fb7 pt.c (redeclare_class_template): New function.
* pt.c (redeclare_class_template): New function.
	* cp_tree.h (redeclare_class_template): Declare it.
	* decl.c (xref_tag): Use it.

From-SVN: r18855
1998-03-27 13:23:03 +00:00
Joern Rennecke 7daa142bd6 Typo fix.
From-SVN: r18854
1998-03-27 10:16:30 +00:00
J"orn Rennecke 1f3fa20e05 * sh.c (find_barrier): Fix calculations for alignemnt increase.
From-SVN: r18853
1998-03-27 10:12:02 +00:00
Manfred Hollstein 7a79083780 Makefile.in (stmp-fixinc): If we're actually fixing include files...
a
	* Makefile.in (stmp-fixinc): If we're actually fixing include
	files, copy gcc's assert.h into the fixed include dir.
	* fixincludes (assert.h): Avoid any attempts to fix a probably
	broken system specific assert.h file.
	* fixproto (stdlib.h): Make sure, it'll contain a definition of
	size_t.

From-SVN: r18852
1998-03-27 00:01:08 +00:00
Manfred Hollstein 1ab0e56783 Makefile.in (stmp-fixinc): If we're actually fixing include files...
d
	* Makefile.in (stmp-fixinc): If we're actually fixing include
	files, copy gcc's assert.h into the fixed include dir.
	* fixincludes (assert.h): Avoid any attempts to fix a probably
	broken system specific assert.h file.
	* fixproto (stdlib.h): Make sure, it'll contain a definition of
	size_t.

From-SVN: r18851
1998-03-27 00:01:06 +00:00
Manfred Hollstein d8a0154e51 Makefile.in (stmp-fixinc): If we're actually fixing include files...
0
	* Makefile.in (stmp-fixinc): If we're actually fixing include
	files, copy gcc's assert.h into the fixed include dir.
	* fixincludes (assert.h): Avoid any attempts to fix a probably
	broken system specific assert.h file.
	* fixproto (stdlib.h): Make sure, it'll contain a definition of
	size_t.

From-SVN: r18850
1998-03-27 00:01:04 +00:00
Jeffrey A Law 64d3b4ca2d regclass.c (reg_scan_mark_refs): Be more selective about when we mark a register with REGNO_POINTER_FLAG.
* regclass.c (reg_scan_mark_refs): Be more selective about
        when we mark a register with REGNO_POINTER_FLAG.

From-SVN: r18849
1998-03-26 16:51:11 -07:00
J"orn Rennecke e6e52be073 reload inheritance improvement:
* reload1.c (reg_reloaded_contents, reg_reloaded_insn):
	Change meaning: index is now hard reg number.
	(reg_reloaded_valid, reg_reloaded_dead): New variables.
	(reload_spill_index): Content is now a hard reg number.
	(reload_as_needed): Change to fit new variable meaning.
	(forget_old_reloads_1, allocate_reload_reg): Likewise.
	(choose_reload_regs, emit_reload_insns): Likewise.

From-SVN: r18848
1998-03-26 15:08:53 +00:00
Mark Mitchell a9c3c9a520 New test.
From-SVN: r18847
1998-03-26 14:22:54 +00:00
Jason Merrill b3e4ff59a3 call.c (build_over_call): Check IS_AGGR_TYPE, not TYPE_LANG_SPECIFIC.
* call.c (build_over_call): Check IS_AGGR_TYPE, not
	TYPE_LANG_SPECIFIC.
	* typeck.c (convert_arguments): Likewise.

From-SVN: r18846
1998-03-26 07:21:13 -05:00
Benjamin Kosnik 56d4b6fdcb }
if 0 ambiguous test case

From-SVN: r18845
1998-03-26 12:02:04 +00:00
Jason Merrill ac50abcebb revert
From-SVN: r18844
1998-03-26 06:41:23 -05:00
Jason Merrill 18922a6bca decl.c (grokdeclarator): Remove const and volatile from type after setting constp and volatilep.
* decl.c (grokdeclarator): Remove const and volatile from type after
	setting constp and volatilep.
	* class.c (finish_struct_1): Don't warn about bool bitfield larger
	than one bit.

From-SVN: r18843
1998-03-26 06:16:45 -05:00
J"orn Rennecke 812f205146 regclass.c (record_reg_classes): '?' increases cost by two.
* regclass.c (record_reg_classes): '?' increases cost by two.
	* reload.c (find_reloads): Double previous costs.  Output
	reloads cost one unit extra.
	* reload1.c (eliminate_regs): Delete LOAD_EXTENDED_OP code that
	boiled down to && ! 0.
	* reload.c (find_equiv_reg): Also consider a goal offset from the
	frame pointer to be constant.

From-SVN: r18842
1998-03-26 10:44:22 +00:00
Mark Mitchell 49bf0d6f80 pt.c (convert_nontype_argument): STRIP_NOPS where appropriate.
Thu Mar 26 10:25:52 1998  Mark Mitchell  <mmitchell@usa.net>
	* pt.c (convert_nontype_argument): STRIP_NOPS where appropriate.

From-SVN: r18841
1998-03-26 10:32:04 +00:00
Jeffrey A Law 00459c3ad1 acinclude.m4: Bring back changes lost during merge.
* acinclude.m4: Bring back changes lost during merge.
        (mostly Cygwin, automake and EGCS_PROG_INSTALL stuff).
        * aclocal.m4: Likewise.
        * configure.in: Likewise.

From-SVN: r18840
1998-03-26 03:30:41 -07:00
Mark Mitchell 734e8cc58d call.c (build_object_call): Complain about ambiguous operator(), rather that crashing.
* call.c (build_object_call): Complain about ambiguous operator(),
	rather that crashing.
	(build_new_op): Likewise.
	(build_op_delete_call): Likewise.

From-SVN: r18839
1998-03-26 10:26:43 +00:00
Mark Mitchell 17b75c9182 cvt.c (perform_qualification_conversions): Use comp_target_types instead of comp_ptr_ttypes.
* cvt.c (perform_qualification_conversions): Use comp_target_types
	instead of comp_ptr_ttypes.

From-SVN: r18838
1998-03-26 10:23:14 +00:00
J"orn Rennecke 04d02ece5e * sh.h (OPTIMIZATION_OPTIONS): Define.
From-SVN: r18837
1998-03-26 10:17:32 +00:00
Richard Henderson 6f28d3e982 * combine.c (make_compound_operation): Simplify (subreg (*_extend) 0).
From-SVN: r18836
1998-03-25 16:20:08 -08:00
Jeff Law 7eea64437a haifa-sched.c (find_post_sched_live): Use EXECUTE_IF_SET_IN_REG_SET instead of calling REGNO_REG_SET_P for each pseudo.
* haifa-sched.c (find_post_sched_live): Use EXECUTE_IF_SET_IN_REG_SET
        instead of calling REGNO_REG_SET_P for each pseudo.
        (update_reg_usage): Likewise.
        (compute_block_backward)dependences): Do not call "free_list" for
        an empty list.
Improves compile times by about 7% on average on my PAs.

From-SVN: r18835
1998-03-25 15:58:40 -07:00
Jeffrey A Law b09fa78719 * pa.c (pa_adjust_cost): Avoid redundant calls to get_attr_type.
From-SVN: r18834
1998-03-25 15:49:26 -07:00
Mark Mitchell 38afd588c5 cp-tree.h (enforce_access): Declare.
Wed Mar 25 16:10:50 1998  Mark Mitchell  <mmitchell@usa.net>
	* cp-tree.h (enforce_access): Declare.
	* call.c (enforce_access): Make it extern, not static.
	* class.c (alter_access): Use enforce_access; modify code for ISO
	compliance, rather than ARM rules.

From-SVN: r18832
1998-03-25 16:14:49 +00:00
Benjamin Kosnik 4d4c4d4583 *** empty log message ***
From-SVN: r18831
1998-03-25 14:11:13 +00:00
Benjamin Kosnik 56ee7837e9
test cases for g++15235

From-SVN: r18830
1998-03-25 14:11:13 +00:00
Brendan Kehoe dba21b324a new test for EH w/ opt on
From-SVN: r18829
1998-03-25 08:47:06 -05:00
Benjamin Kosnik 8e73900b4e
fix for g++/15235 now generates a warning here

From-SVN: r18828
1998-03-25 13:45:38 +00:00
Jim Wilson a16b4c9c69 Fix bug reported by David C Binderman, accept 'L' when pedantic with FP format.
* c-common.c (check_format_info): Initialize type, is_type.  New local
	integral_format.  Don't warn for 'L' when pedantic.  Do warn for 'L'
	when pedantic if used with integral format specifier.

From-SVN: r18827
1998-03-25 05:42:05 -08:00
Michael Meissner c4d38ccb55 Fix warnings from Kaveh R. Ghazi
From-SVN: r18826
1998-03-25 13:17:37 +00:00
Mark Mitchell c440840d77 Add requisite build-don't-link.
From-SVN: r18825
1998-03-25 12:31:44 +00:00
Kriang Lerdsuwanakij e4959d7c25 * cp-tree.h: Fix typo.
From-SVN: r18824
1998-03-25 07:15:07 -05:00
Jason Merrill 6b4e839128 expr.c (cplus_expand_expr): Only do PCC_STATIC_STRUCT_RETURN thing if (aggregate_value_p (type)).
* expr.c (cplus_expand_expr): Only do PCC_STATIC_STRUCT_RETURN thing
	if (aggregate_value_p (type)).

From-SVN: r18823
1998-03-25 05:54:42 -05:00
Nick Clifton e98e406fcc Add support for ARM's Thumb instruction set.
From-SVN: r18822
1998-03-25 10:44:07 +00:00
Jim Wilson 8cf619daa1 Fix m68k bootstrap failure reported by Toon Moene.
* loop.c (scan_loop): Initialize move_insn_first to zero.

From-SVN: r18821
1998-03-25 02:32:36 -08:00
Jeff Law b2fbdce5d8 Initial revision
From-SVN: r18815
1998-03-24 19:20:37 -07:00
Jason Merrill 97e7cbe4fb * decl2.c (constructor_name_full): Handle TYPENAME_TYPE.
From-SVN: r18814
1998-03-24 21:05:53 -05:00
Joel Sherrill fe0714d3f3 go32-rtems.h: Defined TARGET_MEM_FUNCTIONS.
* config/i386/go32-rtems.h: Defined TARGET_MEM_FUNCTIONS.
       * config/i386/rtems.h: Likewise.
       * config/i960/rtems.h: Likewise.
       * config/m68k/rtems.h: Likewise.
       * config/mips/rtems64.h: Likewise.
       * config/pa/rtems.h: Likewise.
       * config/rs6000/rtems.h: Likewise.
       * config/sh/rtems.h: Likewise.
       * config/sparc/rtems.h: Likewise.

From-SVN: r18813
1998-03-24 17:03:19 -07:00
Richard Kenner 428be70231 * pa.c (emit_move_sequence): If in reload, call find_replacement.
From-SVN: r18812
1998-03-24 16:53:47 -07:00
Jeff Law d275726b33 Merge in texinfo-3.12.
From-SVN: r18811
1998-03-24 12:41:43 -07:00
Jeff Law f35e74f9a6 Try test commit again. This time get everything.
From-SVN: r18808
1998-03-24 11:08:49 -07:00
Jeff Law bdfcdb1ba7 Dummy commit.
From-SVN: r18807
1998-03-24 10:58:30 -07:00
Nick Clifton 2ea9a96537 Support a .exe extension to gcov.
From-SVN: r18806
1998-03-24 17:27:46 +00:00
Mark Mitchell 9db4940cd6 tree.c (mapcar): When dealing with a DECL, use it's constant value, if any.
�
	* tree.c (mapcar): When dealing with a DECL, use it's constant
	value, if any.
	* pt.c (lookup_template_class): Don't mangle the names of template
	classes whose arguments are unknown.
	* pt.c (tsubst_expr): Handle GOTO_STMT correctly.

From-SVN: r18805
1998-03-24 16:13:12 +00:00
Mark Mitchell aa09da44c7 tree.c (mapcar): When dealing with a DECL, use it's constant value, if any.
�
	* tree.c (mapcar): When dealing with a DECL, use it's constant
	value, if any.
	* pt.c (lookup_template_class): Don't mangle the names of template
	classes whose arguments are unknown.
	* pt.c (tsubst_expr): Handle GOTO_STMT correctly.

From-SVN: r18804
1998-03-24 16:13:12 +00:00
Mark Mitchell ae16ec5f2c tree.c (mapcar): When dealing with a DECL, use it's constant value, if any.
�
	* tree.c (mapcar): When dealing with a DECL, use it's constant
	value, if any.
	* pt.c (lookup_template_class): Don't mangle the names of template
	classes whose arguments are unknown.
	* pt.c (tsubst_expr): Handle GOTO_STMT correctly.

From-SVN: r18803
1998-03-24 16:13:09 +00:00