PowerPC specific GCC patch question

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Feb 14 10:09:25 UTC 2011


Hello,

in contrib/crossrpms/patches/gcc-core-4.5.2-rtems4.11-20101216.diff we have this:

diff -Naur gcc-4.5.2.orig/gcc/config/rs6000/rtems.h
gcc-4.5.2/gcc/config/rs6000/rtems.h
--- gcc-4.5.2.orig/gcc/config/rs6000/rtems.h	2007-08-02 12:49:31.000000000 +0200
+++ gcc-4.5.2/gcc/config/rs6000/rtems.h	2010-12-17 16:16:29.575213615 +0100
@@ -49,8 +49,22 @@
 %{mcpu=604:  %{!Dppc*: %{!Dmpc*: -Dmpc604}  } } \
 %{mcpu=750:  %{!Dppc*: %{!Dmpc*: -Dmpc750}  } } \
 %{mcpu=821:  %{!Dppc*: %{!Dmpc*: -Dmpc821}  } } \
-%{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } }"
+%{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } } \
+%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540}  } }"

 #undef  SUBSUBTARGET_EXTRA_SPECS
 #define SUBSUBTARGET_EXTRA_SPECS \
   { "cpp_os_rtems",		CPP_OS_RTEMS_SPEC }
+
+#undef SUBSUBTARGET_OVERRIDE_OPTIONS
+#define SUBSUBTARGET_OVERRIDE_OPTIONS		\
+  do {						\
+    if (TARGET_E500)				\
+      {						\
+	rs6000_float_gprs = 1;			\
+      }						\
+  } while(0)
+
+#undef WCHAR_TYPE
+
+#undef WCHAR_TYPE_SIZE

Why do we set SUBSUBTARGET_OVERRIDE_OPTIONS in that way?  The e500v2 supports
64-bit floating point operations.  With this setting I am not able to use this
feature.

Have a nice day!

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

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



More information about the users mailing list