This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix ICE with -Wodr (PR middle-end/61913)
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jan Hubicka <hubicka at ucw dot cz>
- Date: Sun, 27 Jul 2014 13:02:36 +0200
- Subject: [PATCH] Fix ICE with -Wodr (PR middle-end/61913)
- Authentication-results: sourceware.org; auth=none
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?
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