This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Implicit altivec vs. linux kernel build

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.


	* 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
   /* Don't override these by the processor default if given explicitly.  */
-  set_masks &= ~(target_flags_explicit
+  set_masks &= ~target_flags_explicit;
   /* Identify the processor type.  */
   rs6000_select[0].string = default_cpu;

Alan Modra
IBM OzLabs - Linux Technology Centre

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]