From 9e92edb4fb04f8584a4900857bd86758e62f3099 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 5 Oct 1993 16:04:55 -0400 Subject: [PATCH] (rescan): Don't expand an identifier after a '#'. From-SVN: r5611 --- gcc/cccp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gcc/cccp.c b/gcc/cccp.c index ebd8416b931..e1a654e34e3 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -2465,6 +2465,15 @@ do { ip = &instack[indepth]; \ break; } ++obp; /* Copy the '#' after all */ + /* Don't expand an identifier that could be a macro directive. + (Section 3.8.3 of the ANSI C standard) */ + SKIP_WHITE_SPACE (ibp); + if (is_idstart[*ibp]) + { + *obp++ = *ibp++; + while (is_idchar[*ibp]) + *obp++ = *ibp++; + } goto randomchar; } #ifdef USE_C_ALLOCA -- 2.30.2