Re: [PATCH] Fix up gcc.dg/type-convert-var.c testcase (was Re: [GCC][middle-end] Add rules to strip away unneeded type casts in expressions (2nd patch))

2019-07-30 Thread Richard Biener
On Tue, 30 Jul 2019, Jakub Jelinek wrote: > On Tue, Jul 30, 2019 at 09:05:35AM +0200, Rainer Orth wrote: > > > This new testcase FAILs e.g. on i686-linux. The problem is that > > > > this is PR middle-end/91282. > > Indeed. > > > > with no dg-options, the testcase options default to -ansi,

Re: [PATCH] Fix up gcc.dg/type-convert-var.c testcase (was Re: [GCC][middle-end] Add rules to strip away unneeded type casts in expressions (2nd patch))

2019-07-30 Thread Jakub Jelinek
On Tue, Jul 30, 2019 at 09:05:35AM +0200, Rainer Orth wrote: > > This new testcase FAILs e.g. on i686-linux. The problem is that > > this is PR middle-end/91282. Indeed. > > with no dg-options, the testcase options default to -ansi, which > > implies -fexcess-precision=standard. On

Re: [PATCH] Fix up gcc.dg/type-convert-var.c testcase (was Re: [GCC][middle-end] Add rules to strip away unneeded type casts in expressions (2nd patch))

2019-07-30 Thread Rainer Orth
Hi Jakub, > On Tue, Jul 02, 2019 at 04:43:54PM +, Tamar Christina wrote: >> --- /dev/null >> +++ b/gcc/testsuite/gcc.dg/type-convert-var.c >> @@ -0,0 +1,9 @@ >> +/* { dg-do compile } */ >> +/* { dg-additional-options "-O1 -fdump-tree-optimized" } */ >> +void foo (float a, float b, float *c)

[PATCH] Fix up gcc.dg/type-convert-var.c testcase (was Re: [GCC][middle-end] Add rules to strip away unneeded type casts in expressions (2nd patch))

2019-07-30 Thread Jakub Jelinek
On Tue, Jul 02, 2019 at 04:43:54PM +, Tamar Christina wrote: > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/type-convert-var.c > @@ -0,0 +1,9 @@ > +/* { dg-do compile } */ > +/* { dg-additional-options "-O1 -fdump-tree-optimized" } */ > +void foo (float a, float b, float *c) > +{ > + double e =