* line-map.c (add_line_map): Handle invalid LEAVE request.
Fixes PR preprocessor/11361.
From-SVN: r69688
2003-07-22 Per Bothner <pbothner@apple.com>
+ * line-map.c (add_line_map): Handle invalid LEAVE request.
+ Fixes PR preprocessor/11361.
+
+2003-07-22 Per Bothner <pbothner@apple.com>
+
* diagnostic.c.(diagnostic_report_current_module): Update to match
2003-06-05 changes to push_srcloc and pop_srcloc.
if (MAIN_FILE_P (map - 1))
{
- set->depth--;
- set->used--;
- return NULL;
+ if (to_file == NULL)
+ {
+ set->depth--;
+ set->used--;
+ return NULL;
+ }
+ error = true;
+ reason = LC_RENAME;
+ from = map - 1;
}
else
{