summaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 15:08:50 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 15:08:50 +0000
commit6070c03585d1fbef96c79f02ee97abdfc64bef1f (patch)
tree001ffb21efda9c3fb69f2a80771b3f74a68f663a /gcc/tree.h
parent58a1adeaea65751aa32d498fcaa0e7cbcacf535e (diff)
downloadgcc-6070c03585d1fbef96c79f02ee97abdfc64bef1f.tar.gz
PR middle-end/19616
* tree.h (CALL_EXPR_TAILCALL): Add comment. * calls.c (check_sibcall_argument_overlap_1): Revert the change to this function from 2004-07-10. * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the the current function for tail call optimizations if the address of one of it its arguments is taken. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94265 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 4fdff0c76e1..884f2c43d45 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -824,6 +824,9 @@ extern void tree_operand_check_failed (int, enum tree_code,
had its address taken. That matters for inline functions. */
#define TREE_ADDRESSABLE(NODE) ((NODE)->common.addressable_flag)
+/* Set on a CALL_EXPR if the call is in a tail position, ie. just before the
+ exit of a function. Calls for which this is true are candidates for tail
+ call optimizations. */
#define CALL_EXPR_TAILCALL(NODE) (CALL_EXPR_CHECK(NODE)->common.addressable_flag)
/* In a VAR_DECL, nonzero means allocate static storage.