http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58925

octoploid at yandex dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from octoploid at yandex dot com ---
Fixed. Thanks.

BTW fib_serial() in testsuite/c-c++-common/cilk-plus/CK/fib.c is obviously
wrong:

diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c
b/gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c
index 6612936a05c0..b4aac491bf86 100644
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c
+++ b/gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c
@@ -40,8 +40,8 @@ int fib_serial (int n)
     return n;
   else
     {
-      x = fib (n-1);
-      y = fib (n-2);
+      x = fib_serial (n-1);
+      y = fib_serial (n-2);
       return (x+y);
     }
 }

I've measured the serial vs. the cilk+ performance and it looks quite sad:

fib_serial:
...
fib (40) =  102334155
./a.out  1.82s user 0.00s system 99% cpu 1.822 total

fib with cilk+:
( % gcc -O3 -g -DHAVE_IO=1 -lcilkrts -ldl -fcilkplus fib.c)
...
fib (40) =  102334155
./a.out  29.14s user 0.06s system 392% cpu 7.432 total

Reply via email to