This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gcc-in-cxx] FYI: avoid 'and' as identifier
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 05 Oct 2008 11:21:18 -0600
- Subject: [gcc-in-cxx] FYI: avoid 'and' as identifier
- Reply-to: Tom Tromey <tromey at redhat dot com>
I'm checking this in on the gcc-in-cxx branch.
This renames a use of 'and' as an identifier to avoid an error from
g++.
Tom
ChangeLog:
2008-10-05 Tom Tromey <tromey@redhat.com>
* fold-const.c (fold_unary): Rename 'and' to 'and_expr'.
Index: fold-const.c
===================================================================
--- fold-const.c (revision 140884)
+++ fold-const.c (working copy)
@@ -7885,13 +7885,14 @@
&& TREE_CODE (op0) == BIT_AND_EXPR
&& TREE_CODE (TREE_OPERAND (op0, 1)) == INTEGER_CST)
{
- tree and = op0;
- tree and0 = TREE_OPERAND (and, 0), and1 = TREE_OPERAND (and, 1);
+ tree and_expr = op0;
+ tree and0 = TREE_OPERAND (and_expr, 0);
+ tree and1 = TREE_OPERAND (and_expr, 1);
int change = 0;
- if (TYPE_UNSIGNED (TREE_TYPE (and))
+ if (TYPE_UNSIGNED (TREE_TYPE (and_expr))
|| (TYPE_PRECISION (type)
- <= TYPE_PRECISION (TREE_TYPE (and))))
+ <= TYPE_PRECISION (TREE_TYPE (and_expr))))
change = 1;
else if (TYPE_PRECISION (TREE_TYPE (and1))
<= HOST_BITS_PER_WIDE_INT