From: Nathan Sidwell Date: Wed, 22 Jul 2020 15:34:22 +0000 (-0700) Subject: dump: filenames containing - X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7be9b276b441dd8b33283c2bc36906e94b569806;p=gcc.git 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 '-' --- diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index 9a5496a18e8..8e53aeff340 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -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)