]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RTEMS: Add -mvrsave multilibs
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 1 Sep 2022 08:22:47 +0000 (10:22 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 8 Sep 2022 05:28:37 +0000 (07:28 +0200)
gcc/ChangeLog:

* config/rs6000/rtems.h (CPP_OS_DEFAULT_SPEC): Define __PPC_VRSAVE__ if
-mvrsave is present.
* config/rs6000/t-rtems: Add -mvrsave multilib variants for
-mcpu=e6500.

gcc/config/rs6000/rtems.h
gcc/config/rs6000/t-rtems

index d529e22f7def22445ba4d7eef0f4540659985e59..84370150dc41fe61f0af6d30fdec5157500b417e 100644 (file)
 %{mcpu=821:  %{!Dppc*: %{!Dmpc*: -Dmpc821}  } } \
 %{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } } \
 %{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540}  } } \
-%{mcpu=e6500: -D__PPC_CPU_E6500__}"
+%{mcpu=e6500: -D__PPC_CPU_E6500__} \
+%{mvrsave: -D__PPC_VRSAVE__}"
 
 #undef ASM_SPEC
 #define        ASM_SPEC "%{!m64:%(asm_spec32)}%{m64:%(asm_spec64)} %(asm_spec_common)"
index 4f8c147be3e743d95a74c282ae449d9500289637..9da2da6154b504672adda0034b31dc1025437524 100644 (file)
@@ -36,6 +36,9 @@ MULTILIB_DIRNAMES += nof
 MULTILIB_OPTIONS += mno-altivec
 MULTILIB_DIRNAMES += noaltivec
 
+MULTILIB_OPTIONS += mvrsave
+MULTILIB_DIRNAMES += vrsave
+
 MULTILIB_MATCHES       += ${MULTILIB_MATCHES_ENDIAN}
 MULTILIB_MATCHES       += ${MULTILIB_MATCHES_SYSV}
 # Map 405 to 403
@@ -70,5 +73,7 @@ MULTILIB_REQUIRED += mcpu=7400/msoft-float
 MULTILIB_REQUIRED += mcpu=8540/msoft-float
 MULTILIB_REQUIRED += mcpu=860
 MULTILIB_REQUIRED += mcpu=e6500/m32
+MULTILIB_REQUIRED += mcpu=e6500/m32/mvrsave
 MULTILIB_REQUIRED += mcpu=e6500/m32/msoft-float/mno-altivec
 MULTILIB_REQUIRED += mcpu=e6500/m64
+MULTILIB_REQUIRED += mcpu=e6500/m64/mvrsave