public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 3/3] RTEMS: Add e6500 multilibs for PowerPC
  2014-12-15 12:10 [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED for PowerPC Sebastian Huber
@ 2014-12-15 12:10 ` Sebastian Huber
  2015-01-09 14:24   ` Sebastian Huber
  2014-12-15 12:11 ` [PATCH 2/3] RTEMS: Fix MPC8540 " Sebastian Huber
  2015-01-09 14:22 ` [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED " Sebastian Huber
  2 siblings, 1 reply; 6+ messages in thread
From: Sebastian Huber @ 2014-12-15 12:10 UTC (permalink / raw)
  To: gcc-patches; +Cc: devel, Sebastian Huber

Use 32-bit instructions only since currenlty there is no demand for a
larger address space.  Provide one multilib with FPU and AltiVec support
and one without.

This patch should be applied to GCC 4.9 and mainline.  I do not have
write access, so in case this gets approved, please commit it for me.

gcc/ChangeLog
2014-12-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* config/rs6000/t-rtems: Add e6500 multilibs.
---
 gcc/config/rs6000/t-rtems | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/gcc/config/rs6000/t-rtems b/gcc/config/rs6000/t-rtems
index e935947..128ea3e 100644
--- a/gcc/config/rs6000/t-rtems
+++ b/gcc/config/rs6000/t-rtems
@@ -24,14 +24,17 @@ MULTILIB_MATCHES =
 MULTILIB_EXCEPTIONS =
 MULTILIB_REQUIRED =
 
-MULTILIB_OPTIONS += mcpu=403/mcpu=505/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540
-MULTILIB_DIRNAMES += m403 m505 m603e m604 m860 m7400 m8540
+MULTILIB_OPTIONS += mcpu=403/mcpu=505/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540/mcpu=e6500
+MULTILIB_DIRNAMES += m403 m505 m603e m604 m860 m7400 m8540 me6500
 
 MULTILIB_OPTIONS += msoft-float/mfloat-gprs=double
 MULTILIB_DIRNAMES += nof gprsdouble
 
-MULTILIB_OPTIONS += mno-spe
-MULTILIB_DIRNAMES += nospe
+MULTILIB_OPTIONS += mno-spe/mno-altivec
+MULTILIB_DIRNAMES += nospe noaltivec
+
+MULTILIB_OPTIONS += m32
+MULTILIB_DIRNAMES += m32
 
 MULTILIB_MATCHES  	+= ${MULTILIB_MATCHES_ENDIAN}
 MULTILIB_MATCHES	+= ${MULTILIB_MATCHES_SYSV}
@@ -72,3 +75,5 @@ MULTILIB_REQUIRED += mcpu=8540
 MULTILIB_REQUIRED += mcpu=8540/msoft-float/mno-spe
 MULTILIB_REQUIRED += mcpu=8540/mfloat-gprs=double
 MULTILIB_REQUIRED += mcpu=860
+MULTILIB_REQUIRED += mcpu=e6500/m32
+MULTILIB_REQUIRED += mcpu=e6500/m32/msoft-float/mno-altivec
-- 
1.8.4.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED for PowerPC
@ 2014-12-15 12:10 Sebastian Huber
  2014-12-15 12:10 ` [PATCH 3/3] RTEMS: Add e6500 multilibs " Sebastian Huber
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sebastian Huber @ 2014-12-15 12:10 UTC (permalink / raw)
  To: gcc-patches; +Cc: devel, Sebastian Huber

This patch should be applied to GCC 4.9 and mainline.  I do not have
write access, so in case this gets approved, please commit it for me.

gcc/ChangeLog
2014-12-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
	MULTILIB_EXCEPTIONS.
---
 gcc/config/rs6000/t-rtems | 65 +++++++++++++++++------------------------------
 1 file changed, 24 insertions(+), 41 deletions(-)

diff --git a/gcc/config/rs6000/t-rtems b/gcc/config/rs6000/t-rtems
index 426f75a..3ebcfaa 100644
--- a/gcc/config/rs6000/t-rtems
+++ b/gcc/config/rs6000/t-rtems
@@ -18,16 +18,18 @@
 # along with GCC; see the file COPYING3.  If not see
 # <http://www.gnu.org/licenses/>.
 
-MULTILIB_OPTIONS	= \
-mcpu=403/mcpu=505/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \
-msoft-float/mfloat-gprs=double
+MULTILIB_OPTIONS =
+MULTILIB_DIRNAMES =
+MULTILIB_MATCHES =
+MULTILIB_EXCEPTIONS =
+MULTILIB_REQUIRED =
+
+MULTILIB_OPTIONS += mcpu=403/mcpu=505/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540
+MULTILIB_DIRNAMES += m403 m505 m603e m604 m860 m7400 m8540
 
-MULTILIB_DIRNAMES	= \
-m403 m505 m603e m604 m860 m7400 m8540 \
-nof gprsdouble
+MULTILIB_OPTIONS += msoft-float/mfloat-gprs=double
+MULTILIB_DIRNAMES += nof gprsdouble
 
-# MULTILIB_MATCHES	= ${MULTILIB_MATCHES_FLOAT}
-MULTILIB_MATCHES	=
 MULTILIB_MATCHES  	+= ${MULTILIB_MATCHES_ENDIAN}
 MULTILIB_MATCHES	+= ${MULTILIB_MATCHES_SYSV}
 # Map 405 to 403
@@ -52,37 +54,18 @@ MULTILIB_MATCHES	+= mcpu?8540=mcpu?8548
 # (mfloat-gprs=single is implicit default)
 MULTILIB_MATCHES	+= mcpu?8540=mcpu?8540/mfloat-gprs?single
 
-# Soft-float only, default implies msoft-float
-# NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES
-MULTILIB_SOFTFLOAT_ONLY = \
-*mcpu=401/*msoft-float* \
-*mcpu=403/*msoft-float* \
-*mcpu=405/*msoft-float* \
-*mcpu=801/*msoft-float* \
-*mcpu=821/*msoft-float* \
-*mcpu=823/*msoft-float* \
-*mcpu=860/*msoft-float*
-
-# Hard-float only, take out msoft-float
-MULTILIB_HARDFLOAT_ONLY = \
-*mcpu=505/*msoft-float*
-
-# Targets which do not support gprs
-MULTILIB_NOGPRS = \
-mfloat-gprs=* \
-*mcpu=403/*mfloat-gprs=* \
-*mcpu=505/*mfloat-gprs=* \
-*mcpu=603e/*mfloat-gprs=* \
-*mcpu=604/*mfloat-gprs=* \
-*mcpu=860/*mfloat-gprs=* \
-*mcpu=7400/*mfloat-gprs=*
-
-MULTILIB_EXCEPTIONS =
-
-# Disallow -Dppc and -Dmpc without other options
-MULTILIB_EXCEPTIONS 	+= Dppc* Dmpc*
+# Enumeration of multilibs
 
-MULTILIB_EXCEPTIONS	+= \
-${MULTILIB_SOFTFLOAT_ONLY} \
-${MULTILIB_HARDFLOAT_ONLY} \
-${MULTILIB_NOGPRS}
+MULTILIB_REQUIRED += msoft-float
+MULTILIB_REQUIRED += mcpu=403
+MULTILIB_REQUIRED += mcpu=505
+MULTILIB_REQUIRED += mcpu=603e
+MULTILIB_REQUIRED += mcpu=603e/msoft-float
+MULTILIB_REQUIRED += mcpu=604
+MULTILIB_REQUIRED += mcpu=604/msoft-float
+MULTILIB_REQUIRED += mcpu=7400
+MULTILIB_REQUIRED += mcpu=7400/msoft-float
+MULTILIB_REQUIRED += mcpu=8540
+MULTILIB_REQUIRED += mcpu=8540/msoft-float
+MULTILIB_REQUIRED += mcpu=8540/mfloat-gprs=double
+MULTILIB_REQUIRED += mcpu=860
-- 
1.8.4.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 2/3] RTEMS: Fix MPC8540 multilibs for PowerPC
  2014-12-15 12:10 [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED for PowerPC Sebastian Huber
  2014-12-15 12:10 ` [PATCH 3/3] RTEMS: Add e6500 multilibs " Sebastian Huber
@ 2014-12-15 12:11 ` Sebastian Huber
  2015-01-09 14:23   ` Sebastian Huber
  2015-01-09 14:22 ` [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED " Sebastian Huber
  2 siblings, 1 reply; 6+ messages in thread
From: Sebastian Huber @ 2014-12-15 12:11 UTC (permalink / raw)
  To: gcc-patches; +Cc: devel, Sebastian Huber

GCC generates SPE instructions even if -msoft-float is specified.
Explicitly add -mno-spe to prevent generation of SPE instructions.  This
multilib variant must not lead to a usage of the SPE.

This patch should be applied to GCC 4.9 and mainline.  I do not have
write access, so in case this gets approved, please commit it for me.

gcc/ChangeLog
2014-12-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
	MPC8540.
---
 gcc/config/rs6000/t-rtems | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/t-rtems b/gcc/config/rs6000/t-rtems
index 3ebcfaa..e935947 100644
--- a/gcc/config/rs6000/t-rtems
+++ b/gcc/config/rs6000/t-rtems
@@ -30,6 +30,9 @@ MULTILIB_DIRNAMES += m403 m505 m603e m604 m860 m7400 m8540
 MULTILIB_OPTIONS += msoft-float/mfloat-gprs=double
 MULTILIB_DIRNAMES += nof gprsdouble
 
+MULTILIB_OPTIONS += mno-spe
+MULTILIB_DIRNAMES += nospe
+
 MULTILIB_MATCHES  	+= ${MULTILIB_MATCHES_ENDIAN}
 MULTILIB_MATCHES	+= ${MULTILIB_MATCHES_SYSV}
 # Map 405 to 403
@@ -66,6 +69,6 @@ MULTILIB_REQUIRED += mcpu=604/msoft-float
 MULTILIB_REQUIRED += mcpu=7400
 MULTILIB_REQUIRED += mcpu=7400/msoft-float
 MULTILIB_REQUIRED += mcpu=8540
-MULTILIB_REQUIRED += mcpu=8540/msoft-float
+MULTILIB_REQUIRED += mcpu=8540/msoft-float/mno-spe
 MULTILIB_REQUIRED += mcpu=8540/mfloat-gprs=double
 MULTILIB_REQUIRED += mcpu=860
-- 
1.8.4.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED for PowerPC
  2014-12-15 12:10 [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED for PowerPC Sebastian Huber
  2014-12-15 12:10 ` [PATCH 3/3] RTEMS: Add e6500 multilibs " Sebastian Huber
  2014-12-15 12:11 ` [PATCH 2/3] RTEMS: Fix MPC8540 " Sebastian Huber
@ 2015-01-09 14:22 ` Sebastian Huber
  2 siblings, 0 replies; 6+ messages in thread
From: Sebastian Huber @ 2015-01-09 14:22 UTC (permalink / raw)
  To: gcc-patches

Checked in as

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=219384
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=219389

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] RTEMS: Fix MPC8540 multilibs for PowerPC
  2014-12-15 12:11 ` [PATCH 2/3] RTEMS: Fix MPC8540 " Sebastian Huber
@ 2015-01-09 14:23   ` Sebastian Huber
  0 siblings, 0 replies; 6+ messages in thread
From: Sebastian Huber @ 2015-01-09 14:23 UTC (permalink / raw)
  To: gcc-patches

Checked in as

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=219385
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=219390

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] RTEMS: Add e6500 multilibs for PowerPC
  2014-12-15 12:10 ` [PATCH 3/3] RTEMS: Add e6500 multilibs " Sebastian Huber
@ 2015-01-09 14:24   ` Sebastian Huber
  0 siblings, 0 replies; 6+ messages in thread
From: Sebastian Huber @ 2015-01-09 14:24 UTC (permalink / raw)
  To: gcc-patches

Checked in slightly modified as

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=219387
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=219391

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-09 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 12:10 [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED for PowerPC Sebastian Huber
2014-12-15 12:10 ` [PATCH 3/3] RTEMS: Add e6500 multilibs " Sebastian Huber
2015-01-09 14:24   ` Sebastian Huber
2014-12-15 12:11 ` [PATCH 2/3] RTEMS: Fix MPC8540 " Sebastian Huber
2015-01-09 14:23   ` Sebastian Huber
2015-01-09 14:22 ` [PATCH 1/3] RTEMS: Use MULTILIB_REQUIRED " Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).