This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR69801
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Feb 2016 16:36:08 +0100
- Subject: Re: [PATCH] Fix PR69801
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1602160934550 dot 1392 at t29 dot fhfr dot qr>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Feb 16, 2016 at 09:35:25AM +0100, Richard Biener wrote:
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.
>
> Richard.
>
> 2016-02-16 Richard Biener <rguenther@suse.de>
>
> PR middle-end/69801
> * fold-const.c (operand_equal_p): For COND_EXPR zero operand
> mask OEP_ADDRESS_OF.
>
> * gcc.dg/pr69801.c: New testcase.
The testcase fails, because default options include -ansi -pedantic-errors
and the testcase isn't valid C89.
Fixed thusly, regtested on x86_64-linux, committed to trunk as obvious.
2016-02-16 Jakub Jelinek <jakub@redhat.com>
PR middle-end/69801
* gcc.dg/pr69801.c: Add empty dg-options.
--- gcc/testsuite/gcc.dg/pr69801.c.jj 2016-02-16 10:11:14.000000000 +0100
+++ gcc/testsuite/gcc.dg/pr69801.c 2016-02-16 16:32:30.955386927 +0100
@@ -1,4 +1,6 @@
+/* PR middle-end/69801 */
/* { dg-do compile } */
+/* { dg-options "" } */
struct {
char c[1];
Jakub