svn commit: r363031 - in head: contrib/bmake contrib/bmake/lst.lib contrib/bmake/mk contrib/bmake/mk/sys contrib/bmake/unit-tests usr.bin/bmake
Simon J. Gerraty
sjg at juniper.net
Thu Jul 9 16:50:03 UTC 2020
Cy Schubert <Cy.Schubert at cschubert.com> wrote:
> [External Email. Be cautious of content]
>
>
> In message <45359.1594266432 at kaos.jnpr.net>, "Simon J. Gerraty" writes:
> > Cy Schubert <Cy.Schubert at cschubert.com> wrote:
> > > This broke ports.
> >
> > I've reverted the change.
> >
> > Let me know if you still see issue.
>
> As I said in my email, all I did was revert cond.c, and that fixed it. You
> don't need to revert the whole patch. Just revert cond.c and let NetBSD
> know.
Ah I missed that bit - rats.
I think I've a fix for cond.c, but unfortunately I'm so far unable to
construct a unit-test that triggers the problem.
Even with bsd.compiler.mk I was unable to get it to fail in debugger,
so added an abort and looked at the core file.
The problem is in something like:
.if 1 || ${something-complicated} > 0
the ${something-complicated} isn't resolved because we do not need to
evaluate anything after '1', but the comparator check is still applied.
Fix should be simple, but in unit-tests the above does not trigger the
problem ;-)
More information about the svn-src-head
mailing list