summaryrefslogtreecommitdiffstats
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-13 06:25:28 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-13 06:25:28 +0000
commit01628c3c60911f135446f30f05ed01008beb43ce (patch)
tree3e71956fa3f7d26102a5ef76e903e7afc02c749c /gcc/cppmacro.c
parente72f9af859e8515878c4a6237c9e77e8a65c4580 (diff)
downloadppe42-gcc-01628c3c60911f135446f30f05ed01008beb43ce.tar.gz
ppe42-gcc-01628c3c60911f135446f30f05ed01008beb43ce.zip
* cpplib.c (end_directive): Handle line skipping. Only remove
the rest of the line if the directive was valid. * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when expanding a traditional macro. * cpptrad.c (recursive_macro): New. (read_logical_line_trad): Handle skipping. (scan_out_logical_line): Continue after a successful directive. Don't expand macros whilst skipping, or if recursing. (_cpp_create_trad_definition): scan_out_logical_line now sets the output current position. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54573 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index a9ca6cf2dbf..20149ec9b33 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -947,6 +947,7 @@ _cpp_push_text_context (pfile, macro, start, len)
context->buff = NULL;
CUR (context) = start;
RLIMIT (context) = start + len;
+ macro->flags |= NODE_DISABLED;
}
/* Expand an argument ARG before replacing parameters in a
OpenPOWER on IntegriCloud