Patch from Roger Orr <rogero@howzatt.demon.co.uk>
PR preprocessor/69650
* directives.c (do_linemarker): Reread map after calling
cpp_get_token.
From-SVN: r234932
+2016-04-13 Bernd Schmidt <bschmidt@redhat.com>
+
+ Patch from Roger Orr <rogero@howzatt.demon.co.uk>
+ PR preprocessor/69650
+ * directives.c (do_linemarker): Reread map after calling
+ cpp_get_token.
+
2016-04-06 Richard Henderson <rth@redhat.com>
PR preprocessor/61817
if (reason == LC_LEAVE)
{
+ /* Reread map since cpp_get_token can invalidate it with a
+ reallocation. */
+ map = LINEMAPS_LAST_ORDINARY_MAP (line_table);
const line_map_ordinary *from;
if (MAIN_FILE_P (map)
|| (new_file
&& filename_cmp (ORDINARY_MAP_FILE_NAME (from), new_file) != 0))
{
cpp_warning (pfile, CPP_W_NONE,
- "file \"%s\" linemarker ignored due to incorrect nesting", new_file);
+ "file \"%s\" linemarker ignored due to "
+ "incorrect nesting", new_file);
return;
}
}