diff options
author | Richard Stallman <rms@gnu.org> | 1992-08-14 23:15:01 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-08-14 23:15:01 +0000 |
commit | 448251cf35ebb44231dede033cfff876facdfb00 (patch) | |
tree | ac79a4fa61fccc45cfb9233279d9aa268797ecef | |
parent | 72f1215c5823a668d673bc7af7784a58dd035719 (diff) | |
download | gcc-448251cf35ebb44231dede033cfff876facdfb00.zip gcc-448251cf35ebb44231dede033cfff876facdfb00.tar.gz gcc-448251cf35ebb44231dede033cfff876facdfb00.tar.bz2 |
(handle_directive): Output macro name if dump_names.
From-SVN: r1849
-rw-r--r-- | gcc/cccp.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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? */ |