From: Mark Mitchell Date: Tue, 8 Feb 2005 04:11:04 +0000 (+0000) Subject: parser.c (cp_lexer_start_debugging): Avoid arithmetic operations on boolean variables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81122c446d94ea3f12fae0f28d6b436c577633d2;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 32e664533d5..5cb87420553 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2005-02-07 Mark Mitchell + + * parser.c (cp_lexer_start_debugging): Avoid arithmetic operations + on boolean variables. + (cp_lexer_stop_debugging): Likewise. + 2005-02-03 Giovanni Bajo PR c++/17401 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 82d665ed810..54e330f737a 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 */