-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[flang] Disable -gdwarf-5 tests on AIX. #159533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-flang-driver Author: Abid Qadeer (abidh) ChangesAfter 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:
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 \
|
There was a problem hiding this comment.
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?
// 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: %} |
There was a problem hiding this comment.
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.
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.
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. |
There was a problem hiding this 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.
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.