From 7be9b276b441dd8b33283c2bc36906e94b569806 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 22 Jul 2020 08:34:22 -0700 Subject: [PATCH] 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 '-' --- gcc/dumpfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)