PATCH: PR c/40172: [4.5 Regression] Revision 147596 breaks bootstrap

H.J. Lu hjl.tools@gmail.com
Sun May 17 18:33:00 GMT 2009


On Sat, May 16, 2009 at 8:17 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 2009/5/16 Manuel López-Ibáñez <lopezibanez@gmail.com>:
>> That is strange, it should not warn for constants. Is it really 0 or
>> something else?
>
>
> I open a bug report with a testcase:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40172
>
>

Hi,

I am checking this patch to fix bootstrap.  Tested on Linux/Intel64
and Linux/ia64.


-- 
H.J.
---
gcc/

2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c/40172
	* c-common.c (warn_logical_operator): Don't warn if one of
	expression isn't always true or false.

gcc/testscase/

2009-05-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR c/40172
	* gcc.dg/torture/pr40172.c: New.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-pr40172-1.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090517/e1dc999c/attachment.ksh>


More information about the Gcc-patches mailing list