From: WANG Xuerui <[email protected]>
Hi,
Here are a couple of simple fixes that I have discovered in my
preliminary tests regarding the recently merged LA32 support. They
should help users in writing cruft-free and portable code for LA32.
Bootstrapped and regtested on loongarch64-linux-gnu, on top of the
PR123171 fix. OK for trunk?
WANG Xuerui (2):
LoongArch: Do not define legacy built-in macros for LA32
LoongArch: Add built-in macro __loongarch_non_reduced to signify
non-LA32R arches
gcc/config/loongarch/loongarch-c.cc | 36 ++++++++++++-------
.../loongarch/non-reduced-macro-1.c | 19 ++++++++++
.../loongarch/non-reduced-macro-2.c | 19 ++++++++++
.../loongarch/non-reduced-macro-3.c | 7 ++++
4 files changed, 69 insertions(+), 12 deletions(-)
create mode 100644 gcc/testsuite/gcc.target/loongarch/non-reduced-macro-1.c
create mode 100644 gcc/testsuite/gcc.target/loongarch/non-reduced-macro-2.c
create mode 100644 gcc/testsuite/gcc.target/loongarch/non-reduced-macro-3.c
--
2.52.0