This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR69801


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]