diff options
Diffstat (limited to 'gcc/toplev.c')
| -rw-r--r-- | gcc/toplev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 3050aac..e780587 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2124,8 +2124,9 @@ compile_file (name) #endif } - if (ggc_p) + if (ggc_p && name != 0) name = ggc_alloc_string (name, strlen (name)); + input_filename = name; /* Put an entry on the input file stack for the main input file. */ |
