summaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorPer Bothner <pbothner@apple.com>2003-10-02 07:03:42 +0000
committerPer Bothner <bothner@gcc.gnu.org>2003-10-02 00:03:42 -0700
commitf4b2bde73f84ff3936cba8c8a3773c4c29a038fe (patch)
tree073d54a44fc0257e933d04f1fd0ec4b6ab34ab6e /gcc/c-lex.c
parentefef2a5f2a6d41108e7df6f5d5e881d3073feae6 (diff)
downloadgcc-f4b2bde73f84ff3936cba8c8a3773c4c29a038fe.tar.gz
c-lex.c (fe_file_change): Handle a NULL new_map.
* c-lex.c (fe_file_change): Handle a NULL new_map. * fix-header.c (cb_file_change): Likewise. * c-ppoutput.c (pp_file_change): Likewise. From-SVN: r72011
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index f3cdd3cffb0..5546fc9ddd1 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -212,6 +212,12 @@ cb_dir_change (cpp_reader *pfile ATTRIBUTE_UNUSED, const char *dir)
void
fe_file_change (const struct line_map *new_map)
{
+ if (new_map == NULL)
+ {
+ map = NULL;
+ return;
+ }
+
if (new_map->reason == LC_ENTER)
{
/* Don't stack the main buffer on the input stack;