diff options
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index dac186d..88433f8 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -508,6 +508,8 @@ do_include (pfile) char *token; len = parse_include (pfile, dtable[T_INCLUDE].name); + if (len == 0) + return 0; token = alloca (len + 1); strcpy (token, CPP_PWRITTEN (pfile)); @@ -537,6 +539,8 @@ do_import (pfile) } len = parse_include (pfile, dtable[T_IMPORT].name); + if (len == 0) + return 0; token = alloca (len + 1); strcpy (token, CPP_PWRITTEN (pfile)); @@ -559,7 +563,8 @@ do_include_next (pfile) cpp_pedwarn (pfile, "ANSI C does not allow `#include_next'"); len = parse_include (pfile, dtable[T_INCLUDE_NEXT].name); - + if (len == 0) + return 0; token = alloca (len + 1); strcpy (token, CPP_PWRITTEN (pfile)); |