aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2024-02-12 14:53:21 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2024-04-09 15:15:12 +0200
commitce3c743d8cfbadc0aaa80267bc002fd05267ffac (patch)
treeca78c2dc61583414c44c600297bfc9e03ccd8bd5
parentdd78e6a3cbd8f7c678d90ca0d05787faeb2e9c9a (diff)
downloadgcc-ce3c743d8cfbadc0aaa80267bc002fd05267ffac.zip
gcc-ce3c743d8cfbadc0aaa80267bc002fd05267ffac.tar.gz
gcc-ce3c743d8cfbadc0aaa80267bc002fd05267ffac.tar.bz2
RTEMS: Fix powerpc configuration
gcc/ChangeLog: * config/rs6000/rtems.h (OS_MISSING_POWERPC64): Define.
-rw-r--r--gcc/config/rs6000/rtems.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h
index 5a27f02..06f481f 100644
--- a/gcc/config/rs6000/rtems.h
+++ b/gcc/config/rs6000/rtems.h
@@ -36,6 +36,10 @@
#endif
#endif
+/* RTEMS configured for the 32-bit multilibs doesn't support saving and
+ restoring 64-bit regs. */
+#define OS_MISSING_POWERPC64 !TARGET_64BIT
+
/* Copy and paste from linux64.h and freebsd64.h */
#undef TARGET_AIX
#define TARGET_AIX TARGET_64BIT