From 448251cf35ebb44231dede033cfff876facdfb00 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 14 Aug 1992 23:15:01 +0000 Subject: [PATCH] (handle_directive): Output macro name if dump_names. From-SVN: r1849 --- gcc/cccp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gcc/cccp.c b/gcc/cccp.c index fb22de83273..79bb8169ba3 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -3377,6 +3377,17 @@ handle_directive (ip, op) check_expand (op, len); bcopy (buf, op->bufp, len); op->bufp += len; + } else if (kt->type == T_DEFINE && dump_macros == dump_names) { + U_CHAR *xp = buf; + U_CHAR *yp; + SKIP_WHITE_SPACE (xp); + yp = xp; + while (is_idchar[*xp]) xp++; + len = (xp - yp); + check_expand (op, len + 1); + *op->bufp++ = ' '; + bcopy (yp, op->bufp, len); + op->bufp += len; } } /* Don't we need a newline or #line? */ -- 2.30.2