[PATCH] ld: Compile 2 CTF tests with -O2

H.J. Lu hjl.tools@gmail.com
Mon Jul 25 16:59:10 GMT 2022


On Mon, Jul 25, 2022 at 9:16 AM Nick Alcock <nick.alcock@oracle.com> wrote:
>
> On 22 Jul 2022, H. J. Lu via Binutils stated:
>
> > When GCC 12 is used to build binutils with -O0, the following 2 tests
> > failed:
> >
> > FAIL: Conflicted data syms, partially indexed, stripped, with variables
> > FAIL: Conflicted data syms, partially indexed, stripped
> >
> > Compile 2 tests with -O2 to avoid test failures.
>
> Ack, that works fine. I honestly didn't think that anyone would have
> tried a -O0 compilation. I'm a bit surprised it depends on optimization

I use it for debugging.

> levels, though -- maybe the result has *too many* types and the
> comparisons fail as a result?
>
> Still, -O2 is a valid fix and doesn't stop the test checking what it's
> supposed to, so go for it.

I am checking it in.

Thanks.

-- 
H.J.


More information about the Binutils mailing list