Patchwork Backport r185150 to google-4_7 and google-4_8(save --std flag as cl_args)

login
register
mail settings
Submitter Dehao Chen
Date April 27, 2013, 1:42 a.m.
Message ID <CAO2gOZVkXf0YgoFa=fFe=Z35vfkQNGD9qzHpbpkE4WiA6HniwQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/240071/
State New
Headers show

Comments

Dehao Chen - April 27, 2013, 1:42 a.m.
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.
Xinliang David Li - April 27, 2013, 2:08 a.m.
Ok.

David

On Fri, Apr 26, 2013 at 6:42 PM, Dehao Chen <dehao@google.com> wrote:
> 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"))

Patch

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"))