Message ID | 20111230234221.GA3130@ibm-tiger.the-meissners.org |
---|---|
State | New |
Headers | show |
Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 182746) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -27138,7 +27138,7 @@ rs6000_inner_target_options (tree args, if (strcmp (r, rs6000_opt_vars[i].name) == 0) { size_t j = rs6000_opt_vars[i].global_offset; - ((int *) &global_options)[j] = !invert; + *((int *) ((char *)&global_options + j)) = !invert; error_p = false; break; }