Skip to content

Conversation

abidh
Copy link
Contributor

@abidh abidh commented Sep 18, 2025

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 test on AIX for now.

@llvmbot llvmbot added flang:driver flang Flang issues not falling into any other category labels Sep 18, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 18, 2025

@llvm/pr-subscribers-flang-driver

Author: Abid Qadeer (abidh)

Changes

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 test on AIX for now.


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

2 Files Affected:

  • (modified) flang/test/Driver/flang-dwarf-version.f90 (+1)
  • (modified) flang/test/Integration/debug-dwarf-flags.f90 (+1)
diff --git a/flang/test/Driver/flang-dwarf-version.f90 b/flang/test/Driver/flang-dwarf-version.f90
index dc69140a7eda1..159130aaed98c 100644
--- a/flang/test/Driver/flang-dwarf-version.f90
+++ b/flang/test/Driver/flang-dwarf-version.f90
@@ -1,3 +1,4 @@
+// UNSUPPORTED: target={{.*}}-aix{{.*}}
 // RUN: %flang -### -S %s -g -gdwarf-5  2>&1 \
 // RUN:             | FileCheck --check-prefix=CHECK-DWARF5 %s
 // RUN: %flang -### -S %s -gdwarf-5  2>&1 \
diff --git a/flang/test/Integration/debug-dwarf-flags.f90 b/flang/test/Integration/debug-dwarf-flags.f90
index ac5b1c0d8d4b2..9de1dc8163653 100644
--- a/flang/test/Integration/debug-dwarf-flags.f90
+++ b/flang/test/Integration/debug-dwarf-flags.f90
@@ -1,3 +1,4 @@
+// UNSUPPORTED: target={{.*}}-aix{{.*}}
 ! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone -dwarf-version=5 %s  \
 ! RUN:         -o - | FileCheck --check-prefix=CHECK-DWARF5 %s
 ! RUN: %flang_fc1 -emit-llvm -debug-info-kind=line-tables-only -dwarf-version=5 \

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Suggested change
// UNSUPPORTED: target={{.*}}-aix{{.*}}
// 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: %}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion. Done.

@abidh
Copy link
Contributor Author

abidh commented Sep 18, 2025

The CI failure is due to an unrelated issue which is being fixed in #159604.

Put the check for aix only around dwarf5 tests. This way rest of the tests run for aix too.
@abidh
Copy link
Contributor Author

abidh commented Sep 23, 2025

If there are no objections then I would like to merge this. It should turn the https://lab.llvm.org/buildbot/#/builders/201 bot green.

Copy link
Contributor

@tarunprabhu tarunprabhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I somehow missed this. Thanks.

@abidh abidh merged commit 4feb092 into llvm:main Sep 23, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:driver flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants