http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59794
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If we go that route, I'd say it would need to be
if (warning (OPT_Wpsabi, "...")))
warnedavx = true;
rather than
warnedavx = true;
warning (OPT_Wpsabi, "...");
so that if some functions have -Wpsabi warning disabled and other enabled, if
we decide to first warn on the one with the warning disabled, we warn on those
that have it enabled.
