From: Joseph Myers Date: Tue, 22 Mar 2011 22:45:24 +0000 (+0000) Subject: pdp11.c (pdp11_handle_option): Access target_flags via opts pointer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d715091c4551d42e0620989c526abf9d2d12aeff;p=gcc.git pdp11.c (pdp11_handle_option): Access target_flags via opts pointer. * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags via opts pointer. Don't assert that global structures are in use. From-SVN: r171325 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea5a89d17b2..17745df185b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-22 Joseph Myers + + * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags + via opts pointer. Don't assert that global structures are in use. + 2011-03-22 Joseph Myers * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry. diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c index a5f9c37ba6c..10052e9f654 100644 --- a/gcc/config/pdp11/pdp11.c +++ b/gcc/config/pdp11/pdp11.c @@ -247,19 +247,17 @@ static const struct default_options pdp11_option_optimization_table[] = /* Implement TARGET_HANDLE_OPTION. */ static bool -pdp11_handle_option (struct gcc_options *opts, struct gcc_options *opts_set, +pdp11_handle_option (struct gcc_options *opts, + struct gcc_options *opts_set ATTRIBUTE_UNUSED, const struct cl_decoded_option *decoded, location_t loc ATTRIBUTE_UNUSED) { size_t code = decoded->opt_index; - gcc_assert (opts == &global_options); - gcc_assert (opts_set == &global_options_set); - switch (code) { case OPT_m10: - target_flags &= ~(MASK_40 | MASK_45); + opts->x_target_flags &= ~(MASK_40 | MASK_45); return true; default: