Commit Graph

40 Commits

Author SHA1 Message Date
Mark Mitchell
c15398de77 tree.def (TYPE_NONCOPIED_PARTS): Revise documentation to match reality.
* tree.def (TYPE_NONCOPIED_PARTS): Revise documentation to match
        reality.
        * expr.c (init_noncopied_parts): Don't generate initializers for
        parts that don't need them.

From-SVN: r26969
1999-05-17 07:21:14 +00:00
Craig Burley
5b916f262a fix typo in comment
From-SVN: r26551
1999-04-19 14:16:33 -04:00
Craig Burley
d9c2af5b98 fix typo in tree.def
From-SVN: r26153
1999-04-03 06:58:12 -05:00
Per Bothner
502bf1f3ea tree.def (TRY_FINALLY_EXPR, [...]): New tree nodes,
`
	* tree.def (TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR):  New tree nodes,
	* expr.c (expand_expr):  Support new tree nodes.

From-SVN: r25307
1999-02-19 03:19:28 -08:00
Jeff Law
1b0c6de626 More copyright fixes. Oh what fun.
From-SVN: r24536
1999-01-06 13:51:20 -07:00
Alexandre Petit-Bianco
70e6ca43a3 tree.def (GOTO_EXPR): Modified documentation.
8
	* tree.def (GOTO_EXPR): Modified documentation.
	* expr.c (expand_expr): Expand GOTO_EXPR into a goto or a computed
 	goto.

From-SVN: r22859
1998-10-05 15:36:16 -07:00
Alexandre Petit-Bianco
7c226435db tree.def (SWITCH_EXPR): New tree node definition.
�
	* tree.def (SWITCH_EXPR): New tree node definition.

From-SVN: r22552
1998-09-22 10:48:10 -07:00
Jim Wilson
dce2e8c098 * tree.def (DECL_RESULT): Correct documentation.
From-SVN: r21954
1998-08-24 12:46:49 -07:00
Alexandre Petit-Bianco
0044c65c78 tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
�
	* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
  	* tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
 	EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
 	macros.
	* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
 	EXIT_BLOCK_EXPR.

From-SVN: r21896
1998-08-21 12:32:18 -07:00
Per Bothner
abf82aabd1
Fix incorrect comment.

From-SVN: r21676
1998-08-11 09:34:05 -07:00
Alexandre Petit-Bianco
2491f72d97 tree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression so WFL are expanded correctly when...
�
	* tree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression
 	so WFL are expanded correctly when contained in a COMPOUND_EXPR.
	* tree.h (EXPR_WFL_EMIT_LINE_NOTE): Change macro not to use
 	lang_flag_0. Added documentation in the flag table.

From-SVN: r21338
1998-07-22 05:38:23 -07:00
Jeff Law
38e012594e typo typo fixes fixes
From-SVN: r19601
1998-05-06 15:09:07 -06:00
Jason Merrill
2addbe1dca tree.def: Add NAMESPACE_DECL.
* tree.def: Add NAMESPACE_DECL.
	* dwarfout.c (type_ok_for_scope): Ignore NAMESPACE_DECLs for now.
	* dwarf2out.c (push_decl_scope): Likewise.
	(scope_die_for): Likewise.
	* tree.c (decl_function_context): Use TREE_CODE_CLASS to determine
	how to get next context level.
	* cp-tree.def: Remove NAMESPACE_DECL.
	* cp/Makefile.in: Add .SUFFIXES.

From-SVN: r19539
1998-05-04 21:27:06 -04:00
Alexandre Petit-Bianco
bf1e5319c3 tree.def (EXPR_WITH_FILE_LOCATION): New tree node definition.
d
Fri Apr  3 17:02:13 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 	* tree.def (EXPR_WITH_FILE_LOCATION): New tree node definition.
 	* tree.h (EXPR_WFL_{NODE,FILENAME,FILENAME_NODE,LINENO,
 	COLNO,LINECOL,SET_LINECOL,EMIT_LINE_NOTE}): New macros.
 	(build_expr_wfl): New prototype declaration.
 	* tree.c (build_expr_wfl): New function, to build
  	EXPR_WITH_FILE_LOCATION nodes.
 	(copy_node): Don't zero TREE_CHAIN if copying a
  	EXPR_WITH_FILE_LOCATION node.
 	* print-tree.c (print_node): Handle EXPR_WITH_FILE_LOCATION.
 	* expr.c (expand_expr): Handle EXPR_WITH_FILE_LOCATION.

From-SVN: r19049
1998-04-08 07:03:48 -07:00
Jeff Law
cba734eaca Finish last change. I'm no emacs wizard :(
From-SVN: r17069
1997-12-12 02:00:19 -07:00
John F. Carr
0a6969ad7c tree.c, tree.h: Change tree_code_type, tree_code_length, and tree_code_name from pointers to arrays.
* tree.c, tree.h: Change tree_code_type, tree_code_length, and
        tree_code_name from pointers to arrays.
        * tree.c: Remove standard_tree_code_* variables, no longer used.
        * print-tree.c: Remove declaration of tree_code_name.

        * cp/lex.c (init_lex): Update for tree_code_* changes.
        * objc/objc-act.c (init_objc): Likewise.

        * tree.def, cp/cp-tree.def, objc/objc-tree.def: Update for tree_code
        changes.

From-SVN: r17061
1997-12-11 23:49:29 -07:00
Jeff Law
956d69504d Merge from gcc-2.8
From-SVN: r16987
1997-12-06 17:31:01 -07:00
Jeff Law
d32ecec207 Fix typo.
From-SVN: r16649
1997-11-21 13:24:56 -07:00
Mike Stump
e976b8b277 Add setjmp/longjmp exception handling.
From-SVN: r13968
1997-04-23 20:04:25 +00:00
Jason Merrill
a082c85a43 x
From-SVN: r13116
1996-11-09 01:32:56 +00:00
Richard Kenner
65ef067483 ([LR]SHIFT_EXPR): Remove `a' from printed names.
From-SVN: r12144
1996-06-03 08:33:43 -04:00
Mike Stump
a4a3f053b7 tree.def (OFFSET_REF): Remove.
* tree.def (OFFSET_REF): Remove.
        * expr.c (expand_expr, case OFFSET_REF): Ditto.
        * tree.c (substitute_in_expr): Remove OFFSET_REF code.
Remove some old cruft

From-SVN: r12127
1996-05-31 05:08:47 +00:00
Mike Stump
b643d53db6 fix typo, target expr's have 4 fields now, not three.
From-SVN: r12124
1996-05-29 23:07:29 +00:00
Mike Stump
4847c9386b expr.c (expand_expr, [...]): Make TARGET_EXPRs redoable for UNSAVE_EXPR.
* expr.c (expand_expr, cond TARGET_EXPR): Make TARGET_EXPRs
	redoable for UNSAVE_EXPR.
	* stmt.c (expand_decl_cleanup): Wrap the cleanup in an UNSAVE_EXPR
	to that we can redo it.
	* tree.c (unsave_expr_now): Handle TARGET_EXPRs fully now.
	* tree.def (TARGET_EXPR): Add a third field so that TARGET_EXPRs
	are redoable.

From-SVN: r12018
1996-05-17 21:48:14 +00:00
Mike Stump
679163cf4d expr.c (expand_expr, [...]): Move from the C++ frontend to the backend where it belongs.
* expr.c (expand_expr, cond UNSAVE_EXPR): Move from the C++
	frontend to the backend where it belongs.
	* tree.c (unsave_expr): Ditto.
	(unsave_expr_now): Ditto.
	* tree.def (UNSAVE_EXPR): Ditto.
	* tree.h (unsave_expr): Ditto.
	(unsave_expr_now): Ditto.

From-SVN: r12015
1996-05-17 20:13:01 +00:00
Per Bothner
69b4bf9847 CONSTRUCTOR: Add comments.
From-SVN: r11075
1996-01-19 17:40:09 -08:00
Richard Kenner
340af9ef2d Update comments to clarify typing rules.
From-SVN: r10844
1995-12-24 07:35:16 -05:00
Richard Kenner
e9fa0c7c6f Update FSF address.
From-SVN: r9966
1995-06-15 08:29:51 -04:00
Richard Kenner
9040d8731a Update copyright dates.
From-SVN: r9140
1995-03-09 06:45:13 -05:00
Jason Merrill
8736e83608 Update CLEANUP_POINT_EXPR docs.
From-SVN: r9118
1995-03-03 03:45:02 +00:00
Per Bothner
38d42ddbcf Extend comment for SET_TYPE to mention Chill.
From-SVN: r8465
1994-11-15 20:19:55 -08:00
Mike Stump
5dab5552a1 calls.c (expand_call): Only destroy temporaries at the end of function calls, if flag_short_temps is set.
* calls.c (expand_call): Only destroy temporaries at the end
        of function calls, if flag_short_temps is set.
        * expr.c (safe_from_p, expand_expr): Handle CLEANUP_POINT_EXPRs.
        * expr.c (expand_expr): Improve handling of temporaries inside
        COND_EXPRs, cures call to sorry.
        * expr.c (defer_cleanups_to): New routine to handle the deferral
        of cleanups.
        * flags.h (flag_short_temps): New flag, to allow better control
        over the lifetime of temporaries.
        * toplev.c (flag_short_temps, lang_options): Ditto.
        * tree.def (CLEANUP_POINT_EXPR): Add, to allow better control over
        the lifetime of temporaries.

From-SVN: r7289
1994-05-13 00:19:57 +00:00
Per Bothner
70b78a2622 Removed un-used STRING_TYPE.
From-SVN: r6569
1994-02-15 19:52:30 -08:00
Richard Kenner
ab487f123a (PLACEHOLDER_EXPR, WITH_RECORD_EXPR): New tree codes.
From-SVN: r5579
1993-10-03 21:45:02 -04:00
Richard Kenner
e9b3df3116 (TRUTH_{AND,OR,XOR}_EXPR): Make code class be 'e' like the rest of the
truth operations.

From-SVN: r4745
1993-06-26 11:04:22 -04:00
Richard Kenner
08703ee423 (QUAL_UNION_TYPE): New tree code.
From-SVN: r4115
1993-04-13 06:34:08 -04:00
Per Bothner
442cb32d53 Clarify comment on INTEGER_TYPE.
From-SVN: r3618
1993-03-02 22:46:43 -08:00
Per Bothner
e670291961 Fix typos in comment.
From-SVN: r3467
1993-02-12 13:03:32 -08:00
Richard Kenner
b7b2fc98eb (TRUTH_XOR_EXPR): New tree code.
From-SVN: r2991
1992-12-30 06:00:39 -05:00
Brendan Kehoe
6d77ee8957 Initial revision
From-SVN: r2749
1992-11-12 20:55:58 -05:00