* config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Feb 2003 21:51:19 +0000 (21:51 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Feb 2003 21:51:19 +0000 (21:51 +0000)
        option.
        (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
        * config/rs6000/aix51.h: Same.
        * config/rs6000/aix52.h: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63529 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/aix43.h
gcc/config/rs6000/aix51.h
gcc/config/rs6000/aix52.h

index 0a7e68a..00919b3 100644 (file)
@@ -1,5 +1,10 @@
 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
 
+       * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
+       option.
+       (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
+       * config/rs6000/aix51.h: Same.
+       * config/rs6000/aix52.h: Same.
        * config/rs6000/power4.md: Additional VMX bypasses.
 
 2003-02-27   Geert Bosch <bosch@gnat.com>
index 19cadd8..2c8900c 100644 (file)
@@ -60,7 +60,7 @@ do {                                                                  \
 } while (0);
 
 #undef ASM_SPEC
-#define ASM_SPEC "-u %{maix64:-a64 -mppc64} %(asm_cpu)"
+#define ASM_SPEC "-u %{maix64:-a64 %{!mcpu*:-mppc64}} %(asm_cpu)"
 
 /* Common ASM definitions used by ASM_SPEC amongst the various targets
    for handling -mcpu=xxx switches.  */
@@ -75,8 +75,8 @@ do {                                                                  \
 %{mcpu=common: -mcom} \
 %{mcpu=power: -mpwr} \
 %{mcpu=power2: -mpwr2} \
-%{mcpu=power3: -m604} \
-%{mcpu=power4: -m604} \
+%{mcpu=power3: -m620} \
+%{mcpu=power4: -m620} \
 %{mcpu=powerpc: -mppc} \
 %{mcpu=rios: -mpwr} \
 %{mcpu=rios1: -mpwr} \
@@ -90,8 +90,8 @@ do {                                                                  \
 %{mcpu=603e: -m603} \
 %{mcpu=604: -m604} \
 %{mcpu=604e: -m604} \
-%{mcpu=620: -mppc} \
-%{mcpu=630: -m604}"
+%{mcpu=620: -m620} \
+%{mcpu=630: -m620}"
 
 #undef ASM_DEFAULT_SPEC
 #define ASM_DEFAULT_SPEC "-mcom"
index 201b2ad..dfe9cf2 100644 (file)
@@ -60,7 +60,7 @@ do {                                                                  \
 } while (0);
 
 #undef ASM_SPEC
-#define ASM_SPEC "-u %{maix64:-a64 -mppc64} %(asm_cpu)"
+#define ASM_SPEC "-u %{maix64:-a64 %{!mcpu*:-mppc64}} %(asm_cpu)"
 
 /* Common ASM definitions used by ASM_SPEC amongst the various targets
    for handling -mcpu=xxx switches.  */
@@ -75,8 +75,8 @@ do {                                                                  \
 %{mcpu=common: -mcom} \
 %{mcpu=power: -mpwr} \
 %{mcpu=power2: -mpwr2} \
-%{mcpu=power3: -m604} \
-%{mcpu=power4: -m604} \
+%{mcpu=power3: -m620} \
+%{mcpu=power4: -m620} \
 %{mcpu=powerpc: -mppc} \
 %{mcpu=rios: -mpwr} \
 %{mcpu=rios1: -mpwr} \
@@ -90,8 +90,8 @@ do {                                                                  \
 %{mcpu=603e: -m603} \
 %{mcpu=604: -m604} \
 %{mcpu=604e: -m604} \
-%{mcpu=620: -mppc} \
-%{mcpu=630: -m604}"
+%{mcpu=620: -m620} \
+%{mcpu=630: -m620}"
 
 #undef ASM_DEFAULT_SPEC
 #define ASM_DEFAULT_SPEC "-mcom"
index da7e036..9d72e71 100644 (file)
@@ -60,7 +60,7 @@ do {                                                                  \
 } while (0);
 
 #undef ASM_SPEC
-#define ASM_SPEC "-u %{maix64:-a64 -mppc64} %(asm_cpu)"
+#define ASM_SPEC "-u %{maix64:-a64 %{!mcpu*:-mppc64}} %(asm_cpu)"
 
 /* Common ASM definitions used by ASM_SPEC amongst the various targets
    for handling -mcpu=xxx switches.  */
@@ -69,16 +69,16 @@ do {                                                                        \
 "%{!mcpu*: %{!maix64: \
   %{mpowerpc64: -mppc64} \
   %{!mpower64: %(asm_default)}}} \
-%{mcpu=power3: -m604} \
-%{mcpu=power4: -m604} \
+%{mcpu=power3: -m620} \
+%{mcpu=power4: -m620} \
 %{mcpu=powerpc: -mppc} \
 %{mcpu=rs64a: -mppc} \
 %{mcpu=603: -m603} \
 %{mcpu=603e: -m603} \
 %{mcpu=604: -m604} \
 %{mcpu=604e: -m604} \
-%{mcpu=620: -mppc} \
-%{mcpu=630: -m604}"
+%{mcpu=620: -m620} \
+%{mcpu=630: -m620}"
 
 #undef ASM_DEFAULT_SPEC
 #define ASM_DEFAULT_SPEC "-mppc"