* dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
after '='.
From-SVN: r268380
+2019-01-30 Ulrich Drepper <drepper@redhat.com>
+
+ * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
+ after '='.
+
2019-01-29 Martin Sebor <msebor@redhat.com>
PR c/88956
end_ptr = strchr (ptr, '-');
eq_ptr = strchr (ptr, '=');
- if (eq_ptr && !end_ptr)
+ if (eq_ptr && (!end_ptr || eq_ptr < end_ptr))
end_ptr = eq_ptr;
-
- if (!end_ptr)
+ else if (!end_ptr)
end_ptr = ptr + strlen (ptr);
length = end_ptr - ptr;