This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Implicit altivec vs. linux kernel build
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>, gcc-patches at gcc dot gnu dot org
- Cc: David Edelsohn <dje at watson dot ibm dot com>,Paul Mackerras <paulus at samba dot org>, Geoff Keating <geoffk at geoffk dot org>,Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- Date: Mon, 28 Feb 2005 10:25:41 +1030
- Subject: Re: Implicit altivec vs. linux kernel build
- References: <1109545242.14992.234.camel@gaston> <200502272335.j1RNZDD27844@makai.watson.ibm.com> <653d1ad4308fa0e72f08252032f6c753@physics.uc.edu>
On Sun, Feb 27, 2005 at 06:40:31PM -0500, Andrew Pinski wrote:
> As I and Ben found out that does not work, altivec is still turned on
> and there is no way to turn it off. Alan has a patch which he is going
> to post (again) on my request to fix the problem with "-mcpu=power4
> -maltivec",
> I don't know if -mno-altivec will work though.
See
http://gcc.gnu.org/ml/gcc/2005-02/msg01143.html
http://gcc.gnu.org/ml/gcc/2005-02/msg01142.html
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg00688.html
* config/rs6000/rs6000.c (rs6000_override_options): Don't allow
-mcpu to override any other explicitly given flags.
Index: gcc/config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.788
diff -u -p -r1.788 rs6000.c
--- gcc/config/rs6000/rs6000.c 25 Feb 2005 01:16:06 -0000 1.788
+++ gcc/config/rs6000/rs6000.c 27 Feb 2005 23:49:07 -0000
@@ -1199,8 +1199,7 @@ rs6000_override_options (const char *def
#endif
/* Don't override these by the processor default if given explicitly. */
- set_masks &= ~(target_flags_explicit
- & (MASK_MULTIPLE | MASK_STRING | MASK_SOFT_FLOAT));
+ set_masks &= ~target_flags_explicit;
/* Identify the processor type. */
rs6000_select[0].string = default_cpu;
--
Alan Modra
IBM OzLabs - Linux Technology Centre