This is the mail archive of the gcc-patches@gcc.gnu.org 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]

[x86] Change "-mcpu" to "-mtune"


As discussed on the gcc list numerous times, this replaces "-mcpu"
with "-mtune" in the x86 backend.

Using "-mcpu" now gives the warning:
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.

while internally replacing the "mcpu" with "mtune".

No regressions after the obvious testsuite modifications were done.

Bootstrapped "--enable-languages=c" on i686-pc-cygwin.  With or without
this patch, G77 and libcstdv3 are not currently working under cygwin.

One small hunk was manually rmoved from the diff, which corresponded
to the unreviewed patch at 
http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01632.html

Kelley Cook

2003-01-07  Kelley Cook <kelleycook@comcast.net>

	* config/i386/i386.c: Replace "mcpu" with "mtune".
	* config/i386/i386.h (TARGET_OPTIONS): Likewise.
	(CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
	* doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
	with "mtune".  Note that "mcpu" is a deprecated synonym for
	"mtune".

2003-01-07  Kelley Cook <kelleycook@comcast.net>

	* g++.old-deja/g++.other/store-expr1.C: Replace "mcpu" 
	with "mtune".
	* g++.old-deja/g++.other/store-expr2.C: Likewise.
	* gcc.c-torture/execute/20010129-1.x: Likewise.
	* gcc.dg/20011107-1.c: Likewise.
	* gcc.dg/20020108-1.c: Likewise.
	* gcc.dg/20020122-3.c: Likewise.
	* gcc.dg/20020206-1.c: Likewise.
	* gcc.dg/20020310-1.c: Likewise.
	* gcc.dg/20020426-2.c: Likewise.
	* gcc.dg/20020517-1.c: Likewise.
	* gcc.dg/991230-1.c: Likewise.
	* gcc.dg/i386-unroll-1.c: Likewise.
	* gcc.misc-tests/i386-prefetch.exp: Likewise.


Index: config/i386/i386.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.502
diff -c -p -r1.502 i386.c
*** config/i386/i386.c	28 Dec 2002 13:57:58 -0000	1.502
--- config/i386/i386.c	7 Jan 2003 20:36:23 -0000
*************** enum processor_type ix86_cpu;
*** 739,745 ****
  enum processor_type ix86_arch;
  
  /* Strings to hold which cpu and instruction set architecture  to use.  */
! const char *ix86_cpu_string;		/* for -mcpu=<xxx> */
  const char *ix86_arch_string;		/* for -march=<xxx> */
  const char *ix86_fpmath_string;		/* for -mfpmath=<xxx> */
  
--- 739,745 ----
  enum processor_type ix86_arch;
  
  /* Strings to hold which cpu and instruction set architecture  to use.  */
! const char *ix86_cpu_string;		/* for -mtune=<xxx> */
  const char *ix86_arch_string;		/* for -march=<xxx> */
  const char *ix86_fpmath_string;		/* for -mfpmath=<xxx> */
  
*************** override_options ()
*** 1199,1205 ****
    if (processor_alias_table[i].flags & PTA_PREFETCH_SSE)
      x86_prefetch_sse = true;
    if (i == pta_size)
!     error ("bad value (%s) for -mcpu= switch", ix86_cpu_string);
  
    if (optimize_size)
      ix86_cost = &size_cost;
--- 1199,1205 ----
    if (processor_alias_table[i].flags & PTA_PREFETCH_SSE)
      x86_prefetch_sse = true;
    if (i == pta_size)
!     error ("bad value (%s) for -mtune= switch", ix86_cpu_string);
  
    if (optimize_size)
      ix86_cost = &size_cost;
Index: config/i386/i386.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/i386/i386.h,v
retrieving revision 1.313
diff -c -p -r1.313 i386.h
*** config/i386/i386.h	26 Dec 2002 18:45:03 -0000	1.313
--- config/i386/i386.h	7 Jan 2003 20:36:43 -0000
*************** extern int x86_prefetch_sse;
*** 430,436 ****
     option if the fixed part matches.  The actual option name is made
     by appending `-m' to the specified name.  */
  #define TARGET_OPTIONS						\
! { { "cpu=",		&ix86_cpu_string,			\
      N_("Schedule code for given CPU")},				\
    { "fpmath=",		&ix86_fpmath_string,			\
      N_("Generate floating point mathematics using given instruction set")},\
--- 430,436 ----
     option if the fixed part matches.  The actual option name is made
     by appending `-m' to the specified name.  */
  #define TARGET_OPTIONS						\
! { { "tune=",		&ix86_cpu_string,			\
      N_("Schedule code for given CPU")},				\
    { "fpmath=",		&ix86_fpmath_string,			\
      N_("Generate floating point mathematics using given instruction set")},\
*************** extern int x86_prefetch_sse;
*** 485,499 ****
  
  #ifndef CC1_CPU_SPEC
  #define CC1_CPU_SPEC "\
! %{!mcpu*: \
! %{m386:-mcpu=i386 \
! %n`-m386' is deprecated. Use `-march=i386' or `-mcpu=i386' instead.\n} \
! %{m486:-mcpu=i486 \
! %n`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.\n} \
! %{mpentium:-mcpu=pentium \
! %n`-mpentium' is deprecated. Use `-march=pentium' or `-mcpu=pentium' instead.\n} \
! %{mpentiumpro:-mcpu=pentiumpro \
! %n`-mpentiumpro' is deprecated. Use `-march=pentiumpro' or `-mcpu=pentiumpro' instead.\n}} \
  %{mintel-syntax:-masm=intel \
  %n`-mintel-syntax' is deprecated. Use `-masm=intel' instead.\n} \
  %{mno-intel-syntax:-masm=att \
--- 485,502 ----
  
  #ifndef CC1_CPU_SPEC
  #define CC1_CPU_SPEC "\
! %{!mtune*: \
! %{m386:mtune=i386 \
! %n`-m386' is deprecated. Use `-march=i386' or `-mtune=i386' instead.\n} \
! %{m486:-mtune=i486 \
! %n`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.\n} \
! %{mpentium:-mtune=pentium \
! %n`-mpentium' is deprecated. Use `-march=pentium' or `-mtune=pentium' instead.\n} \
! %{mpentiumpro:-mtune=pentiumpro \
! %n`-mpentiumpro' is deprecated. Use `-march=pentiumpro' or `-mtune=pentiumpro' instead.\n} \
! %{mcpu=*:-mtune=%* \
! %n`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.\n}} \
! %<mcpu=* \
  %{mintel-syntax:-masm=intel \
  %n`-mintel-syntax' is deprecated. Use `-masm=intel' instead.\n} \
  %{mno-intel-syntax:-masm=att \
*************** extern int x86_prefetch_sse;
*** 523,529 ****
  	  builtin_define_std ("i386");				\
  	}							\
  								\
!       /* Built-ins based on -mcpu= (or -march= if no		\
  	 CPU given).  */					\
        if (TARGET_386)						\
  	builtin_define ("__tune_i386__");			\
--- 526,532 ----
  	  builtin_define_std ("i386");				\
  	}							\
  								\
!       /* Built-ins based on -mtune= (or -march= if no		\
  	 CPU given).  */					\
        if (TARGET_386)						\
  	builtin_define ("__tune_i386__");			\
Index: doc/invoke.texi
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.218
diff -c -p -r1.218 invoke.texi
*** doc/invoke.texi	31 Dec 2002 14:59:09 -0000	1.218
--- doc/invoke.texi	7 Jan 2003 20:37:41 -0000
*************** in the following sections.
*** 495,501 ****
  
  @emph{i386 and x86-64 Options}
  @gccoptlist{
! -mcpu=@var{cpu-type}  -march=@var{cpu-type} -mfpmath=@var{unit} @gol
  -masm=@var{dialect}  -mno-fancy-math-387 @gol
  -mno-fp-ret-in-387  -msoft-float  -msvr3-shlib @gol
  -mno-wide-multiply  -mrtd  -malign-double @gol
--- 495,501 ----
  
  @emph{i386 and x86-64 Options}
  @gccoptlist{
! -mtune=@var{cpu-type}  -march=@var{cpu-type} -mfpmath=@var{unit} @gol
  -masm=@var{dialect}  -mno-fancy-math-387 @gol
  -mno-fp-ret-in-387  -msoft-float  -msvr3-shlib @gol
  -mno-wide-multiply  -mrtd  -malign-double @gol
*************** These @samp{-m} options are defined for 
*** 7682,7689 ****
  computers:
  
  @table @gcctabopt
! @item -mcpu=@var{cpu-type}
! @opindex mcpu
  Tune to @var{cpu-type} everything applicable about the generated code, except
  for the ABI and the set of available instructions.  The choices for
  @var{cpu-type} are @samp{i386}, @samp{i486}, @samp{i586}, @samp{i686},
--- 7682,7689 ----
  computers:
  
  @table @gcctabopt
! @item -mtune=@var{cpu-type}
! @opindex mtune
  Tune to @var{cpu-type} everything applicable about the generated code, except
  for the ABI and the set of available instructions.  The choices for
  @var{cpu-type} are @samp{i386}, @samp{i486}, @samp{i586}, @samp{i686},
*************** AMD chips as opposed to the Intel ones.
*** 7702,7709 ****
  @item -march=@var{cpu-type}
  @opindex march
  Generate instructions for the machine type @var{cpu-type}.  The choices
! for @var{cpu-type} are the same as for @option{-mcpu}.  Moreover,
! specifying @option{-march=@var{cpu-type}} implies @option{-mcpu=@var{cpu-type}}.
  
  @item -m386
  @itemx -m486
--- 7702,7713 ----
  @item -march=@var{cpu-type}
  @opindex march
  Generate instructions for the machine type @var{cpu-type}.  The choices
! for @var{cpu-type} are the same as for @option{-mtune}.  Moreover,
! specifying @option{-march=@var{cpu-type}} implies @option{-mtune=@var{cpu-type}}.
! 
! @item -mcpu=@var{cpu-type}
! @opindex mcpu
! A deprecated synonym for @option{-mtune}.
  
  @item -m386
  @itemx -m486
*************** specifying @option{-march=@var{cpu-type}
*** 7713,7720 ****
  @opindex m486
  @opindex mpentium
  @opindex mpentiumpro
! These options are synonyms for @option{-mcpu=i386}, @option{-mcpu=i486},
! @option{-mcpu=pentium}, and @option{-mcpu=pentiumpro} respectively.
  These synonyms are deprecated.
  
  @item -mfpmath=@var{unit}
--- 7717,7724 ----
  @opindex m486
  @opindex mpentium
  @opindex mpentiumpro
! These options are synonyms for @option{-mtune=i386}, @option{-mtune=i486},
! @option{-mtune=pentium}, and @option{-mtune=pentiumpro} respectively.
  These synonyms are deprecated.
  
  @item -mfpmath=@var{unit}
Index: testsuite/g++.old-deja/g++.other/store-expr1.C
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/g++.old-deja/g++.other/store-expr1.C,v
retrieving revision 1.1
diff -c -p -r1.1 store-expr1.C
*** testsuite/g++.old-deja/g++.other/store-expr1.C	25 Jan 2002 11:20:29 -0000	1.1
--- testsuite/g++.old-deja/g++.other/store-expr1.C	7 Jan 2003 20:38:24 -0000
***************
*** 1,5 ****
  // Skip if not target: i?86-*-*
! // Special g++ Options: -mcpu=i686 -O2 -fpic
  class G {};
  
  struct N {
--- 1,5 ----
  // Skip if not target: i?86-*-*
! // Special g++ Options: -mtune=i686 -O2 -fpic
  class G {};
  
  struct N {
Index: testsuite/g++.old-deja/g++.other/store-expr2.C
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C,v
retrieving revision 1.1
diff -c -p -r1.1 store-expr2.C
*** testsuite/g++.old-deja/g++.other/store-expr2.C	25 Jan 2002 11:20:29 -0000	1.1
--- testsuite/g++.old-deja/g++.other/store-expr2.C	7 Jan 2003 20:38:24 -0000
***************
*** 1,5 ****
  // Skip if not target: i?86-*-*
! // Special g++ Options: -mcpu=i686 -O2
  class G {};
  
  struct N {
--- 1,5 ----
  // Skip if not target: i?86-*-*
! // Special g++ Options: -mtune=i686 -O2
  class G {};
  
  struct N {
Index: testsuite/gcc.c-torture/execute/20010129-1.x
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/20010129-1.x,v
retrieving revision 1.1
diff -c -p -r1.1 20010129-1.x
*** testsuite/gcc.c-torture/execute/20010129-1.x	29 Jan 2001 18:31:35 -0000	1.1
--- testsuite/gcc.c-torture/execute/20010129-1.x	7 Jan 2003 20:38:25 -0000
***************
*** 1,4 ****
  if { [istarget "i?86-*-*"] } {
!   set additional_flags "-mcpu=i686"
  }
  return 0
--- 1,4 ----
  if { [istarget "i?86-*-*"] } {
!   set additional_flags "-mtune=i686"
  }
  return 0
Index: testsuite/gcc.dg/20011107-1.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20011107-1.c,v
retrieving revision 1.1
diff -c -p -r1.1 20011107-1.c
*** testsuite/gcc.dg/20011107-1.c	9 Jan 2002 21:34:32 -0000	1.1
--- testsuite/gcc.dg/20011107-1.c	7 Jan 2003 20:38:45 -0000
***************
*** 1,5 ****
  /* { dg-do compile { target i?86-*-* } } */
! /* { dg-options "-O2 -mcpu=k6" } */
  
  void
  foo (unsigned char *x, const unsigned char *y)
--- 1,5 ----
  /* { dg-do compile { target i?86-*-* } } */
! /* { dg-options "-O2 -mtune=k6" } */
  
  void
  foo (unsigned char *x, const unsigned char *y)
Index: testsuite/gcc.dg/20020108-1.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20020108-1.c,v
retrieving revision 1.1
diff -c -p -r1.1 20020108-1.c
*** testsuite/gcc.dg/20020108-1.c	8 Jan 2002 20:10:39 -0000	1.1
--- testsuite/gcc.dg/20020108-1.c	7 Jan 2003 20:38:45 -0000
***************
*** 5,11 ****
     is not valid general_operand in HImode.  */
  /* { dg-do compile } */
  /* { dg-options "-O2" } */
! /* { dg-options "-O2 -mcpu=i686" { target i?86-*-* } } */
  
  void
  foo (unsigned short *cp)
--- 5,11 ----
     is not valid general_operand in HImode.  */
  /* { dg-do compile } */
  /* { dg-options "-O2" } */
! /* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */
  
  void
  foo (unsigned short *cp)
Index: testsuite/gcc.dg/20020122-3.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20020122-3.c,v
retrieving revision 1.1
diff -c -p -r1.1 20020122-3.c
*** testsuite/gcc.dg/20020122-3.c	23 Jan 2002 18:54:27 -0000	1.1
--- testsuite/gcc.dg/20020122-3.c	7 Jan 2003 20:38:45 -0000
***************
*** 4,10 ****
  
  /* { dg-do compile } */
  /* { dg-options "-Os -fprefetch-loop-arrays -w" } */
! /* { dg-options "-Os -fprefetch-loop-arrays -mcpu=pentium3 -w" { target i?86-*-* } } */
  
  int foo (int *p, int n)
  {
--- 4,10 ----
  
  /* { dg-do compile } */
  /* { dg-options "-Os -fprefetch-loop-arrays -w" } */
! /* { dg-options "-Os -fprefetch-loop-arrays -mtune=pentium3 -w" { target i?86-*-* } } */
  
  int foo (int *p, int n)
  {
Index: testsuite/gcc.dg/20020206-1.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20020206-1.c,v
retrieving revision 1.1
diff -c -p -r1.1 20020206-1.c
*** testsuite/gcc.dg/20020206-1.c	6 Feb 2002 22:16:11 -0000	1.1
--- testsuite/gcc.dg/20020206-1.c	7 Jan 2003 20:38:45 -0000
***************
*** 4,10 ****
  
  /* { dg-do run } */
  /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
! /* { dg-options "-O2 -fprefetch-loop-arrays -mcpu=pentium3 -w" { target i?86-*-* } } */
  
  struct reload
  {
--- 4,10 ----
  
  /* { dg-do run } */
  /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
! /* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target i?86-*-* } } */
  
  struct reload
  {
Index: testsuite/gcc.dg/20020310-1.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20020310-1.c,v
retrieving revision 1.2
diff -c -p -r1.2 20020310-1.c
*** testsuite/gcc.dg/20020310-1.c	11 Mar 2002 10:12:03 -0000	1.2
--- testsuite/gcc.dg/20020310-1.c	7 Jan 2003 20:38:45 -0000
***************
*** 2,8 ****
     This testcase was miscompiled because of an rtx sharing bug.  */
  /* { dg-do run } */
  /* { dg-options "-O2" } */
! /* { dg-options "-O2 -mcpu=i586" { target i?86-*-* } } */
  
  struct A
  {
--- 2,8 ----
     This testcase was miscompiled because of an rtx sharing bug.  */
  /* { dg-do run } */
  /* { dg-options "-O2" } */
! /* { dg-options "-O2 -mtune=i586" { target i?86-*-* } } */
  
  struct A
  {
Index: testsuite/gcc.dg/20020426-2.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20020426-2.c,v
retrieving revision 1.3
diff -c -p -r1.3 20020426-2.c
*** testsuite/gcc.dg/20020426-2.c	28 Apr 2002 19:48:10 -0000	1.3
--- testsuite/gcc.dg/20020426-2.c	7 Jan 2003 20:38:45 -0000
***************
*** 2,8 ****
     Distilled from zlib sources.  */
  /* { dg-do run } */
  /* { dg-options "-O2" } */
! /* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mcpu=i686" { target i?86-*-* } } */
  
  typedef struct
  {
--- 2,8 ----
     Distilled from zlib sources.  */
  /* { dg-do run } */
  /* { dg-options "-O2" } */
! /* { dg-options "-O2 -frename-registers -fomit-frame-pointer -fPIC -mtune=i686" { target i?86-*-* } } */
  
  typedef struct
  {
Index: testsuite/gcc.dg/20020517-1.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20020517-1.c,v
retrieving revision 1.1
diff -c -p -r1.1 20020517-1.c
*** testsuite/gcc.dg/20020517-1.c	22 May 2002 21:35:56 -0000	1.1
--- testsuite/gcc.dg/20020517-1.c	7 Jan 2003 20:38:45 -0000
***************
*** 2,8 ****
     was not sign-extended for QImode.  */
  /* { dg-do run } */
  /* { dg-options "-O2" } */
! /* { dg-options "-O2 -mcpu=i686" { target i?86-*-* } } */
  
  #include <limits.h>
  
--- 2,8 ----
     was not sign-extended for QImode.  */
  /* { dg-do run } */
  /* { dg-options "-O2" } */
! /* { dg-options "-O2 -mtune=i686" { target i?86-*-* } } */
  
  #include <limits.h>
  
Index: testsuite/gcc.dg/991230-1.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/991230-1.c,v
retrieving revision 1.2
diff -c -p -r1.2 991230-1.c
*** testsuite/gcc.dg/991230-1.c	23 May 2000 19:30:44 -0000	1.2
--- testsuite/gcc.dg/991230-1.c	7 Jan 2003 20:38:45 -0000
***************
*** 1,5 ****
  /* { dg-do run { target i?86-*-* } } */
! /* { dg-options "-O -ffast-math -mcpu=i486" } */
  
  /* Test that floating point greater-than tests are compiled correctly with
     -ffast-math.  */
--- 1,5 ----
  /* { dg-do run { target i?86-*-* } } */
! /* { dg-options "-O -ffast-math -mtune=i486" } */
  
  /* Test that floating point greater-than tests are compiled correctly with
     -ffast-math.  */
Index: testsuite/gcc.dg/i386-unroll-1.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/i386-unroll-1.c,v
retrieving revision 1.1
diff -c -p -r1.1 i386-unroll-1.c
*** testsuite/gcc.dg/i386-unroll-1.c	21 Nov 2002 22:08:15 -0000	1.1
--- testsuite/gcc.dg/i386-unroll-1.c	7 Jan 2003 20:38:46 -0000
***************
*** 1,6 ****
  /* PR optimization/8599 */
  /* { dg-do run { target i?86-*-* } } */
! /* { dg-options "-mcpu=k6 -O2 -funroll-loops" } */
  
  extern void exit (int);
  
--- 1,6 ----
  /* PR optimization/8599 */
  /* { dg-do run { target i?86-*-* } } */
! /* { dg-options "-mtune=k6 -O2 -funroll-loops" } */
  
  extern void exit (int);
  
Index: testsuite/gcc.misc-tests/i386-prefetch.exp
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp,v
retrieving revision 1.2
diff -c -p -r1.2 i386-prefetch.exp
*** testsuite/gcc.misc-tests/i386-prefetch.exp	17 Jan 2002 22:37:04 -0000	1.2
--- testsuite/gcc.misc-tests/i386-prefetch.exp	7 Jan 2003 20:38:46 -0000
***************
*** 24,37 ****
  # Do not generate prefetch instructions for the following options.
  
  set PREFETCH_NONE [list \
! 	{ -mcpu=i386 } \
! 	{ -mcpu=i486 } \
! 	{ -mcpu=i586 } \
! 	{ -mcpu=i686 } \
! 	{ -mcpu=pentium2 } \
! 	{ -mcpu=k6 } \
! 	{ -mcpu=k6-2 } \
! 	{ -mcpu=k6-3 } \
  	{ -march=i386 } \
  	{ -march=i486 } \
  	{ -march=i586 } \
--- 24,37 ----
  # Do not generate prefetch instructions for the following options.
  
  set PREFETCH_NONE [list \
! 	{ -mtune=i386 } \
! 	{ -mtune=i486 } \
! 	{ -mtune=i586 } \
! 	{ -mtune=i686 } \
! 	{ -mtune=pentium2 } \
! 	{ -mtune=k6 } \
! 	{ -mtune=k6-2 } \
! 	{ -mtune=k6-3 } \
  	{ -march=i386 } \
  	{ -march=i486 } \
  	{ -march=i586 } \
*************** set PREFETCH_NONE [list \
*** 40,53 ****
  	{ -march=k6 } ]
  
  # For options in PREFETCH_SSE, generate SSE prefetch instructions for
! # __builtin_prefetch.  This includes -mcpu for targets that treat prefetch
  # instructions as nops.
  
  set PREFETCH_SSE [list \
! 	{ -mcpu=pentium3 } \
! 	{ -mcpu=pentium4 } \
! 	{ -mcpu=athlon } \
! 	{ -mcpu=athlon-4 } \
  	{ -march=pentium3 } \
  	{ -march=pentium4 } ]
  
--- 40,53 ----
  	{ -march=k6 } ]
  
  # For options in PREFETCH_SSE, generate SSE prefetch instructions for
! # __builtin_prefetch.  This includes -mtune for targets that treat prefetch
  # instructions as nops.
  
  set PREFETCH_SSE [list \
! 	{ -mtune=pentium3 } \
! 	{ -mtune=pentium4 } \
! 	{ -mtune=athlon } \
! 	{ -mtune=athlon-4 } \
  	{ -march=pentium3 } \
  	{ -march=pentium4 } ]
  




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