aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-07-22 08:34:22 -0700
committerNathan Sidwell <nathan@acm.org>2020-07-22 08:43:26 -0700
commit7be9b276b441dd8b33283c2bc36906e94b569806 (patch)
tree8f68c5754501ce09497741d4681b18e7bfbda7d8 /gcc
parent5324a3e621d9a2eec6addcc439c4adb1befa8ea9 (diff)
downloadgcc-7be9b276b441dd8b33283c2bc36906e94b569806.zip
gcc-7be9b276b441dd8b33283c2bc36906e94b569806.tar.gz
gcc-7be9b276b441dd8b33283c2bc36906e94b569806.tar.bz2
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 '-'
Diffstat (limited to 'gcc')
-rw-r--r--gcc/dumpfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index 9a5496a..8e53aef 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)