OSDN Git Service

* config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Mar 2011 22:45:24 +0000 (22:45 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Mar 2011 22:45:24 +0000 (22:45 +0000)
via opts pointer.  Don't assert that global structures are in use.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171325 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pdp11/pdp11.c

index ea5a89d..17745df 100644 (file)
@@ -1,5 +1,10 @@
 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
 
+       * 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  <joseph@codesourcery.com>
+
        * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
        (munix=93): Use Var.
        * config/pa/pa-hpux1010.opt (munix=95): Use Var.
index a5f9c37..10052e9 100644 (file)
@@ -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: