From 823a28aa77fff51880e92db9473ae015a2128ab5 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 28 Sep 1995 14:29:40 -0400 Subject: [PATCH] (rescan): Expand `#if foo && #bar' without a bogus complaint about preprocessor directives within macro args. (rescan): Expand `#if foo && #bar' without a bogus complaint about preprocessor directives within macro args. Expand `foo' in `foo#bar' without requiring a space before `#'. From-SVN: r10412 --- gcc/cccp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/cccp.c b/gcc/cccp.c index 9ae8fd0ab0b7..64f5f757b40b 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -2770,6 +2770,8 @@ do { ip = &instack[indepth]; \ case '#': if (assertions_flag) { + if (ident_length) + goto specialchar; /* Copy #foo (bar lose) without macro expansion. */ obp[-1] = '#'; /* In case it was '%'. */ SKIP_WHITE_SPACE (ibp); @@ -2783,6 +2785,7 @@ do { ip = &instack[indepth]; \ obp += ip->bufp - ibp; ibp = ip->bufp; } + break; } /* If this is expanding a macro definition, don't recognize -- 2.47.2