Skip to content

Commit fc76b6f

Browse files
committed
[OpenMP][OpenACC] Disable the unsupported -fopenacc option
1 parent 6b6c6d0 commit fc76b6f

25 files changed

+52
-6
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,9 +1481,10 @@ def fno_hip_emit_relocatable : Flag<["-"], "fno-hip-emit-relocatable">,
14811481
}
14821482

14831483
// Clang specific/exclusive options for OpenACC.
1484+
// Unsupported on AMD downstream
14841485
def openacc_macro_override
14851486
: Separate<["-"], "fexperimental-openacc-macro-override">,
1486-
Visibility<[ClangOption, CC1Option]>,
1487+
Visibility<[]>,
14871488
Group<f_Group>,
14881489
HelpText<"Overrides the _OPENACC macro value for experimental testing "
14891490
"during OpenACC support development">;
@@ -3790,10 +3791,9 @@ def fno_openmp_target_debug : Flag<["-"], "fno-openmp-target-debug">;
37903791
//===----------------------------------------------------------------------===//
37913792
// FlangOption + FC1 + ClangOption + CC1Option
37923793
//===----------------------------------------------------------------------===//
3793-
let Visibility = [FC1Option, FlangOption, CC1Option, ClangOption] in {
3794-
def fopenacc : Flag<["-"], "fopenacc">, Group<f_Group>,
3794+
// Unsupported on AMD downstream
3795+
def fopenacc : Flag<["-"], "fopenacc">, Group<f_Group>, Visibility<[]>,
37953796
HelpText<"Enable OpenACC">;
3796-
} // let Visibility = [FC1Option, FlangOption, CC1Option, ClangOption]
37973797

37983798
//===----------------------------------------------------------------------===//
37993799
// Optimisation remark options

clang/test/AST/ast-print-openacc-combined-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -Wno-openacc-deprecated-clause-alias -ast-print %s -o - | FileCheck %s
24

35
constexpr int get_value() { return 1; }

clang/test/AST/ast-print-openacc-compute-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -Wno-openacc-deprecated-clause-alias -ast-print %s -o - | FileCheck %s
24

35
void foo() {

clang/test/AST/ast-print-openacc-data-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -Wno-openacc-deprecated-clause-alias -Wno-source-uses-openacc -ast-print %s -o - | FileCheck %s
24

35
void foo() {

clang/test/AST/ast-print-openacc-init-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24

35
unsigned Int;

clang/test/AST/ast-print-openacc-loop-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -Wno-openacc-deprecated-clause-alias -ast-print %s -o - | FileCheck %s
24

35
struct SomeStruct{};

clang/test/AST/ast-print-openacc-set-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24

35
unsigned Int;

clang/test/AST/ast-print-openacc-shutdown-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24

35
unsigned Int;

clang/test/AST/ast-print-openacc-update-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24
void uses(bool cond) {
35
int I;

clang/test/AST/ast-print-openacc-wait-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24

35
void uses() {

0 commit comments

Comments
 (0)