[flang-commits] [flang] [flang] Disable -gdwarf-5 tests on AIX. (PR #159533)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Thu Sep 18 06:47:36 PDT 2025


================
@@ -1,3 +1,4 @@
+// UNSUPPORTED: target={{.*}}-aix{{.*}}
----------------
tarunprabhu wrote:

If only dwarf-version=5 is not supported, it may be better to just disable those tests rather than all of them. Perhaps something like this?

```suggestion
// RUN: %if !target={{.*aix.*}} %{ \
// RUN:   %flang -### -S %s -g -gdwarf-5  2>&1 \
// 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: %}
// RUN: %if !target={{.*aix.*}} %{ \
// RUN:   %flang -### -S %s -g1 -gdwarf-5  2>&1 \
// RUN:               | FileCheck --check-prefix=CHECK-WITH-G1-DWARF5 %s``` \
// RUN: %}
```


https://github.com/llvm/llvm-project/pull/159533


More information about the flang-commits mailing list