Commit Graph

16020 Commits

Author SHA1 Message Date
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
Mark Mitchell
d229896557 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: r18802
1998-03-24 16:13:08 +00:00
Nick Clifton
72cf690274 Add definition of GET_ENVIRONMENT and make prefix_from_env() use it.
From-SVN: r18801
1998-03-24 15:55:46 +00:00
Nick Clifton
1fdb7d9353 Ooops - fixed typo in previous delta
From-SVN: r18800
1998-03-24 14:38:09 +00:00
Benjamin Kosnik
bc6ecde7f8 decl.c (init_decl_processing): Set TYPE_PRECISON for bools to 1.
�
Tue Mar 24 12:21:55 1998  Benjamin Kosnik  <bkoz@lisa.cygnus.com>
	* decl.c (init_decl_processing): Set TYPE_PRECISON for bools to 1.
Tue Mar 24 12:21:48 1998  Jim Wilson  <wilson@cygnus.com>
        * decl.c (init_decl_processing): Initialize TYPE_MAX_VALUE for
        boolean_type_node to 1.
Fixes for g++/15235

From-SVN: r18799
1998-03-24 12:24:59 +00:00
Benjamin Kosnik
c1ea6a0b62 decl.c (init_decl_processing): Set TYPE_PRECISON for bools to 1.
8
Tue Mar 24 12:21:55 1998  Benjamin Kosnik  <bkoz@lisa.cygnus.com>
	* decl.c (init_decl_processing): Set TYPE_PRECISON for bools to 1.
Tue Mar 24 12:21:48 1998  Jim Wilson  <wilson@cygnus.com>
        * decl.c (init_decl_processing): Initialize TYPE_MAX_VALUE for
        boolean_type_node to 1.
Fixes for g++/15235

From-SVN: r18798
1998-03-24 12:24:56 +00:00
Nick Clifton
ae8c596367 Support win32 style absolute paths.
Add more debugging.

From-SVN: r18797
1998-03-24 10:49:50 +00:00
Mark Mitchell
ff29fd003b Commit files missed with last commit.
From-SVN: r18796
1998-03-24 10:34:35 +00:00
Mark Mitchell
050367a36d cplus-dem.c (optable): Add sizeof.
* cplus-dem.c (optable): Add sizeof.
	(demangle_template_value_parm): New function containing code
	previously found in demangle_template.
	(demangle_integral_value): New function which handles complicated
	integral expressions.
	(demangle_template): Use them.
	* error.c (dump_expr): Remove unused variable `l'.
	* pt.c (for_each_template_parm): New function, created by
	converting uses_template_parms.
	(tree_fn_t): New typedef.
	(uses_template_parms): Use it.
	(mark_template_parm): New function.
	(push_template_decl): Check that the argument list of a partial
	specialization uses all the template parameters.
	* Make-lang.in (c++filt): Don't delete cxxmain.c after we're done
	with it; we might want it for debugging.
	* cp-tree.h (type_unification): Change interface.
	* class.c (finish_struct_1): Skip nested template types, just like
	ordinary nested types.
	(instantiate_type): Use new interface to type_unification.
	* lex.c (init_lex): Add __sz as opname for sizeof.
	* method.c (build_overload_scope_ref): New function.
	(build_overload_int): Handle complex expressions.  Set
	numeric_output_need_bar if necessary.
	(build_overload_value): Handle non-PARM_DECL nodes; this
	routine is now used by build_overload_int.  Remove some
	assignments to numeric_output_need_bar.  Use
	build_overload_scope_ref.
	(build_qualified_name): Note that some template mangled names end
	with digits, and set numeric_output_need_bar appropriately.  Use
	build_underscore_int.
	* pt.c (unify): Change interface.
	(type_unification_real): Likewise.
	(determine_specialization): Use new interfaces.
	(tsubst): Deal gracefully with situations in which the argument
	vector is not fully filled.
	(fn_type_unification): Use new interfaces.
	(type_unification): Likewise.  Remove NOP_EXPR hack.
	(type_unification_real): Likewise.
	(unify): Likewise.  Deal with unification of complex expresions.

From-SVN: r18795
1998-03-24 10:25:44 +00:00
Kaveh R. Ghazi
0b93b64e20 Cutover various gen*.c files to using system.h:
* Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
        genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
        genattrtab.o, genoutput.o): Depend on system.h.
        * genattr.c: Include system.h.  Add arguments to various function
        prototypes.  Remove redundant prototype of read_rtx().
        * genattrtab.c: Likewise.
        * gencodes.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * genopinit.c: Likewise.
        * genoutput.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.

From-SVN: r18794
1998-03-24 10:16:53 +00:00
Brendan Kehoe
4c5f3fcd5a s/mrs/bkoz/
From-SVN: r18793
1998-03-24 03:54:17 -05:00
Jason Merrill
1559e387d6 fix memoize
From-SVN: r18792
1998-03-23 19:27:42 -05:00
Jason Merrill
9c65eeca37 * pt.c (complete_template_args): Initialize skip properly.
From-SVN: r18791
1998-03-23 18:15:44 -05:00