(handle_directive): Output macro name if dump_names.
authorRichard Stallman <rms@gnu.org>
Fri, 14 Aug 1992 23:15:01 +0000 (23:15 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 14 Aug 1992 23:15:01 +0000 (23:15 +0000)
From-SVN: r1849

gcc/cccp.c

index fb22de8327337358b2fe0658e47a0d98e8bca85d..79bb8169ba3540ba3c23cb58ef8900e3460719cb 100644 (file)
@@ -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? */