aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index cd201f5..ef637e9 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3150,7 +3150,8 @@ static int last_language_n_infiles;
handle_option. */
static bool
-driver_handle_option (const struct cl_decoded_option *decoded,
+driver_handle_option (struct gcc_options *opts,
+ const struct cl_decoded_option *decoded,
unsigned int lang_mask ATTRIBUTE_UNUSED, int kind,
const struct cl_option_handlers *handlers ATTRIBUTE_UNUSED)
{
@@ -3161,6 +3162,7 @@ driver_handle_option (const struct cl_decoded_option *decoded,
bool validated = false;
bool do_save = true;
+ gcc_assert (opts == &global_options);
gcc_assert (kind == DK_UNSPECIFIED);
switch (opt_index)
@@ -3801,7 +3803,8 @@ process_command (unsigned int decoded_options_count,
continue;
}
- read_cmdline_option (decoded_options + j, CL_DRIVER, &handlers);
+ read_cmdline_option (&global_options, decoded_options + j,
+ CL_DRIVER, &handlers);
}
/* If -save-temps=obj and -o name, create the prefix to use for %b.