Port-dreamcast archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: GCC 10 ICE compiling "lex.c"?
Hi,
On Sun, Jun 27, 2021 at 02:30:09PM +0200, Martin Husemann wrote:
> On Sun, Jun 27, 2021 at 06:29:42AM -0500, John D. Baker wrote:
> > I saw the same error for a couple of cycles in the TNF build logs (which
> > have now fallen off the end of history), which would still be using GCC
> > 9.x but it seems to have been fixed or otherwise cleared up.
>
> I worked around them by lowering optiomization to -O0 for that file,
> but conditionalized it on sh3 + gcc9. See src/usr.bin/xlint/lint1/Makefile:
>
> # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177
I might have found the issue, I bisected it to the commit that broke
it and a test there changed from "if (a==b)" to "if (a!=b)". If I
revert that condition to how it was before (leaving the rest of the
commit as post-commit, i.e., just the change from != to ==), "build.sh
-m dreamcast" succeeds for me without the need of any -O0 hacks.
But I don't understand the details of the rest of the diff (even if it
is very short), so I cannot say for sure if this really is correct.
I added this to the gcc bugzilla a few minutes ago, let's see if
somebody has something to say there.
Harold
Home |
Main Index |
Thread Index |
Old Index