This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix ICE with -Wodr (PR middle-end/61913)


On Sun, Jul 27, 2014 at 1:02 PM, Marek Polacek <polacek@redhat.com> wrote:
> Wodr in common.opt was missing a Var, which means:
> 1) we ICE with -Wodr, since -Wodr isn't handled in opts.c;
> 2) -Wno-odr wouldn't work.
> Thus fixed.  I'd think this doesn't need a testcase...
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk?

Ok.  Does this mean we don't have a -Wodr testcase?

Thanks,
Richard.

> 2014-07-27  Marek Polacek  <polacek@redhat.com>
>
>         PR middle-end/61913
>         * common.opt (Wodr): Add Var.
>
> diff --git gcc/common.opt gcc/common.opt
> index a385ee0..3b04044 100644
> --- gcc/common.opt
> +++ gcc/common.opt
> @@ -588,7 +588,7 @@ Wmissing-noreturn
>  Common Alias(Wsuggest-attribute=noreturn)
>
>  Wodr
> -Common Warning
> +Common Var(warn_odr_violations) Warning
>  Warn about some C++ One Definition Rule violations during link time optimization
>
>  Woverflow
>
>         Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]