diff options
author | Per Bothner <pbothner@apple.com> | 2003-10-02 07:03:42 +0000 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2003-10-02 00:03:42 -0700 |
commit | f4b2bde73f84ff3936cba8c8a3773c4c29a038fe (patch) | |
tree | 073d54a44fc0257e933d04f1fd0ec4b6ab34ab6e /gcc/c-lex.c | |
parent | efef2a5f2a6d41108e7df6f5d5e881d3073feae6 (diff) | |
download | gcc-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.c | 6 |
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; |