break;
case OPT_fdump_:
- g->get_dumps ()->dump_switch_p (opt->arg);
+ /* Deferred until plugins initialized. */
break;
case OPT_fopt_info_:
}
}
}
+
+/* Handle deferred dump options. */
+
+void
+handle_deferred_dump_options (void)
+{
+ unsigned int i;
+ cl_deferred_option *opt;
+ vec<cl_deferred_option> v;
+
+ if (common_deferred_options)
+ v = *((vec<cl_deferred_option> *) common_deferred_options);
+ else
+ v = vNULL;
+ FOR_EACH_VEC_ELT (v, i, opt)
+ if (opt->opt_index == OPT_fdump_)
+ g->get_dumps ()->dump_switch_p (opt->arg);
+}
extern char *write_langs (unsigned int mask);
extern void print_ignored_options (void);
extern void handle_common_deferred_options (void);
+extern void handle_deferred_dump_options (void);
unsigned int parse_sanitizer_options (const char *, location_t, int,
unsigned int, int, bool);
initialize_plugins ();
+ /* Handle the dump options now that plugins have had a chance to install new
+ passes. */
+ handle_deferred_dump_options ();
+
if (version_flag)
print_version (stderr, "", true);