Re: [PATCH, ciklplus]: Use -ffloat-store for 32bit x86 in cilk-plus/AN/builtin_fn_{custom,mutating}.c

2014-11-25 Thread Richard Biener
On Mon, Nov 24, 2014 at 10:33 PM, Jeff Law l...@redhat.com wrote:
 On 11/22/14 11:50, Uros Bizjak wrote:

 Hello!

 These two tests fix PR target/63847 [1], where x87 excess precision
 causes testcase to fail. The problem was triggered by -fpic, please
 see the PR for analysis.

 The patch adds -ffloat-store for 32bit x86 target, a standard and well
 tested solution for this problem.

 2014-11-22  Uros Bizjak  ubiz...@gmail.com

  PR target/63847
  * c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Add -ffloat-store
  for 32bit x86 targets.
  * c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Ditto.

 OK.

Don't we have -fexcess-precision=standard for this now?

Richard.

 Jeff



Re: [PATCH, ciklplus]: Use -ffloat-store for 32bit x86 in cilk-plus/AN/builtin_fn_{custom,mutating}.c

2014-11-25 Thread Uros Bizjak
On Tue, Nov 25, 2014 at 10:23 AM, Richard Biener
richard.guent...@gmail.com wrote:
 On Mon, Nov 24, 2014 at 10:33 PM, Jeff Law l...@redhat.com wrote:
 On 11/22/14 11:50, Uros Bizjak wrote:

 Hello!

 These two tests fix PR target/63847 [1], where x87 excess precision
 causes testcase to fail. The problem was triggered by -fpic, please
 see the PR for analysis.

 The patch adds -ffloat-store for 32bit x86 target, a standard and well
 tested solution for this problem.

 2014-11-22  Uros Bizjak  ubiz...@gmail.com

  PR target/63847
  * c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Add -ffloat-store
  for 32bit x86 targets.
  * c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Ditto.

 OK.

 Don't we have -fexcess-precision=standard for this now?

Oh ... indeed. I will update the patch to enable it for all x86 targets.

Thanks,
Uros.


Re: [PATCH, ciklplus]: Use -ffloat-store for 32bit x86 in cilk-plus/AN/builtin_fn_{custom,mutating}.c

2014-11-25 Thread Uros Bizjak
On Tue, Nov 25, 2014 at 10:38 AM, Uros Bizjak ubiz...@gmail.com wrote:

 These two tests fix PR target/63847 [1], where x87 excess precision
 causes testcase to fail. The problem was triggered by -fpic, please
 see the PR for analysis.

 The patch adds -ffloat-store for 32bit x86 target, a standard and well
 tested solution for this problem.

 2014-11-22  Uros Bizjak  ubiz...@gmail.com

  PR target/63847
  * c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Add -ffloat-store
  for 32bit x86 targets.
  * c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Ditto.

 OK.

 Don't we have -fexcess-precision=standard for this now?

 Oh ... indeed. I will update the patch to enable it for all x86 targets.

cc1plus: sorry, unimplemented: -fexcess-precision=standard for C++

Uros.


Re: [PATCH, ciklplus]: Use -ffloat-store for 32bit x86 in cilk-plus/AN/builtin_fn_{custom,mutating}.c

2014-11-24 Thread Jeff Law

On 11/22/14 11:50, Uros Bizjak wrote:

Hello!

These two tests fix PR target/63847 [1], where x87 excess precision
causes testcase to fail. The problem was triggered by -fpic, please
see the PR for analysis.

The patch adds -ffloat-store for 32bit x86 target, a standard and well
tested solution for this problem.

2014-11-22  Uros Bizjak  ubiz...@gmail.com

 PR target/63847
 * c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Add -ffloat-store
 for 32bit x86 targets.
 * c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Ditto.

OK.
Jeff



[PATCH, ciklplus]: Use -ffloat-store for 32bit x86 in cilk-plus/AN/builtin_fn_{custom,mutating}.c

2014-11-22 Thread Uros Bizjak
Hello!

These two tests fix PR target/63847 [1], where x87 excess precision
causes testcase to fail. The problem was triggered by -fpic, please
see the PR for analysis.

The patch adds -ffloat-store for 32bit x86 target, a standard and well
tested solution for this problem.

2014-11-22  Uros Bizjak  ubiz...@gmail.com

PR target/63847
* c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Add -ffloat-store
for 32bit x86 targets.
* c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Ditto.

The patch was tested on x86_64-linux-gnu/-m32 {,-fpic}.

OK for mainline?

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63847

Uros.
Index: c-c++-common/cilk-plus/AN/builtin_fn_custom.c
===
--- c-c++-common/cilk-plus/AN/builtin_fn_custom.c   (revision 217961)
+++ c-c++-common/cilk-plus/AN/builtin_fn_custom.c   (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options -fcilkplus } */
+/* { dg-additional-options -ffloat-store { target { { i?86-*-* x86_64-*-* } 
 ilp32 } } } */
 
 #define NUMBER 100
 #if HAVE_IO
Index: c-c++-common/cilk-plus/AN/builtin_fn_mutating.c
===
--- c-c++-common/cilk-plus/AN/builtin_fn_mutating.c (revision 217961)
+++ c-c++-common/cilk-plus/AN/builtin_fn_mutating.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options -fcilkplus } */
+/* { dg-additional-options -ffloat-store { target { { i?86-*-* x86_64-*-* } 
 ilp32 } } } */
 
 #define NUMBER 100
 #if HAVE_IO