dump: filenames containing -

I discovered the dump machinery would get confused by filenames containing '-'.
Fixed thusly.

	gcc/
	* dumpfile.c (parse_dump_option): Deal with filenames
	containing '-'
This commit is contained in:
Nathan Sidwell 2020-07-22 08:34:22 -07:00
parent 5324a3e621
commit 7be9b276b4

View File

@ -1800,7 +1800,7 @@ parse_dump_option (const char *option_value, const char **pos_p)
end_ptr = strchr (ptr, '-');
eq_ptr = strchr (ptr, '=');
if (eq_ptr && !end_ptr)
if (eq_ptr && (!end_ptr || end_ptr > eq_ptr))
end_ptr = eq_ptr;
if (!end_ptr)