Backport r185150 to google-4_7 and google-4_8(save --std flag as cl_args)
Dehao Chen
dehao@google.com
Sat Apr 27 09:09:00 GMT 2013
Bootstrapped and passed regression tests.
Okay for google-4_7 and google-4_7 branches?
Thanks,
Dehao
2012-03-09 Rong Xu <xur@google.com>
* opts-global.c (lipo_save_cl_args): save -std option.
Google ref b/6117980.
Index: gcc/opts-global.c
===================================================================
--- gcc/opts-global.c (revision 198164)
+++ gcc/opts-global.c (working copy)
@@ -277,7 +277,7 @@ lipo_save_cl_args (struct cl_decoded_option *decod
*/
if (opt[0] == '-'
&& (opt[1] == 'f' || opt[1] == 'm' || opt[1] == 'W' || opt[1] == 'O'
- || (strstr (opt, "--param") == opt))
+ || (strstr (opt, "--param") == opt) || (strstr (opt, "-std=")))
&& !strstr(opt, "-frandom-seed")
&& !strstr(opt, "-fripa-disallow-opt-mismatch")
&& !strstr(opt, "-Wripa-opt-mismatch"))
More information about the Gcc-patches
mailing list