This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: AIX disable Altivec
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Aug 2002 12:12:11 +0930
- Subject: Re: AIX disable Altivec
- References: <200208080124.VAA27474@makai.watson.ibm.com>
On Wed, Aug 07, 2002 at 09:24:18PM -0400, David Edelsohn wrote:
> This patch forces Altivec disabled which saves another 500KB in
> the size of the compiler.
>
> David
>
> * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
> (TARGET_ALTIVEC_ABI): Same.
> (TARGET_ALTIVEC_VRSAVE): Same.
linux64.h too? Added the FIXED_R2 define for safety (it duplicates
sysv4.h one).
* config/rs6000/linux64.h (TARGET_ALTIVEC): Define to 0.
(TARGET_ALTIVEC_ABI): Same.
(TARGET_ALTIVEC_VRSAVE): Same.
(FIXED_R2): Define.
(FIXED_R13): Move.
Index: linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux64.h,v
retrieving revision 1.24
diff -u -p -r1.24 linux64.h
--- linux64.h 7 Aug 2002 21:05:15 -0000 1.24
+++ linux64.h 8 Aug 2002 02:34:51 -0000
@@ -50,6 +50,18 @@ Boston, MA 02111-1307, USA. */
#define TARGET_NO_TOC 0
#undef TARGET_TOC
#define TARGET_TOC 1
+#define FIXED_R2 1
+
+/* 64-bit PowerPC Linux always has GPR13 fixed. */
+#define FIXED_R13 1
+
+/* 64-bit PowerPC Linux targets do not support Altivec. */
+#undef TARGET_ALTIVEC
+#define TARGET_ALTIVEC 0
+#undef TARGET_ALTIVEC_ABI
+#define TARGET_ALTIVEC_ABI 0
+#undef TARGET_ALTIVEC_VRSAVE
+#define TARGET_ALTIVEC_VRSAVE 0
/* We use glibc _mcount for profiling. */
#define NO_PROFILE_COUNTERS 1
@@ -87,9 +99,6 @@ Boston, MA 02111-1307, USA. */
/* Indicate that jump tables go in the text section. */
#undef JUMP_TABLES_IN_TEXT_SECTION
#define JUMP_TABLES_IN_TEXT_SECTION 1
-
-/* 64-bit PowerPC Linux always has GPR13 fixed. */
-#define FIXED_R13 1
/* __throw will restore its own return address to be the same as the
return address of the function that the throw is being made to.
--
Alan Modra
IBM OzLabs - Linux Technology Centre