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:
parent
5324a3e621
commit
7be9b276b4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user