Adding barcelona as a variant of amdfam10 architecture
authorDwarakanath Rajagopal <dwarak.rajagopal@amd.com>
Wed, 28 Mar 2007 21:44:56 +0000 (21:44 +0000)
committerDwarakanath Rajagopal <dwarak@gcc.gnu.org>
Wed, 28 Mar 2007 21:44:56 +0000 (21:44 +0000)
From-SVN: r123313

gcc/ChangeLog
gcc/config.gcc
gcc/config/i386/i386.c
gcc/doc/invoke.texi

index 5267e52b734c684ca30dde1472a3cd45996906b5..1df143557aa055f2b6dedf284463e489e7422e18 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
+
+       * config.gcc: Accept barcelona as a variant of amdfam10.
+       * config/i386/i386.c (override_options): Likewise.
+       * doc/invoke.texi: Likewise.
+       
 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
 
        * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
index cc3f18e81eb43d4578cf048af1c080074ac89c71..d1deffc92a482e4b712f70a5df4fb1cdd65596ad 100644 (file)
@@ -1129,14 +1129,14 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
                        # FIXME: -m64 for i[34567]86-*-* should be allowed just
                        # like -m32 for x86_64-*-*.
                        case X"${with_cpu}" in
-                       Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xk8|Xopteron|Xathlon64|Xathlon-fx)
+                       Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx)
                                ;;
                        X)
                                with_cpu=generic
                                ;;
                        *)
                                echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
-                               echo "generic core2 nocona x86-64 amdfam10 k8 opteron athlon64 athlon-fx" 1>&2
+                               echo "generic core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2
                                exit 1
                                ;;
                        esac
@@ -1258,14 +1258,14 @@ i[34567]86-*-solaris2*)
                # FIXME: -m64 for i[34567]86-*-* should be allowed just
                # like -m32 for x86_64-*-*.
                case X"${with_cpu}" in
-               Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xk8|Xopteron|Xathlon64|Xathlon-fx)
+               Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx)
                        ;;
                X)
                        with_cpu=generic
                        ;;
                *)
                        echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
-                       echo "generic core2 nocona x86-64 amdfam10 k8 opteron athlon64 athlon-fx" 1>&2
+                       echo "generic core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2
                        exit 1
                        ;;
                esac
@@ -2595,7 +2595,7 @@ if test x$with_cpu = x ; then
       ;;
     i686-*-* | i786-*-*)
       case ${target_noncanonical} in
-        amdfam10-*)
+        amdfam10-*|barcelona-*)
           with_cpu=amdfam10
           ;;
         k8-*|opteron-*|athlon_64-*)
@@ -2641,7 +2641,7 @@ if test x$with_cpu = x ; then
       ;;
     x86_64-*-*)
       case ${target_noncanonical} in
-        amdfam10-*)
+        amdfam10-*|barcelona-*)
           with_cpu=amdfam10
           ;;
         k8-*|opteron-*|athlon_64-*)
@@ -2923,7 +2923,7 @@ case "${target}" in
                                esac
                                # OK
                                ;;
-                       "" | amdfam10 | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | generic)
+                       "" | amdfam10 | barcelona | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | generic)
                                # OK
                                ;;
                        *)
index 45876bde2aeda278b5f643e786140cbdd20fe9e9..40ffcc87507dbbb586d4ae40118f3d44ab254704 100644 (file)
@@ -1724,6 +1724,10 @@ override_options (void)
                                        | PTA_64BIT | PTA_3DNOW_A | PTA_SSE
                                        | PTA_SSE2 | PTA_SSE3 | PTA_POPCNT
                                        | PTA_ABM | PTA_SSE4A | PTA_CX16},
+      {"barcelona", PROCESSOR_AMDFAM10, PTA_MMX | PTA_PREFETCH_SSE | PTA_3DNOW
+                                       | PTA_64BIT | PTA_3DNOW_A | PTA_SSE
+                                       | PTA_SSE2 | PTA_SSE3 | PTA_POPCNT
+                                       | PTA_ABM | PTA_SSE4A | PTA_CX16},
       {"generic32", PROCESSOR_GENERIC32, 0 /* flags are only used for -march switch.  */ },
       {"generic64", PROCESSOR_GENERIC64, PTA_64BIT /* flags are only used for -march switch.  */ },
     };
index f2451c3812f58e9448f7f7e835efb19f80604054..38552b7fd7b18653c099a4833db92e425511f2b3 100644 (file)
@@ -9765,7 +9765,7 @@ instruction set support.
 @item k8, opteron, athlon64, athlon-fx
 AMD K8 core based CPUs with x86-64 instruction set support.  (This supersets
 MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.)
-@item amdfam10
+@item amdfam10, barcelona
 AMD Family 10 core based CPUs with x86-64 instruction set support.  (This
 supersets MMX, SSE, SSE2, SSE3, SSE4A, 3dNOW!, enhanced 3dNOW!, ABM and 64-bit
 instruction set extensions.)