cpplib.c: (_cpp_parse_assertion): Perform hash lookups based on full length of predicate.
authorNeil Booth <neilb@earthling.net>
Thu, 6 Jul 2000 09:51:57 +0000 (09:51 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 6 Jul 2000 09:51:57 +0000 (09:51 +0000)
* cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
based on full length of predicate.

From-SVN: r34885

gcc/ChangeLog
gcc/cpplib.c

index 6c4f47ea33521a265c6ce9f5479a788e15289abe..e19fd04fcf42de3ea6445d4ba7f746d165375796 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-06  Neil Booth  <NeilB@earthling.net>
+
+       * cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
+       based on full length of predicate.
+
 2000-07-06  Hans-Peter Nilsson  <hp@axis.com>
 
        * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
index b0008afd86f617b329a9e23a52f79028583f545f..05d3d877cb75dd5f4dc7ec1364b09dc24ef36852 100644 (file)
@@ -1328,7 +1328,7 @@ _cpp_parse_assertion (pfile, answerp)
   /* Prefix '#' to get it out of macro namespace.  */
   sym[0] = '#';
   memcpy (sym + 1, predicate->val.name.text, len);
-  return cpp_lookup (pfile, sym, len);
+  return cpp_lookup (pfile, sym, len + 1);
 
  error:
   FREE_ANSWER (answer);