components/gcc49/patches/023-libcilkrts-tests.patch
changeset 5205 eaff9ab86216
equal deleted inserted replaced
5204:766639d560b9 5205:eaff9ab86216
       
     1 # Stefan Teleman <[email protected]>
       
     2 # Port of CilkPlus (libcilkrts) to SPARC andd Solaris.
       
     3 # Enable libcilkrts' tests on GCC 4.9.3 for SPARC.
       
     4 # Internal patch. SPARC specific:
       
     5 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68945
       
     6 --- gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c	2013-11-06 06:55:46.000000000 -0800
       
     7 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c	2015-08-06 19:09:24.207776401 -0700
       
     8 @@ -1,6 +1,6 @@
       
     9  /* { dg-options "-fcilkplus" } */
       
    10 -/* { dg-do run { target i?86-*-* x86_64-*-* } } */
       
    11 -/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
    12 +/* { dg-do run { target i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } */
       
    13 +/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    14  
       
    15  #if HAVE_IO
       
    16  #include <stdio.h>
       
    17 --- gcc/testsuite/c-c++-common/cilk-plus/CK/steal_check.c	2014-01-09 05:37:41.000000000 -0800
       
    18 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/steal_check.c	2015-08-06 19:09:24.563452389 -0700
       
    19 @@ -1,6 +1,6 @@
       
    20 -/* { dg-do run  { target { i?86-*-* x86_64-*-* } } } */
       
    21 +/* { dg-do run  { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    22  /* { dg-options "-fcilkplus" } */
       
    23 -/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
    24 +/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    25  
       
    26  // #include <cilk/cilk_api.h>
       
    27  extern void __cilkrts_set_param (char *, char *);
       
    28 --- gcc/testsuite/c-c++-common/cilk-plus/CK/spawnee_inline.c	2014-01-09 05:37:41.000000000 -0800
       
    29 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/spawnee_inline.c	2015-08-06 19:09:24.472161093 -0700
       
    30 @@ -1,6 +1,6 @@
       
    31 -/* { dg-do run  { target { i?86-*-* x86_64-*-* } } } */
       
    32 +/* { dg-do run  { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    33  /* { dg-options "-fcilkplus -w" } */
       
    34 -/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
    35 +/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    36  
       
    37  #include <stdio.h>
       
    38  #include <stdlib.h>
       
    39 --- gcc/testsuite/c-c++-common/cilk-plus/CK/spawning_arg.c	2014-01-09 05:37:41.000000000 -0800
       
    40 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/spawning_arg.c	2015-08-06 19:09:24.519701327 -0700
       
    41 @@ -1,6 +1,6 @@
       
    42 -/* { dg-do run  { target { i?86-*-* x86_64-*-* } } } */
       
    43 +/* { dg-do run  { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    44  /* { dg-options "-fcilkplus" } */
       
    45 -/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
    46 +/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    47  
       
    48  void f0(volatile int *steal_flag)
       
    49  { 
       
    50 --- gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_sync.c	2013-11-06 06:55:46.000000000 -0800
       
    51 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_sync.c	2015-08-06 19:09:24.279017911 -0700
       
    52 @@ -1,6 +1,6 @@
       
    53  /* { dg-options "-fcilkplus" } */
       
    54 -/* { dg-do run { target i?86-*-* x86_64-*-* } } */
       
    55 -/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
    56 +/* { dg-do run { target i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } */
       
    57 +/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    58  
       
    59  #if HAVE_IO
       
    60  #include <stdio.h>
       
    61 --- gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_return.c	2013-11-06 06:55:46.000000000 -0800
       
    62 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_return.c	2015-08-06 19:09:24.254308740 -0700
       
    63 @@ -1,6 +1,6 @@
       
    64  /* { dg-options "-fcilkplus" } */
       
    65 -/* { dg-do run { target i?86-*-* x86_64-*-* } } */
       
    66 -/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
    67 +/* { dg-do run { target i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } */
       
    68 +/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    69  
       
    70  #if HAVE_IO
       
    71  #include <stdio.h>
       
    72 --- gcc/testsuite/c-c++-common/cilk-plus/CK/test__cilk.c	2013-10-29 11:36:31.000000000 -0700
       
    73 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/test__cilk.c	2015-08-06 19:09:24.600718008 -0700
       
    74 @@ -1,5 +1,5 @@
       
    75  /* { dg-do compile } */
       
    76 -/* { dg-do run  { target { i?86-*-* x86_64-*-* } } } */
       
    77 +/* { dg-do run  { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    78  /* { dg-options "-fcilkplus" } */
       
    79  
       
    80  int main (void)
       
    81 --- gcc/testsuite/c-c++-common/cilk-plus/CK/varargs_test.c	2014-01-09 05:37:41.000000000 -0800
       
    82 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/varargs_test.c	2015-08-06 19:09:24.621315395 -0700
       
    83 @@ -1,6 +1,6 @@
       
    84 -/* { dg-do run  { target { i?86-*-* x86_64-*-* } } } */
       
    85 +/* { dg-do run  { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    86  /* { dg-options "-fcilkplus" } */
       
    87 -/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
    88 +/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    89  
       
    90  #include <stdarg.h>
       
    91  #include <stdlib.h>
       
    92 --- gcc/testsuite/c-c++-common/cilk-plus/CK/spawner_inline.c	2014-02-07 02:49:08.000000000 -0800
       
    93 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/spawner_inline.c	2015-08-06 19:09:24.494961112 -0700
       
    94 @@ -1,6 +1,6 @@
       
    95 -/* { dg-do run  { target { i?86-*-* x86_64-*-* } } } */
       
    96 +/* { dg-do run  { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
    97  /* { dg-options "-fcilkplus" } */
       
    98 -/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
    99 +/* { dg-additional-options "-lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
   100  
       
   101  #include <stdlib.h>
       
   102  #define DEFAULT_VALUE 30
       
   103 --- gcc/testsuite/c-c++-common/cilk-plus/CK/fib_init_expr_xy.c	2013-11-06 06:55:46.000000000 -0800
       
   104 +++ gcc/testsuite/c-c++-common/cilk-plus/CK/fib_init_expr_xy.c	2015-08-06 19:09:24.230686024 -0700
       
   105 @@ -1,6 +1,6 @@
       
   106  /* { dg-options "-fcilkplus" } */
       
   107 -/* { dg-do run { target i?86-*-* x86_64-*-* } } */
       
   108 -/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* } } } */
       
   109 +/* { dg-do run { target i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } */
       
   110 +/* { dg-options "-fcilkplus -lcilkrts" { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
   111  
       
   112  #if HAVE_IO
       
   113  #include <stdio.h>
       
   114 --- gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error2.c	2013-12-18 11:00:21.000000000 -0800
       
   115 +++ gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error2.c	2015-08-06 19:11:44.336403626 -0700
       
   116 @@ -1,4 +1,4 @@
       
   117 -/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
       
   118 +/* { dg-do compile { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
   119  /* { dg-options "-fcilkplus -Wall" } */
       
   120  
       
   121  __attribute__((vector (vectorlength(32)))) 
       
   122 --- gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error3.c	2014-01-23 07:21:42.000000000 -0800
       
   123 +++ gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error3.c	2015-08-06 19:12:08.083690541 -0700
       
   124 @@ -1,4 +1,4 @@
       
   125 -/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
       
   126 +/* { dg-do compile { target { i?86-*-* x86_64-*-* sparc-*-* sparcv9-*-* } } } */
       
   127  /* { dg-options "-fcilkplus -Wall" } */
       
   128  
       
   129  __attribute__((vector (linear (x:y)))) /* { dg-message "parameter" "" { target c++ } } */