on boolean variables.
(cp_lexer_stop_debugging): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94731
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
static void
cp_lexer_start_debugging (cp_lexer* lexer)
{
- ++lexer->debugging_p;
+ lexer->debugging_p = true;
}
/* Stop emitting debugging information. */
static void
cp_lexer_stop_debugging (cp_lexer* lexer)
{
- --lexer->debugging_p;
+ lexer->debugging_p = false;
}
#endif /* ENABLE_CHECKING */