From 2e25f3a6c57335cba50111faceb0ce2ab59e9bcb Mon Sep 17 00:00:00 2001 From: kan Date: Sun, 1 Sep 2002 20:38:57 +0000 Subject: Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on 1-Sep-2002 00:00:01 EDT. --- contrib/gcc/cpplib.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'contrib/gcc/cpplib.c') diff --git a/contrib/gcc/cpplib.c b/contrib/gcc/cpplib.c index 69e9044..096a711 100644 --- a/contrib/gcc/cpplib.c +++ b/contrib/gcc/cpplib.c @@ -406,12 +406,17 @@ run_directive (pfile, dir_no, buf, count) { cpp_push_buffer (pfile, (const U_CHAR *) buf, count, /* from_stage3 */ true, 1); + /* Disgusting hack. */ + if (dir_no == T_PRAGMA) + pfile->buffer->inc = pfile->buffer->prev->inc; start_directive (pfile); /* We don't want a leading # to be interpreted as a directive. */ pfile->buffer->saved_flags = 0; pfile->directive = &dtable[dir_no]; (void) (*pfile->directive->handler) (pfile); end_directive (pfile, 1); + if (dir_no == T_PRAGMA) + pfile->buffer->inc = NULL; _cpp_pop_buffer (pfile); } -- cgit v1.1