aboutsummaryrefslogtreecommitdiff
path: root/libcpp/macro.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2007-10-31 14:50:13 +0000
committerTom Tromey <tromey@gcc.gnu.org>2007-10-31 14:50:13 +0000
commit5b9a40df4e3e9c4253239bbc32578eda155577ea (patch)
tree8f71104ce2a18a26b24bccc9043f80465c769a6b /libcpp/macro.c
parent69d10e15fb001b34aedfe14a7af7c9e1fafea6a0 (diff)
downloadgcc-5b9a40df4e3e9c4253239bbc32578eda155577ea.zip
gcc-5b9a40df4e3e9c4253239bbc32578eda155577ea.tar.gz
gcc-5b9a40df4e3e9c4253239bbc32578eda155577ea.tar.bz2
re PR preprocessor/30786 (ICE on _Pragma at end of file)
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. From-SVN: r129800
Diffstat (limited to 'libcpp/macro.c')
-rw-r--r--libcpp/macro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libcpp/macro.c b/libcpp/macro.c
index e80815b..50bb34d 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);