aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/arm/bpabi.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/arm/bpabi.h b/gcc/config/arm/bpabi.h
index 2c3e92f..14043b3 100644
--- a/gcc/config/arm/bpabi.h
+++ b/gcc/config/arm/bpabi.h
@@ -109,9 +109,8 @@
/*TODO: is this even an OS? What should go here?*/ \
} while (0)
-#ifdef TARGET_RUST_OS_INFO
-# error "TARGET_RUST_OS_INFO already defined in bpabi.h - c++ undefines it and redefines it."
-#endif
+/* Override less-specific arm/linux-elf.h definition. */
+#undef TARGET_RUST_OS_INFO
#define TARGET_RUST_OS_INFO() \
BPABI_TARGET_RUST_OS_INFO()