And as spotted by Thomas, Tom's patch also resolved an XFAIL in gcc/testsuite.
Committed as r11-3687-ga9802204603616df14ed47d05f1b86f1bd08d8fb after testing it on x86-64-gnu-linux. Tobias On 10/6/20 3:28 PM, Tom de Vries wrote: ...
[openacc] Fix acc declare for VLAs gcc/ChangeLog: 2020-10-06 Tom de Vries <tdevr...@suse.de> PR middle-end/90861 * gimplify.c (gimplify_bind_expr): Handle lookup in oacc_declare_returns using key with decl-expr. libgomp/ChangeLog: 2020-10-06 Tom de Vries <tdevr...@suse.de> PR middle-end/90861 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
commit a9802204603616df14ed47d05f1b86f1bd08d8fb Author: Tobias Burnus <tob...@codesourcery.com> Date: Tue Oct 6 23:34:21 2020 +0200 c-c++-common/goacc/declare-pr90861.c: Remove xfail gcc/testsuite/ChangeLog PR middle-end/90861 * c-c++-common/goacc/declare-pr90861.c: Remove xfail. diff --git a/gcc/testsuite/c-c++-common/goacc/declare-pr90861.c b/gcc/testsuite/c-c++-common/goacc/declare-pr90861.c index 7c905624f7a..c5487bdc8ba 100644 --- a/gcc/testsuite/c-c++-common/goacc/declare-pr90861.c +++ b/gcc/testsuite/c-c++-common/goacc/declare-pr90861.c @@ -17,5 +17,5 @@ void f2 (void) int A_f2[N_f2]; #pragma acc declare copy(A_f2) /* { dg-final { scan-tree-dump-times {#pragma omp target oacc_declare map\(to:\(\*A_f2} 1 gimple } } - { dg-final { scan-tree-dump-times {#pragma omp target oacc_declare map\(from:\(\*A_f2} 1 gimple { xfail *-*-* } } } TODO PR90861 */ + { dg-final { scan-tree-dump-times {#pragma omp target oacc_declare map\(from:\(\*A_f2} 1 gimple } } */ }