This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: This is obviously wrong (but harmless) in tree-predcom.c
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Toon Moene <toon at moene dot org>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 22 Jan 2010 22:41:27 +0100
- Subject: Re: This is obviously wrong (but harmless) in tree-predcom.c
- References: <4B59F065.4080002@moene.org>
On Fri, Jan 22, 2010 at 7:37 PM, Toon Moene <toon@moene.org> wrote:
> I think the following is an obvious fix:
Ok.
Thanks,
Richard.
> 2010-01-22 ?Toon Moene ?<toon@moene.org>
>
> ? ? ? ?* tree-predcom.c (combine_chains): Return NULL, not false.
>
> Index: tree-predcom.c
> ===================================================================
> --- tree-predcom.c ? ? ?(revision 156157)
> +++ tree-predcom.c ? ? ?(working copy)
> @@ -2277,7 +2277,7 @@
> ? tree rslt_type = NULL_TREE;
>
> ? if (ch1 == ch2)
> - ? ?return false;
> + ? ?return NULL;
> ? if (ch1->length != ch2->length)
> ? ? return NULL;
>
>
> --
> Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
> Saturnushof 14, 3738 XG ?Maartensdijk, The Netherlands
> At home: http://moene.org/~toon/
> Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html
>