[Git][ghc/ghc][master] testsuite: remove undesired -fasm flag from test ways

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sun Aug 18 17:05:32 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
88488847 by Cheng Shao at 2024-08-18T04:44:01+02:00
testsuite: remove undesired -fasm flag from test ways

This patch removes the -fasm flag from test ways, except ways like
optasm that explicitly state they are meant to be compiled with NCG
backend. Most test ways should use the default codegen backend, and
the precense of -fasm can cause stderr mismatches like this when GHC
is configured with the unregisterised backend:

```
--- /dev/null
+++ /tmp/ghctest-3hydwldj/test   spaces/testsuite/tests/profiling/should_compile/prof-late-cc.run/prof-late-cc.comp.stderr.normalised
@@ -0,0 +1,2 @@
+when making flags consistent: warning: [GHC-74335] [-Winconsistent-flags (in -Wdefault)]
+    Target platform uses unregisterised ABI, so compiling via C
*** unexpected failure for prof-late-cc(prof_no_auto)
```

This has been breaking the wasm unreg nightly job since !12595 landed.

- - - - -


1 changed file:

- testsuite/config/ghc


Changes:

=====================================
testsuite/config/ghc
=====================================
@@ -93,10 +93,10 @@ config.way_flags = {
     'llvm'         : ['-fllvm'],
     'optllvm'      : ['-O', '-fllvm'],
     'debugllvm'    : ['-fllvm', '-keep-llvm-files'],
-    'prof'         : ['-prof', '-static', '-fprof-auto', '-fasm'],
+    'prof'         : ['-prof', '-static', '-fprof-auto'],
     'profdyn'      : ['-prof', '-dynamic', '-fprof-auto'],
     'profdyn_no_auto' : ['-prof', '-dynamic' ],
-    'prof_no_auto' : ['-prof', '-static', '-fasm'],
+    'prof_no_auto' : ['-prof', '-static'],
     'profasm'      : ['-O', '-prof', '-static', '-fprof-auto'],
     'profthreaded' : ['-O', '-prof', '-static', '-fprof-auto', '-threaded'],
     'ghci'         : ['--interactive', '-fno-unoptimized-core-for-interpreter', '-O0', '-v0', '-ignore-dot-ghci', '-fno-ghci-history', '+RTS', '-I0.1', '-RTS'] + (['-fghci-leak-check'] if not config.compiler_debugged else []),



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8848884718044dbcc08be134d768040ffa18d336

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8848884718044dbcc08be134d768040ffa18d336
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240818/efca7996/attachment-0001.html>


More information about the ghc-commits mailing list