diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d2219af1b96f..52e4deea3a11 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
+
+	* config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
+	instead of -mppc.
+	* config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
+
 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
 
 	* config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
diff --git a/gcc/config/rs6000/aix43.h b/gcc/config/rs6000/aix43.h
index 8465c20378c3..c1a69dc3a5ac 100644
--- a/gcc/config/rs6000/aix43.h
+++ b/gcc/config/rs6000/aix43.h
@@ -49,7 +49,7 @@ do {									\
 #undef ASM_CPU_SPEC
 #define ASM_CPU_SPEC \
 "%{!mcpu*: %{!maix64: \
-  %{!mpowerpc64: -mppc} \
+  %{!mpowerpc64: %(asm_default)} \
   %{mpowerpc64: -mppc64}}} \
 %{mcpu=power3: -m620} \
 %{mcpu=power4: -m620} \
diff --git a/gcc/config/rs6000/aix51.h b/gcc/config/rs6000/aix51.h
index a140e129a3b7..6ea30c1fba1d 100644
--- a/gcc/config/rs6000/aix51.h
+++ b/gcc/config/rs6000/aix51.h
@@ -43,7 +43,7 @@ do {									\
 #undef ASM_CPU_SPEC
 #define ASM_CPU_SPEC \
 "%{!mcpu*: %{!maix64: \
-  %{!mpowerpc64: -mppc} \
+  %{!mpowerpc64: %(asm_default)} \
   %{mpowerpc64: -mppc64}}} \
 %{mcpu=power3: -m620} \
 %{mcpu=power4: -m620} \