summaryrefslogtreecommitdiff
path: root/gcc/tree-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-dump.c')
-rw-r--r--gcc/tree-dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c
index 76db084323e..c5a87da343d 100644
--- a/gcc/tree-dump.c
+++ b/gcc/tree-dump.c
@@ -1004,6 +1004,9 @@ dump_switch_p_1 (const char *arg, struct dump_file_info *dfi, bool doglob)
if (!option_value)
return 0;
+ if (*option_value && *option_value != '-')
+ return 0;
+
ptr = option_value;
flags = 0;