Commit Graph

18 Commits

Author SHA1 Message Date
Richard Kenner
98d64f692f c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
* c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
	* c-typeck.c (convert_for_assignment): Likewise.

From-SVN: r33058
2000-04-10 07:59:46 -04:00
Richard Kenner
17aec3eb3b c-convert.c (convert): Return if output or input type is ERROR_MARK.
* c-convert.c (convert): Return if output or input type is ERROR_MARK.
	* c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
	and DECL_INLINE if FUNCTION_DECL.
	(pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
	(store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
	Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
	(combine_parm_decls): Likewise.
	* ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
	* print-tree.c (print_node): Likewise.
	Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
	DECL_TRANSPARENT_UNION on proper decl types.
	Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
	* stor-layout.c (layout_decl): Only check DECL_PACKED and
	DECL_BIT_FIELD of FIELD_DECL.
	* tree.h (DECL_RESULT_FLD): New macro.
	* cp/class.c (check_field_decl): Fix typo.
	(build_vtbl_or_vbase_field): Don't clear DECL_SAVED_INSNS.
	(check_methods): Likewise.
	(check_field_decls): Likewise.
	Use DECL_CONTEXT, not DECL_FIELD_CONTEXT.
	* cp-tree.h (DECL_SHADOWED_FOR_VAR, DECL_TEMPLATE_RESULT):
	Use DECL_RESULT_FLD, not DECL_RESULT.
	* cp/decl.c (xref_tag): Use DECL_TEMPLATE_RESULT.
	* cp/lex.c (identifier_type): Likewise.
	* cp/pt.c (determine_specialization, lookup_template_class): Likewise.
	(tsubst_friend_function, tsubst_decl, instantiate_template): Likewise.
	(resolve_overloaded_unification, more_specialized): Likewise.
	* cp/semantics.c (finish_member_declaration): Likewise.
	* cp/typeck.c (build_x_function_call): Likewise.

From-SVN: r32759
2000-03-26 20:26:18 -05:00
Jeff Law
c5c7673583 Merge in gcc2-ss-010999
From-SVN: r29150
1999-09-06 23:49:18 -06:00
Jeff Law
4283012f9f Copyright fixes.
From-SVN: r24535
1999-01-06 13:44:41 -07:00
Robert Lipe
5f6da3024b toplev.h: New file.
Wed May  6 06:35:38 1998  Robert Lipe  <robertl@dgii.com>
        * toplev.h: New file.   Protypes for functions in toplev.c.
        * tree.h, rtl.h: Deleted protos for functions in toplev.c.
        * c-common.c, c-convert.c, c-decl.c, c-iterate.c, c-lex.c,
        c-parse.in, c-parse.y, c-pragma.c, c-typeck.c, calls.c,
        convert.c, dwarf2out.c, except.c, expr.c, final.c, fold-const.c,
        function.c, hash.c, profile.c, real.c, reg-stack.c, regclass.c,
        reload.c, reload1.c, stmt.c, stor-layout.c, tlink.c, tree.c,
        varasm.c: include it.

From-SVN: r19563
1998-05-06 04:45:47 +00:00
Richard Kenner
940d9d638b Update FSF address.
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Richard Stallman
c050422f1e (convert): Handle conversion to complex type.
From-SVN: r3640
1993-03-04 19:42:13 +00:00
Brendan Kehoe
10055ae243 Cygnus<-->FSF merge.
From-SVN: r3162
1993-01-08 21:03:56 -05:00
Richard Kenner
825638ba06 (convert_to_integer): Handle TRUTH_XOR_EXPR.
From-SVN: r2994
1992-12-30 06:02:43 -05:00
Richard Stallman
1f0c5cc9cf (convert_to_integer): Don't pass truncation thru lshift if shift count >= width of narrower type.
(convert_to_integer): Don't pass truncation thru lshift
if shift count >= width of narrower type.  Instead, just use 0.

From-SVN: r2104
1992-09-11 07:35:32 +00:00
Richard Stallman
d434a42c5b (convert_to_integer): When optimizing LSHIFT_EXPR and
RSHIFT_EXPR, do compares at tree level.

From-SVN: r2086
1992-09-09 06:56:35 +00:00
Richard Stallman
542bc952de (convert): When converting to variant of same type, fold.
From-SVN: r1824
1992-08-14 08:36:14 +00:00
Richard Stallman
412a4297f6 (convert): If main variants match,
but the type is not identical, make a NOP_EXPR.

From-SVN: r1725
1992-07-31 06:13:07 +00:00
Richard Stallman
dacaf84fda (convert): Succeed if TYPE is the main variant of the given type.
From-SVN: r1698
1992-07-28 02:19:08 +00:00
Richard Kenner
f3964bb8a3 (convert_to_integer): Don't add a NOP_EXPR in cases where we can
simply change the type of the entire tree.

From-SVN: r1616
1992-07-17 06:37:06 -04:00
Richard Stallman
a0cf02b4bc (convert_to_integer): Push truncation inside COND_EXPR.
From-SVN: r1609
1992-07-17 04:26:02 +00:00
Tom Wood
cc0218f78f entered into RCS
From-SVN: r812
1992-04-21 18:00:03 +00:00
Richard Stallman
0e48b5a21b Initial revision
From-SVN: r247
1992-01-29 03:42:48 +00:00