~ chicken-core (master) 810a1433bc2dd51b52e51fb0615a9bf61ac34295
commit 810a1433bc2dd51b52e51fb0615a9bf61ac34295
Author: felix <felix@call-with-current-continuation.org>
AuthorDate: Mon Aug 24 12:02:52 2026 +0200
Commit: felix <felix@call-with-current-continuation.org>
CommitDate: Mon Aug 24 12:02:52 2026 +0200
fix inconsistencies wrt to optimization options in manual/implementation
diff --git a/chicken.scm b/chicken.scm
index 96d731b1..8bdf7f4e 100644
--- a/chicken.scm
+++ b/chicken.scm
@@ -103,6 +103,7 @@
(set! options
(cons* 'optimize-leaf-routines
'inline
+ 'merge-reusable-closures
'merge-shareable-closures
'lfa2
options)) )
diff --git a/csc.mdoc b/csc.mdoc
index 5f751d08..bb3135a8 100644
--- a/csc.mdoc
+++ b/csc.mdoc
@@ -160,7 +160,7 @@ No optimization
.Po equivalent to Fl no-usual-integrations Fl no-compiler-syntax Pc .
.It Fl O1
Minimal optimization
-.Po equivalent to Fl optimize-leaf-routines Fl merge-reusable-closures Fl merge-shareable-closures Pc .
+.Po equivalent to Fl optimize-leaf-routines Fl merge-reusable-closures Pc .
.It Fl O2 No (Default)
Enable optimizations that do not break standard compliance
.Po equivalent to Fl optimize-leaf-routines Fl inline Fl lfa2 Fl merge-reusable-closures Fl merge-shareable-closures Pc .
diff --git a/manual/Using the compiler b/manual/Using the compiler
index 165ee39d..114b48ed 100644
--- a/manual/Using the compiler
+++ b/manual/Using the compiler
@@ -134,7 +134,7 @@ the source text should be read from standard input.
</tr>
<tr>
<td>1</td>
-<td>{{-optimize-leaf-routines -merge-reusable-closures -merge-shareable-closures}}</td>
+<td>{{-optimize-leaf-routines -merge-reusable-closures}}</td>
<td>Minimal optimization</td>
</tr>
<tr>
Trap