From: Richard Kenner Date: Tue, 5 Oct 1993 20:04:55 +0000 (-0400) Subject: (rescan): Don't expand an identifier after a '#'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e92edb4fb04f8584a4900857bd86758e62f3099;p=gcc.git (rescan): Don't expand an identifier after a '#'. From-SVN: r5611 --- 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