summaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-02 07:03:42 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-02 07:03:42 +0000
commita1c7eda2d5ee7ffde5e8ff23e0fec3cea03fea0b (patch)
tree073d54a44fc0257e933d04f1fd0ec4b6ab34ab6e /gcc/c-lex.c
parent30eb963b5f1fe5bd52255805f736b96fd50193c4 (diff)
downloadgcc-a1c7eda2d5ee7ffde5e8ff23e0fec3cea03fea0b.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72011 138bc75d-0d04-0410-961f-82ee72b054a4
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;