Skip to content

Commit 7ec8b71

Browse files
authored
Disable flang warning, its erroneously firing on all uses (llvm#2546)
2 parents d9acca4 + a0b7748 commit 7ec8b71

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ ToolChain::getTargetAndModeFromProgramName(StringRef PN) {
503503
// the time being and should be removed once AMD Classic Flang has been
504504
// removed from ROCm.
505505
if (FlangNew) {
506-
if (!::getenv("AMD_NOWARN_FLANG_NEW")) {
506+
// flang-new warning is overwarning, disabling until fixed.
507+
if (false && !::getenv("AMD_NOWARN_FLANG_NEW")) {
507508
// The solution with "llvm::errs()" is not ideal, but the driver object
508509
// is not been constructed yet, so we cannot use the Diag() infrastructure
509510
// for this.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
! RUN: amdflang-new -c %s 2>&1 | FileCheck %s
2-
! CHECK: warning: the 'amdflang-new' and 'flang-new' commmands have been deprecated; please use 'amdflang' instead
2+
! CHECK: warning: the 'amdflang-new' and 'flang-new' commmands have been deprecated; please use 'amdflang' instead
3+
! XFAIL: *

flang/test/Driver/w-option.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
! XFAIL: *
21
! Test the default setting. Emit warnings only.
32
! RUN: %flang -c %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
43

0 commit comments

Comments
 (0)