From 803f4b2fda71a3522f8815f4ef18af62ed36d428 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 6 Jul 2000 09:51:57 +0000 Subject: [PATCH 1/1] * cpplib.c: (_cpp_parse_assertion): Perform hash lookups based on full length of predicate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34885 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/cpplib.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6c4f47ea335..e19fd04fcf4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-07-06 Neil Booth + + * cpplib.c: (_cpp_parse_assertion): Perform hash lookups + based on full length of predicate. + 2000-07-06 Hans-Peter Nilsson * timevar.c: [HAVE_SYS_RESOURCE_H]: Include . diff --git a/gcc/cpplib.c b/gcc/cpplib.c index b0008afd86f..05d3d877cb7 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -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); -- 2.11.0