Hi!

On Tue, 22 Sep 2015 11:29:37 -0400, Nathan Sidwell <nat...@acm.org> wrote:
> I've committed this patch, which simplifies the generation of openacc 
> reduction 
> code.

Aside from the progression mentioned in
<http://news.gmane.org/find-root.php?message_id=%3C87d1x9zhz7.fsf%40kepler.schwinge.homeip.net%3E>,
this change is also causing a regression:

    [-PASS:-]{+FAIL:+} c-c++-common/goacc/routine-7.c  (test for errors, line 
35)
    [-PASS:-]{+FAIL:+} c-c++-common/goacc/routine-7.c  (test for errors, line 
58)
    [-PASS:-]{+FAIL:+} c-c++-common/goacc/routine-7.c  (test for errors, line 
62)
    [-PASS:-]{+FAIL:+} c-c++-common/goacc/routine-7.c  (test for errors, line 
81)
    [-PASS:-]{+FAIL:+} c-c++-common/goacc/routine-7.c  (test for errors, line 
85)
    [-PASS:-]{+FAIL:+} c-c++-common/goacc/routine-7.c  (test for errors, line 
89)
    [-PASS:-]{+FAIL: c-c++-common/goacc/routine-7.c (internal compiler error)+}
    {+FAIL:+} c-c++-common/goacc/routine-7.c (test for excess errors)

Same for C++.

    [...]/build-gcc/gcc/xgcc -B[...]/build-gcc/gcc/ 
[...]/source-gcc/gcc/testsuite/c-c++-common/goacc/routine-7.c 
-fno-diagnostics-show-caret -fdiagnostics-color=never -fopenacc -S -o 
routine-7.s
    [...]/source-gcc/gcc/testsuite/c-c++-common/goacc/routine-7.c: In function 
'gang':
    [...]/source-gcc/gcc/testsuite/c-c++-common/goacc/routine-7.c:12:9: 
internal compiler error: Segmentation fault
    0xacaaaf crash_signal
            [...]/source-gcc/gcc/toplev.c:352
    0x127054b splay_tree_splay
            [...]/source-gcc/libiberty/splay-tree.c:141
    0x1270aa0 splay_tree_lookup
            [...]/source-gcc/libiberty/splay-tree.c:456
    0x9b4136 maybe_lookup_field
            [...]/source-gcc/gcc/omp-low.c:1044
    0x9b4136 lower_oacc_reductions
            [...]/source-gcc/gcc/omp-low.c:4805
    0x9d89e2 lower_oacc_head_tail
            [...]/source-gcc/gcc/omp-low.c:4903
    0x9d89e2 lower_omp_for
            [...]/source-gcc/gcc/omp-low.c:11311
    0x9d89e2 lower_omp_1
            [...]/source-gcc/gcc/omp-low.c:12489
    0x9d89e2 lower_omp
            [...]/source-gcc/gcc/omp-low.c:12621
    0x9d7ead lower_omp_1
            [...]/source-gcc/gcc/omp-low.c:12474
    0x9d7ead lower_omp
            [...]/source-gcc/gcc/omp-low.c:12621
    0x9d7ead lower_omp_1
            [...]/source-gcc/gcc/omp-low.c:12474
    0x9d7ead lower_omp
            [...]/source-gcc/gcc/omp-low.c:12621
    0x9d9b7c execute_lower_omp
            [...]/source-gcc/gcc/omp-low.c:12659
    0x9d9b7c execute
            [...]/source-gcc/gcc/omp-low.c:12696

    $ cat -n < source-gcc/gcc/testsuite/c-c++-common/goacc/routine-7.c
         1  /* Test invalid intra-routine parallelism.  */
         2  /* { dg-do compile } */
         3  
         4  #pragma acc routine gang
         5  int
         6  gang (int red)
         7  {
         8  #pragma acc loop reduction (+:red)
         9    for (int i = 0; i < 10; i++)
        10      red ++;
        11  
        12  #pragma acc loop gang reduction (+:red)
        13    for (int i = 0; i < 10; i++)
        14      red ++;
        15  
        16  #pragma acc loop worker reduction (+:red)
        17    for (int i = 0; i < 10; i++)
        18      red ++;
        19  
        20  #pragma acc loop vector reduction (+:red)
        21    for (int i = 0; i < 10; i++)
        22      red ++;
        23  
        24    return 1;
        25  }
    [...]


Grüße,
 Thomas

Attachment: signature.asc
Description: PGP signature

Reply via email to