* [gcc-in-cxx] FYI: avoid 'and' as identifier
@ 2008-10-05 17:29 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2008-10-05 17:29 UTC (permalink / raw)
To: Gcc Patch List
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-05 17:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-05 17:29 [gcc-in-cxx] FYI: avoid 'and' as identifier Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).