diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-10-17 15:20:46 -0400 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2020-11-19 10:25:12 +0800 |
commit | 5807df4f99a6d109070b591331ed9f1f90cbd4f7 (patch) | |
tree | 4364cab39df260544f62d99cbc6b0d0c749fe59f /testsuite/driver/testlib.py | |
parent | 09ce35c7dec394ecb3a28dad9e88ef5f99042883 (diff) | |
download | haskell-gitlab/wip/T18857.tar.gz |
CmmToLlvm: Declare signature for memcmpgitlab/wip/T18857
Otherwise `opt` fails with:
error: use of undefined value '@memcmp$def'
fixup ShortText & SymbolExtras
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r-- | testsuite/driver/testlib.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 8ef5a8450c..4828df9736 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -2216,6 +2216,13 @@ def normalise_errmsg(s: str) -> str: s = re.sub('Failed to remove file (.*); error= (.*)$', '', s) s = re.sub('DeleteFile "(.+)": permission denied \(Access is denied\.\)(.*)$', '', s) + # filter out unsupported GNU_PROPERTY_TYPE (5), which is emitted by LLVM10 + # and not understood by older binutils (ar, ranlib, ...) + s = modify_lines(s, lambda l: re.sub('^(.+)warning: (.+): unsupported GNU_PROPERTY_TYPE \(5\) type: 0xc000000(.*)$', '', l)) + + # filter out nix garbage, that just keeps on showing up as errors on darwin + s = modify_lines(s, lambda l: re.sub('^(.+)\.dylib, ignoring unexpected dylib file$','', l)) + return s # normalise a .prof file, so that we can reasonably compare it against @@ -2286,6 +2293,9 @@ def normalise_output( s: str ) -> str: s = re.sub('([^\\s])\\.exe', '\\1', s) s = normalise_callstacks(s) s = normalise_type_reps(s) + # ghci outputs are pretty unstable with -fexternal-dynamic-refs, which is + # requires for -fPIC + s = re.sub(' -fexternal-dynamic-refs\n','',s) return s def normalise_asm( s: str ) -> str: |