Commit Graph

18214 Commits

Author SHA1 Message Date
Mark Mitchell
8b5b8b7cc1 pt.c (convert_template_argument): New function, split out from...
* pt.c (convert_template_argument): New function, split out
	from...
	(coerce_template_parms): Here.
	(tsubst): Attempt better error-recovery.

From-SVN: r22099
1998-08-30 10:59:18 +00:00
Jeff Law
38f477fe90 Daily bump.
From-SVN: r22095
1998-08-29 18:45:02 -06:00
David S. Miller
be3f1ff52c sparc.md (pic_lo_sum_di, [...]): Rename to movdi_lo_sum_pic and movdi_high_pic and make visible.
* config/sparc/sparc.md (pic_lo_sum_di, pic_sethi_di): Rename to
	movdi_lo_sum_pic and movdi_high_pic and make visible.
	* config/sparc/sparc.c (legitimize_pic_address): For -fPIC,
	emit these when Pmode is not SImode.
	* config/sparc/linux64.h (SPARC_DEFAULT_CMODEL): Make CM_MEDLOW.

From-SVN: r22094
1998-08-29 15:46:34 -07:00
Jeff Law
25135471c2 Add Dave Brolley for chill and cpplib maint.
From-SVN: r22090
1998-08-29 15:36:16 -06:00
David S. Miller
c305b1a752 Fix thinko in ultra_cmove_results_ready_p.
From-SVN: r22088
1998-08-29 12:16:39 -07:00
David Edelsohn
57fc66388b really commit configure.in
From-SVN: r22087
1998-08-29 11:41:49 -04:00
Mumit Khan
a1612a6c5f cygwin32.h (ASM_OUTPUT_SECTION_NAME): Don't emit .linkonce directive after the first time.
0
        * i386/cygwin32.h (ASM_OUTPUT_SECTION_NAME): Don't emit
        .linkonce directive after the first time.

From-SVN: r22086
1998-08-29 08:01:47 -06:00
Mumit Khan
9c79f69ef9 cygwin32.h (ASM_OUTPUT_SECTION_NAME): Don't emit .linkonce directive after the first time.
(
        * i386/cygwin32.h (ASM_OUTPUT_SECTION_NAME): Don't emit
        .linkonce directive after the first time.

From-SVN: r22085
1998-08-29 08:01:45 -06:00
Jeffrey A Law
30b237515d m68k.md (beq0_di): Generate correct (and more efficient) code when...
* m68k.md (beq0_di): Generate correct (and more efficient) code when
        the clobbered operand overlaps with an input.
        (bne0_di): Similarly.

From-SVN: r22082
1998-08-29 07:54:24 -06:00
Jeffrey A Law
b4ea9a9d44 * Makefile.in (INSTALL): Remove "--no-header" argument.
From-SVN: r22080
1998-08-29 05:41:40 -06:00
Jeffrey A Law
8c08ae7ac2 * NEWS: Various updates.
From-SVN: r22079
1998-08-29 05:40:49 -06:00
David Edelsohn
9ea976658e Add and use mh-aix43 to set AR_FOR_TARGET.
From-SVN: r22077
1998-08-29 07:38:06 -04:00
Jeff Law
d0b9d6139a Bring version # and generated files updates over from the branch.
From-SVN: r22076
1998-08-29 04:37:48 -06:00
Benjamin Kosnik
6f22ba91f0
fix

From-SVN: r22075
1998-08-29 09:54:08 +00:00
Benjamin Kosnik
3d7fcc0410
more tests

From-SVN: r22073
1998-08-29 01:17:36 +00:00
Benjamin Kosnik
4e327c30bd pt.c (decl_template_parm_p): Add checks for TEMPLATE_TEMPLATE_PARM.
�
1998-08-28  Benjamin Kosnik  <bkoz@loony.cygnus.com>
        * pt.c (decl_template_parm_p): Add checks for
        TEMPLATE_TEMPLATE_PARM.

From-SVN: r22072
1998-08-29 01:15:24 +00:00
Benjamin Kosnik
6091762575 pt.c (decl_template_parm_p): Add checks for TEMPLATE_TEMPLATE_PARM.
�
1998-08-28  Benjamin Kosnik  <bkoz@loony.cygnus.com>
        * pt.c (decl_template_parm_p): Add checks for
        TEMPLATE_TEMPLATE_PARM.

From-SVN: r22071
1998-08-29 01:15:22 +00:00
Jeff Law
d84f48212d Daily bump.
From-SVN: r22069
1998-08-28 18:45:02 -06:00
David S. Miller
ddf8087493 sparc.c (arith_operand, [...]): Mark mode as unused.
* config/sparc/sparc.c (arith_operand, const64_operand,
	const64_high_operand, arith_double_4096_operand): Mark mode as
	unused.
	(create_simple_focus_bits): Remove unused arg highest_bit_set, all
	callers changed.
	(sparc_emit_set_const64): Remove unused variable i.
	(sparc_splitdi_legitimate): Likewise for addr_part.
	(ultra_code_from_mask): Likewise for mask.
	(ultra_cmove_results_ready_p): Fixup entry modulo calc.
	(ultra_flush_pipeline): Likewise.
	(ultra_fpmode_conflict_exists): Likewise, remove unused variable
	this_type, and allow loads and stores of differing FP modes as
	they do not create a conflict.
	(ultra_find_type): Initialize fpmode to SFmode, fix
	parenthesization thinkos in large conditional.
	(ultrasparc_sched_init): Mark dump and sched_verbose as unused.
	Init free_slot_mask after ultra_cur_hist is reset, not before.
	(ultrasparc_rescan_pipeline_state): Remove unused variable ucode.
	(ultrasparc_sched_reorder): Don't bzero current pipeline state,
	use ultra_flush_pipeline instead, then re-init group pointer.
	Fix statement with no effect.  If no progress made in, and no
	instructions scheduled at all, advance to new pipeline cycle else
	we get into an endless loop.
	(ultrasparc_adjust_cost): Remove previous arg.
	* config/sparc/sparc.h (ADJUST_COST): Update to reflect that.

From-SVN: r22068
1998-08-28 13:13:45 -07:00
Mark Mitchell
0078ab63c4 New test
From-SVN: r22067
1998-08-28 18:11:36 +00:00
Mark Mitchell
c296fce54e Tweak
From-SVN: r22066
1998-08-28 18:06:38 +00:00
Mark Mitchell
21d886ac9b New test
From-SVN: r22065
1998-08-28 18:00:56 +00:00
Mark Mitchell
479781c513 * lex.c (do_identifier): Fix thinko in previous change.
From-SVN: r22064
1998-08-28 17:36:09 +00:00
Mark Mitchell
818c888375 cp-tree.h (build_enumerator): Take the enumeration type as a paramter.
* cp-tree.h (build_enumerator): Take the enumeration type as a
	paramter.
	* decl.c (finish_enum): Don't set the TREE_TYPE for the
	enumeration constant values if we're processing_template_decls.
	Don't set the type for the CONST_DECLs either; that's done in
	build_enumerator. (
	(build_enumerator): Take the enumeration type as a
	paramter.
	* lex.c (do_identifier): Don't resolve enumeration constants while
	processing template declarations, even if they happen to be
	TEMPLATE_PARM_INDEXs.
	* parse.y (current_enum_type): New variable.
	(primary): Don't allow statement-expression in local classes just
	as we don't in global classes.
	(structsp): Use current_enum_type.
	(enum_list): Likewise.
	* pt.c (tsubst_enum): Don't check for NOP_EXPRs introduced by
	finish_enum; they no longer occur.

From-SVN: r22063
1998-08-28 17:02:44 +00:00
Mark Mitchell
541be14b8a New test
From-SVN: r22062
1998-08-28 16:48:44 +00:00
Jason Merrill
a1dd0d36f4 Add support for discarding unused virtual functions.
* search.c (dfs_search, binfo_for_vtable, dfs_bfv_helper): New fns.
	* decl2.c (output_vtable_inherit): Call binfo_for_vtable.
	* lang-options.h: Add -fvtable-gc.
	* cp-tree.h: Add flag_vtable_gc.
	* decl2.c (output_vtable_inherit): New fn.
	(finish_vtable_vardecl): Call it.
	* class.c (build_vtable_entry_ref): New fn.
	(build_vtbl_ref): Call it.

From-SVN: r22061
1998-08-28 12:11:35 -04:00
Mark Mitchell
079e1098ab cp-tree.h (build_enumerator): Take the enumeration type as a paramter.
* cp-tree.h (build_enumerator): Take the enumeration type as a
	paramter.
	* decl.c (finish_enum): Don't set the TREE_TYPE for the
	enumeration constant values if we're processing_template_decls.
	Don't set the type for the CONST_DECLs either; that's done in
	build_enumerator. (
	(build_enumerator): Take the enumeration type as a
	paramter.
	* lex.c (do_identifier): Don't resolve enumeration constants while
	processing template declarations, even if they happen to be
	TEMPLATE_PARM_INDEXs.
	* parse.y (current_enum_type): New variable.
	(primary): Don't allow statement-expression in local classes just
	as we don't in global classes.
	(structsp): Use current_enum_type.
	(enum_list): Likewise.
	* pt.c (tsubst_enum): Don't check for NOP_EXPRs introduced by
	finish_enum; they no longer occur.

From-SVN: r22060
1998-08-28 15:43:58 +00:00
Brendan Kehoe
ec8b2a1364 fix XCRASH setup
From-SVN: r22059
1998-08-28 11:43:10 -04:00
Brendan Kehoe
5d0c47400b dd `_eb91_' in front of the typenames, to avoid linux hiccups
From-SVN: r22058
1998-08-28 11:40:44 -04:00
Jim Wilson
0642498960 sparc.md (DImode, [...]): Delete self_reference code.
* sparc.md (DImode, DFmode, TFmode splits): Delete self_reference
	code.  Use reg_overlap_mentioned_p to detect when source and
	destination overlap.
	(negtf2_notv9+1): Use DFmode instead of SFmode in last two operands.

From-SVN: r22057
1998-08-28 07:57:55 -07:00
Mark Mitchell
ea6021e832 cp-tree.h (finish_base_specifier): New function.
* cp-tree.h (finish_base_specifier): New function.
	* parse.y (base_class): Use it.
	* semantics.c (finish_base_specifier): Define it.
	* parse.y (structsp): Warn on use of typename outside of template
	declarations.

From-SVN: r22055
1998-08-28 12:06:56 +00:00
Brendan Kehoe
9231189b62 loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not COMPARISON_VAL, into invariant_p.
* loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not
	COMPARISON_VAL, into invariant_p.

From-SVN: r22054
1998-08-28 07:23:35 -04:00
Brendan Kehoe
f285ef2072 mark as xfail for now, since we have the test but don't have a fix yet
From-SVN: r22053
1998-08-28 05:39:38 -04:00
J"orn Rennecke
3bb806ed99 regmove.c (regclass_compatible_p): New function.
* regmove.c (regclass_compatible_p): New function.
        (regmove_optimize): Use it.
        Use NREGS parameter insted of calling max_reg_num.
        (fixup_match_1): Don't use code = MINUS when later tieing with
        a hard register is likely.

From-SVN: r22052
1998-08-28 08:18:52 +01:00
J"orn Rennecke
8ed69d0908 loop.c (check_dbra_loop): Fix calculation of FINAL_VALUE when COMPARISON_VAL was normalized.
* loop.c (check_dbra_loop): Fix calculation of FINAL_VALUE when
	COMPARISON_VAL was normalized.

From-SVN: r22051
1998-08-28 08:05:20 +01:00
Martin v. Löwis
af3d5d5313 Update reference to standard.
From-SVN: r22050
1998-08-28 02:43:24 +00:00
Jeff Law
e6f018b241 Daily bump.
From-SVN: r22048
1998-08-27 18:45:03 -06:00
Jeffrey A Law
3aa94dc884 loop.c (check_dbra_loop): The loop ending comparison value must be an invariant or we can not reverse the...
* loop.c (check_dbra_loop): The loop ending comparison value
        must be an invariant or we can not reverse the loop.

From-SVN: r22045
1998-08-27 18:10:42 -06:00
Jeffrey A Law
78b87d18ae loop.c (scan_loop): Count down from max_reg_num - 1 to FIRST_PSEUDO_REGISTER to avoid calling...
* loop.c (scan_loop): Count down from max_reg_num - 1 to
        FIRST_PSEUDO_REGISTER to avoid calling max_reg_num each iteration
        of the loop.
        (load_mems_and_recount_loop_regs_set): Likewise.
Forgot second AVOID_CCMODE_COPIES loop.

From-SVN: r22044
1998-08-27 17:19:47 -06:00
Jeffrey A Law
3568fdd276 loop.c (scan_loop): Count down from max_reg_num - 1 to FIRST_PSEUDO_REGISTER to avoid calilng...
* loop.c (scan_loop): Count down from max_reg_num - 1 to
        FIRST_PSEUDO_REGISTER to avoid calilng max_reg_num each iteration
        of the loop.

From-SVN: r22043
1998-08-27 17:11:32 -06:00
Jeffrey A Law
3d55c13000 980827-1.c: New test.
* gcc.dg/980827-1.c: New test.
New test from Geoff Keating

From-SVN: r22042
1998-08-27 17:01:28 -06:00
Per Bothner
495897b71c Fix typo.
From-SVN: r22040
1998-08-27 13:52:38 -07:00
Per Bothner
615582bce1 Migrate from devo/gcc/ch.
From-SVN: r22039
1998-08-27 13:51:39 -07:00
Per Bothner
3c79b2da6b
Migrate from devo/gcc/ch.

From-SVN: r22038
1998-08-27 13:51:39 -07:00
Per Bothner
360c5f1547 Migrate from devo/gcc/ch.
From-SVN: r22037
1998-08-27 13:51:39 -07:00
Per Bothner
3a575f253d
Migrate from devo/gcc/ch.

From-SVN: r22036
1998-08-27 13:51:39 -07:00
Per Bothner
a2ca17fa85
Migrate from devo/gcc/ch.

From-SVN: r22035
1998-08-27 13:51:39 -07:00
Per Bothner
80a093b29e
Migrate from devo/gcc/ch.

From-SVN: r22034
1998-08-27 13:51:39 -07:00
Per Bothner
fc5074d4c9 d
Migrate from devo/gcc/ch.

From-SVN: r22033
1998-08-27 13:51:38 -07:00
Per Bothner
cb551490a3
Migrate from devo/gcc/ch.

From-SVN: r22032
1998-08-27 13:51:38 -07:00