Commit c265c2dd by Richard Biener Committed by Richard Biener

re PR bootstrap/79567 (Compiler-warning "unknown escape sequence '\x'" about…

re PR bootstrap/79567 (Compiler-warning "unknown escape sequence '\x'" about genmatch-generated C-files on mingw-host)

2017-02-17  Richard Biener  <rguenther@suse.de>

	PR bootstrap/79567
	* genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.

From-SVN: r245527
parent 5bf69d74
2017-02-17 Richard Biener <rguenther@suse.de>
PR bootstrap/79567
* genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
2017-02-17 Marek Polacek <polacek@redhat.com>
PR middle-end/79536
......
......@@ -192,6 +192,11 @@ output_line_directive (FILE *f, source_location location,
{
/* When writing to a dumpfile only dump the filename. */
const char *file = strrchr (loc.file, DIR_SEPARATOR);
#if defined(DIR_SEPARATOR_2)
const char *pos2 = strrchr (loc.file, DIR_SEPARATOR_2);
if (pos2 && (!file || (pos2 > file)))
file = pos2;
#endif
if (!file)
file = loc.file;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment