[Git][ghc/ghc][master] Update the warning about interpreter optimizations
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Thu May 18 19:21:10 UTC 2023
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
dd5710af by Torsten Schmits at 2023-05-18T15:20:50-04:00
Update the warning about interpreter optimizations
to reflect that they're not incompatible anymore, but guarded by a flag
- - - - -
7 changed files:
- compiler/GHC/Driver/Session.hs
- testsuite/tests/ghc-api/T10052/T10052.stderr
- testsuite/tests/ghci.debugger/scripts/print007.stderr
- testsuite/tests/ghci/should_fail/T10549.stderr
- testsuite/tests/ghci/should_fail/T10549a.stderr
- testsuite/tests/safeHaskell/ghci/p14.stderr
- testsuite/tests/th/T8333.stderr
Changes:
=====================================
compiler/GHC/Driver/Session.hs
=====================================
@@ -3658,9 +3658,10 @@ makeDynFlagsConsistent dflags
, gopt Opt_UnoptimizedCoreForInterpreter dflags
, let (dflags', changed) = updOptLevelChanged 0 dflags
, changed
- = loop dflags' ("Optimization flags are incompatible with the " ++
- backendDescription (backend dflags) ++
- "; optimization flags ignored.")
+ = loop dflags' $
+ "Ignoring optimization flags since they are experimental for the " ++
+ backendDescription (backend dflags) ++
+ ". Pass -fno-unoptimized-core-for-interpreter to enable this feature."
| LinkInMemory <- ghcLink dflags
, not (gopt Opt_ExternalInterpreter dflags)
=====================================
testsuite/tests/ghc-api/T10052/T10052.stderr
=====================================
@@ -1,3 +1,3 @@
when making flags consistent: warning:
- Optimization flags are incompatible with the byte-code interpreter; optimization flags ignored.
+ Ignoring optimization flags since they are experimental for the byte-code interpreter. Pass -fno-unoptimized-core-for-interpreter to enable this feature.
=====================================
testsuite/tests/ghci.debugger/scripts/print007.stderr
=====================================
@@ -1,3 +1,3 @@
when making flags consistent: warning:
- Optimization flags are incompatible with the byte-code interpreter; optimization flags ignored.
+ Ignoring optimization flags since they are experimental for the byte-code interpreter. Pass -fno-unoptimized-core-for-interpreter to enable this feature.
=====================================
testsuite/tests/ghci/should_fail/T10549.stderr
=====================================
@@ -1,3 +1,3 @@
when making flags consistent: warning:
- Optimization flags are incompatible with the byte-code interpreter; optimization flags ignored.
+ Ignoring optimization flags since they are experimental for the byte-code interpreter. Pass -fno-unoptimized-core-for-interpreter to enable this feature.
=====================================
testsuite/tests/ghci/should_fail/T10549a.stderr
=====================================
@@ -1,3 +1,3 @@
when making flags consistent: warning:
- Optimization flags are incompatible with the byte-code interpreter; optimization flags ignored.
+ Ignoring optimization flags since they are experimental for the byte-code interpreter. Pass -fno-unoptimized-core-for-interpreter to enable this feature.
=====================================
testsuite/tests/safeHaskell/ghci/p14.stderr
=====================================
@@ -1,6 +1,6 @@
when making flags consistent: warning:
- Optimization flags are incompatible with the byte-code interpreter; optimization flags ignored.
+ Ignoring optimization flags since they are experimental for the byte-code interpreter. Pass -fno-unoptimized-core-for-interpreter to enable this feature.
<interactive>:10:25: error: [GHC-39999]
• No instance for ‘Num a’ arising from a use of ‘f’
=====================================
testsuite/tests/th/T8333.stderr
=====================================
@@ -1,3 +1,3 @@
when making flags consistent: warning:
- Optimization flags are incompatible with the byte-code interpreter; optimization flags ignored.
+ Ignoring optimization flags since they are experimental for the byte-code interpreter. Pass -fno-unoptimized-core-for-interpreter to enable this feature.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dd5710afaf6b8f3139a3fb0f6ab8d1be50312b58
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dd5710afaf6b8f3139a3fb0f6ab8d1be50312b58
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/20230518/9cf9cbf9/attachment-0001.html>
More information about the ghc-commits
mailing list