https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119933
--- Comment #7 from Jiahao Xu <xujiahao at loongson dot cn> ---
I tested this change on LoongArch64, and all COBOL tests now pass except for
the previously reported SIGBUS issue with static linking. Thanks!
FAIL: cobol.dg/group2/_-static__compilation.cob -O0 execution test
FAIL: cobol.dg/group2/_-static__compilation.cob -O1 execution test
FAIL: cobol.dg/group2/_-static__compilation.cob -O2 execution test
FAIL: cobol.dg/group2/_-static__compilation.cob -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions execution test
FAIL: cobol.dg/group2/_-static__compilation.cob -O3 -g execution test
FAIL: cobol.dg/group2/_-static__compilation.cob -Os execution test
=== cobol Summary ===
# of expected passes 7846
# of unexpected failures 6
# of expected failures 78
/home/xujiahao/gcc/build/gcc/gcobol version 17.0.0 20260616 (experimental)
(GCC)