diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/parser.c | 4 |
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 */ |