This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[incremental] Patch: FYI: fix thinko


I'm checking this in on the incremental-compiler branch.

This fixes a thinko from earlier.

Tom

ChangeLog:
2007-12-20  Tom Tromey  <tromey@redhat.com>

	* c-parser.c (c_parser_update_checksum): Fix logic.

Index: c-parser.c
===================================================================
--- c-parser.c	(revision 131104)
+++ c-parser.c	(working copy)
@@ -1141,7 +1141,7 @@
     case CPP_WCHAR:
       /* In some cases we can see a numeric token whose value is an
 	 error mark.  */
-      if (token->value == error_mark_node)
+      if (token->value != error_mark_node)
 	update_numeric_checksum (current_hash, token->value);
       break;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]