From 2d507e6702aca4771ce5497dcac7df12a9ce3eae Mon Sep 17 00:00:00 2001 From: tromey Date: Wed, 31 Oct 2007 14:50:13 +0000 Subject: gcc/testsuite PR preprocessor/30786: * gcc.dg/cpp/pr30786.c: New file. libcpp PR preprocessor/30786: * macro.c (builtin_macro): Return result of _cpp_do__Pragma. * directives.c (_cpp_do__Pragma): Return error status. * internal.h (_cpp_do__Pragma): Update. * directives.c (get__Pragma_string): Back up if EOF seen. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129800 138bc75d-0d04-0410-961f-82ee72b054a4 --- libcpp/macro.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libcpp/macro.c') diff --git a/libcpp/macro.c b/libcpp/macro.c index e80815b7bf2..50bb34ded5f 100644 --- a/libcpp/macro.c +++ b/libcpp/macro.c @@ -300,8 +300,7 @@ builtin_macro (cpp_reader *pfile, cpp_hashnode *node) if (pfile->state.in_directive) return 0; - _cpp_do__Pragma (pfile); - return 1; + return _cpp_do__Pragma (pfile); } buf = _cpp_builtin_macro_text (pfile, node); -- cgit v1.2.1