aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 5c09450..4311f4c 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1400,8 +1400,9 @@ wrap_help (const char *help, const char *item, unsigned int item_width)
a simple on-off switch. */
int
-option_enabled (const struct cl_option *option)
+option_enabled (int opt_idx)
{
+ const struct cl_option *option = &(cl_options[opt_idx]);
if (option->flag_var)
switch (option->var_cond)
{