[Bug c++/118114] std::call_once crashes on LoongArch when program is built with -fPIC -mtls-dialect=desc
xry111 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 19 04:03:26 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118114
--- Comment #6 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #5)
> It seems fixed with ld 2.43.50.20241219.
0000000000000f18
<_ZZNSt9once_flag18_Prepare_executionC4IZSt9call_onceIRFvvEJEEvRS_OT_DpOT0_EUlvE_EERS6_ENUlvE_4_FUNEv>:
f18: 02ffc063 addi.d $sp, $sp, -16
f1c: 29c02061 st.d $ra, $sp, 8
f20: 1a000404 pcalau12i $a0, 32
f24: 28fe8084 ld.d $a0, $a0, -96
f28: 28c02061 ld.d $ra, $sp, 8
f2c: 380c088c ldx.d $t0, $a0, $tp
So yes, DESC => IE is correctly done.
I'm bisecting on binutils-gdb.git to see when exactly it's fixed.
More information about the Gcc-bugs
mailing list