[flang-commits] [flang] 4feb092 - [flang] Disable -gdwarf-5 tests on AIX. (#159533)
via flang-commits
flang-commits at lists.llvm.org
Tue Sep 23 10:51:47 PDT 2025
Author: Abid Qadeer
Date: 2025-09-23T18:51:44+01:00
New Revision: 4feb0925b0869bd42f0dfba76c06c2e4a400f93a
URL: https://github.com/llvm/llvm-project/commit/4feb0925b0869bd42f0dfba76c06c2e4a400f93a
DIFF: https://github.com/llvm/llvm-project/commit/4feb0925b0869bd42f0dfba76c06c2e4a400f93a.diff
LOG: [flang] Disable -gdwarf-5 tests on AIX. (#159533)
After recent addition of -gdwarf-N options in flang, I saw that newly
added tests failing on AIX bot. The gdwarf-5 option is not supported on
that platform. Disabling the dwarf-5 tests on AIX for now.
Added:
Modified:
flang/test/Driver/flang-dwarf-version.f90
flang/test/Integration/debug-dwarf-flags.f90
Removed:
################################################################################
diff --git a/flang/test/Driver/flang-dwarf-version.f90 b/flang/test/Driver/flang-dwarf-version.f90
index dc69140a7eda1..d860c970a91f8 100644
--- a/flang/test/Driver/flang-dwarf-version.f90
+++ b/flang/test/Driver/flang-dwarf-version.f90
@@ -1,9 +1,18 @@
+// RUN: %if !target={{.*aix.*}} %{ \
// RUN: %flang -### -S %s -g -gdwarf-5 2>&1 \
-// RUN: | FileCheck --check-prefix=CHECK-DWARF5 %s
+// RUN: | FileCheck --check-prefix=CHECK-DWARF5 %s \
+// RUN: %}
+
+// RUN: %if !target={{.*aix.*}} %{ \
// RUN: %flang -### -S %s -gdwarf-5 2>&1 \
-// RUN: | FileCheck --check-prefix=CHECK-DWARF5 %s
+// RUN: | FileCheck --check-prefix=CHECK-DWARF5 %s \
+// RUN: %}
+
+// RUN: %if !target={{.*aix.*}} %{ \
// RUN: %flang -### -S %s -g1 -gdwarf-5 2>&1 \
-// RUN: | FileCheck --check-prefix=CHECK-WITH-G1-DWARF5 %s
+// RUN: | FileCheck --check-prefix=CHECK-WITH-G1-DWARF5 %s \
+// RUN: %}
+
// RUN: %flang -### -S %s -gdwarf-4 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-DWARF4 %s
// RUN: %flang -### -S %s -gdwarf-3 2>&1 \
diff --git a/flang/test/Integration/debug-dwarf-flags.f90 b/flang/test/Integration/debug-dwarf-flags.f90
index ac5b1c0d8d4b2..3307ef6f0a971 100644
--- a/flang/test/Integration/debug-dwarf-flags.f90
+++ b/flang/test/Integration/debug-dwarf-flags.f90
@@ -1,7 +1,13 @@
+! RUN: %if !target={{.*aix.*}} %{ \
! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone -dwarf-version=5 %s \
-! RUN: -o - | FileCheck --check-prefix=CHECK-DWARF5 %s
+! RUN: -o - | FileCheck --check-prefix=CHECK-DWARF5 %s \
+! RUN: %}
+
+! RUN: %if !target={{.*aix.*}} %{ \
! RUN: %flang_fc1 -emit-llvm -debug-info-kind=line-tables-only -dwarf-version=5 \
-! RUN: %s -o - | FileCheck --check-prefix=CHECK-DWARF5 %s
+! RUN: %s -o - | FileCheck --check-prefix=CHECK-DWARF5 %s \
+! RUN: %}
+
! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone -dwarf-version=4 %s \
! RUN: -o - | FileCheck --check-prefix=CHECK-DWARF4 %s
! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone -dwarf-version=3 %s \
More information about the flang-commits
mailing list