https://sourceware.org/bugzilla/show_bug.cgi?id=21062

--- Comment #4 from PeteVine <tulipawn at gmail dot com> ---
OK, so I've managed to identify the root cause of this bug, namely, the
-mfix-cortex-a53-843419 erratum workaround, which happens via the linker.

To recap, ld.gold produces crashing code if both LTO and
-mfix-cortex-a53-843419 are used at the same time. Removing the workaround
switch or using ld.bfd allows to bootstrap GCC using LTO
(--with-build-config=bootstrap-lto).

So, a compiler built with --enable-fix-cortex-a53-843419 needs just
-mcpu/mtune=cortex-a53 to trigger the workaround. 

In my tests, it made code produced that way slower on a currently available
revision of A53, which is not mentioned in the documentation. Otherwise I would
have found out if it was still necessary a long time ago :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to