summaryrefslogtreecommitdiffstats
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-28 06:26:54 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-28 06:26:54 +0000
commit94fed2997a88a94f06e1fe24bc075692c2077386 (patch)
treea7a80d0a2c536203d919b2a5eb3328aa0e029f54 /gcc/cpplib.c
parentfbf041b8155e2b3eb6300b1988aedbceb30501ee (diff)
downloadppe42-gcc-94fed2997a88a94f06e1fe24bc075692c2077386.tar.gz
ppe42-gcc-94fed2997a88a94f06e1fe24bc075692c2077386.zip
PR preprocessor/7138
* cpplib.c (_cpp_handle_directive): Do traditional preparation after setting state.angled_headers. * cpptrad.c (scan_out_logical_line): Fix potential quote bug. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55055 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 6bb9f4d1bb2..f2d33a89e48 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -388,10 +388,6 @@ _cpp_handle_directive (pfile, indented)
"style of line directive is a GCC extension");
}
- pfile->directive = dir;
- if (CPP_OPTION (pfile, traditional))
- prepare_directive_trad (pfile);
-
if (dir)
{
/* If we have a directive that is not an opening conditional,
@@ -442,6 +438,10 @@ _cpp_handle_directive (pfile, indented)
cpp_token_as_text (pfile, dname));
}
+ pfile->directive = dir;
+ if (CPP_OPTION (pfile, traditional))
+ prepare_directive_trad (pfile);
+
if (dir)
{
/* If we are processing a `#define' directive and we have been
OpenPOWER on IntegriCloud