aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-05-27 18:06:00 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-05-27 18:06:00 +0000
commitf71aebba8e9f255ba967b7929692cb2bb0b3e047 (patch)
tree0962db1bc0452131180f15034f9c05bf0e763bc5 /gcc
parentdf9149ee94647052c8d9a7627ff4fa9ea15546ae (diff)
downloadgcc-f71aebba8e9f255ba967b7929692cb2bb0b3e047.zip
gcc-f71aebba8e9f255ba967b7929692cb2bb0b3e047.tar.gz
gcc-f71aebba8e9f255ba967b7929692cb2bb0b3e047.tar.bz2
* cpplib.c (run_directive): Set pfile->directive.
From-SVN: r42661
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cpplib.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 55f566e..2d49273 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * cpplib.c (run_directive): Set pfile->directive.
+
2001-05-23 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* c-tree.texi: Reformat the manual as a single chapter now
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 96d296f..cb49310 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -422,7 +422,8 @@ run_directive (pfile, dir_no, type, buf, count)
start_directive (pfile);
pfile->state.prevent_expansion++;
- (void) (*dtable[dir_no].handler) (pfile);
+ pfile->directive = &dtable[dir_no];
+ (void) (*pfile->directive->handler) (pfile);
pfile->state.prevent_expansion--;
check_eol (pfile);
end_directive (pfile, 1);