This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Backport r185150 to google-4_7 and google-4_8(save --std flag as cl_args)
- From: Xinliang David Li <davidxl at google dot com>
- To: Dehao Chen <dehao at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 26 Apr 2013 19:08:40 -0700
- Subject: Re: Backport r185150 to google-4_7 and google-4_8(save --std flag as cl_args)
- References: <CAO2gOZVkXf0YgoFa=fFe=Z35vfkQNGD9qzHpbpkE4WiA6HniwQ at mail dot gmail dot com>
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"))