aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2021-06-03 12:09:17 +0000
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2021-06-03 12:09:17 +0000
commitf37acd006707d4737db998212fd8ec28cab82c9d (patch)
treef84173b7d731a681529ae53cb1ef2d9204b188ff
parent324dfb828cec09f7638b48b6e25e4007b45b9cbc (diff)
downloadgcc-f37acd006707d4737db998212fd8ec28cab82c9d.zip
gcc-f37acd006707d4737db998212fd8ec28cab82c9d.tar.gz
gcc-f37acd006707d4737db998212fd8ec28cab82c9d.tar.bz2
mips: Fix incorrect name for target feature flag TARGET_ODD_SPREG
Fixes #476
-rw-r--r--gcc/config/mips/mips-rust.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/mips/mips-rust.c b/gcc/config/mips/mips-rust.c
index 7b9048d..39187de 100644
--- a/gcc/config/mips/mips-rust.c
+++ b/gcc/config/mips/mips-rust.c
@@ -204,7 +204,7 @@ void mips_rust_target_cpu_info(void) {
rust_add_target_info("target_feature", "single-float");
if (TARGET_SOFT_FLOAT_ABI)
rust_add_target_info("target_feature", "soft-float");
- if (!(ODD_SPREG))
+ if (!TARGET_ODD_SPREG)
rust_add_target_info("target_feature", "nooddspreg");
// TODO: find if vfpu (vector FPU instructions) are supported by gcc at all
// TODO: ensure below switch variable and whatever works