https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123171
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by LuluCheng <[email protected]>: https://gcc.gnu.org/g:a0001ef5843cb7d833976b38894f2b08f5c153b8 commit r16-6237-ga0001ef5843cb7d833976b38894f2b08f5c153b8 Author: WANG Xuerui <[email protected]> Date: Thu Dec 18 13:42:33 2025 +0800 LoongArch: Fix ISA base not being updated in loongarch_option_restore [PR123171] Fixes switching between LA32S and LA32R base arches with target pragmas or attributes. Bootstrapped and regtested on loongarch64-linux-gnu. PR target/123171 gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_option_restore): Add missing update to la_target.isa.base. gcc/testsuite/ChangeLog: * gcc.target/loongarch/pr123171.c: New test. Suggested-by: Lulu Cheng <[email protected]> Signed-off-by: WANG Xuerui <[email protected]>
