This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to shorten_compare -Wtype-limits handling
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>, Manuel LÃpez-Ibà <manu at gcc dot gnu dot org>
- Date: Wed, 18 Nov 2015 23:33:42 -0500
- Subject: Re: PATCH to shorten_compare -Wtype-limits handling
- Authentication-results: sourceware.org; auth=none
- References: <564D4F77 dot 3010005 at redhat dot com>
On Wed, Nov 18, 2015 at 11:26 PM, Jason Merrill <jason@redhat.com> wrote:
> The rs6000 target was hitting a bootstrap failure due to
> -Werror=type-limits. Since warn_tautological_cmp and other warnings avoid
> warning if one of the operands comes from a macro, I thought it would make
> sense to do that here as well.
>
> Tested that this allows rs6000 bootstrap to proceed, regression tested on
> x86_64-pc-linux-gnu, applying to trunk. David, do you want to revert the
> #pragma GCC diagnostic change?
Thanks for the patch.
Yes, I will revert the #pragma GCC diagnostic patch. It was meant as
a temporary hack to fix bootstrap while a long-term solution was
developed.
Thanks, David