[m-dev.] stage 2 broken with --intermod-opt and -O5
Zoltan Somogyi
zoltan.somogyi at runbox.com
Thu Jul 23 20:12:34 AEST 2026
On Thu, 23 Jul 2026 15:30:03 +1000, Julien Fischer <jfischer at opturion.com> wrote:
> On Thu, 23 Jul 2026 at 09:06, Zoltan Somogyi <zoltan.somogyi at runbox.com> wrote:
> > I would guess that disabling deforestation just for make_hlds_passes.m
> > would work around this bug.
>
> Unfortunately not. The module also fails to compile with -O2 --intermod-opt.
> Turning off intermodule optimization or inlining is required to get
> it to compile in asm_fast.gc.
I tested adding --no-deforestation for make_hlds_passes. to compiler/Mercury.options,
and then it bootstrapped with -O5 --intermod-opt. That's why I committed that change.
The bug could be in inlining, because deforestation itself invokes inlining. I will take
a look.
Zoltan.
More information about the developers
mailing list