aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2004-05-20 22:08:46 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2004-05-20 22:08:46 +0000
commitf4085d4c0b2c20282d8197507f6ffb35522aa2e6 (patch)
tree9c22a0479f3c3304c61163c2b0ebb309c08513d1 /gcc/tree.h
parent3adf6cadbbfe23b96f8e53780ae5f1bc28f01077 (diff)
downloadgcc-f4085d4c0b2c20282d8197507f6ffb35522aa2e6.zip
gcc-f4085d4c0b2c20282d8197507f6ffb35522aa2e6.tar.gz
gcc-f4085d4c0b2c20282d8197507f6ffb35522aa2e6.tar.bz2
re PR middle-end/3074 (Statement with no effect not flagged with -Wall)
PR middle-end/3074 * fold-const.c (strip_compound_expr): Delete function. (count_cond): Delete function. (fold_binary_op_with_conditional_arg): Only perform transformations "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a" when a is constant. This greatly simplifies this routine. * tree.c (saved_expr_p): Delete function. * tree.h (saved_expr_p): Delete function prototype. * gcc.dg/pr3074-1.c: New test case. * gcc.dg/sequence-pt-1.c: Remove an XFAIL. From-SVN: r82071
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 991c9fe..ef33d01 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3177,11 +3177,6 @@ extern tree save_expr (tree);
extern tree skip_simple_arithmetic (tree);
-/* Return TRUE if EXPR is a SAVE_EXPR or wraps simple arithmetic around a
- SAVE_EXPR. Return FALSE otherwise. */
-
-extern bool saved_expr_p (tree);
-
/* Returns the index of the first non-tree operand for CODE, or the number
of operands if all are trees. */