aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-02-08 04:11:04 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2005-02-08 04:11:04 +0000
commit81122c446d94ea3f12fae0f28d6b436c577633d2 (patch)
treec93e1f32b8dd1b3a7c7f8d245b3674be92f536f5 /gcc
parentf8eacd975b94717a0ae1dd9d062a2d51d89dbc3f (diff)
downloadgcc-81122c446d94ea3f12fae0f28d6b436c577633d2.zip
gcc-81122c446d94ea3f12fae0f28d6b436c577633d2.tar.gz
gcc-81122c446d94ea3f12fae0f28d6b436c577633d2.tar.bz2
parser.c (cp_lexer_start_debugging): Avoid arithmetic operations on boolean variables.
* parser.c (cp_lexer_start_debugging): Avoid arithmetic operations on boolean variables. (cp_lexer_stop_debugging): Likewise. From-SVN: r94731
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/parser.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 32e6645..5cb87420 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2005-02-07 Mark Mitchell <mark@codesourcery.com>
+
+ * parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
+ on boolean variables.
+ (cp_lexer_stop_debugging): Likewise.
+
2005-02-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/17401
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 82d665e..54e330f 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -706,7 +706,7 @@ cp_lexer_print_token (FILE * stream, cp_token *token)
static void
cp_lexer_start_debugging (cp_lexer* lexer)
{
- ++lexer->debugging_p;
+ lexer->debugging_p = true;
}
/* Stop emitting debugging information. */
@@ -714,7 +714,7 @@ cp_lexer_start_debugging (cp_lexer* lexer)
static void
cp_lexer_stop_debugging (cp_lexer* lexer)
{
- --lexer->debugging_p;
+ lexer->debugging_p = false;
}
#endif /* ENABLE_CHECKING */