]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* rs6000/aix41.h (ASM_CPU_SPEC): Define.
authorDavid Edelsohn <edelsohn@mhpcc.edu>
Sat, 29 Nov 1997 19:42:27 +0000 (19:42 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 29 Nov 1997 19:42:27 +0000 (12:42 -0700)
From-SVN: r16854

gcc/ChangeLog
gcc/config/rs6000/aix41.h

index 0bbe874f49b66afaf2a831954477786fb9b2e037..1fd9b6ee4b257b24d9a0f2e6216ab40e0a2e3bca 100644 (file)
@@ -1,3 +1,7 @@
+Sat Nov 29 12:44:57 1997  David Edelsohn  <edelsohn@mhpcc.edu>
+
+       * rs6000/aix41.h (ASM_CPU_SPEC): Define.
+
 Fri Nov 28 10:00:27 1997  Jeffrey A Law  (law@cygnus.com)
 
        * sh/elf.h (PREFERRED_DEBUGGING_TYPE): Prefer stabs again.
index fe4d757de797225989b282c9c99c7c98b37ecfda..2e9b093eacaabab6fc75f380c140d6dbacf5f66d 100644 (file)
@@ -36,6 +36,37 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_SPEC
 #define ASM_SPEC "-u %(asm_cpu)"
 
+/* Common ASM definitions used by ASM_SPEC amonst the various targets
+   for handling -mcpu=xxx switches.  */
+
+#undef ASM_CPU_SPEC
+#define ASM_CPU_SPEC \
+"%{!mcpu*: \
+  %{mpower: %{!mpower2: -mpwr}} \
+  %{mpower2: -mpwr2} \
+  %{mpowerpc*: -mppc} \
+  %{mno-power: %{!mpowerpc*: -mcom}} \
+  %{!mno-power: %{!mpower2: %(asm_default)}}} \
+%{mcpu=common: -mcom} \
+%{mcpu=power: -mpwr} \
+%{mcpu=power2: -mpwr2} \
+%{mcpu=powerpc: -mppc} \
+%{mcpu=rios: -mpwr} \
+%{mcpu=rios1: -mpwr} \
+%{mcpu=rios2: -mpwr2} \
+%{mcpu=rsc: -mpwr} \
+%{mcpu=rsc1: -mpwr} \
+%{mcpu=403: -mppc} \
+%{mcpu=505: -mppc} \
+%{mcpu=601: -m601} \
+%{mcpu=602: -mppc} \
+%{mcpu=603: -m603} \
+%{mcpu=603e: -m603} \
+%{mcpu=604: -m604} \
+%{mcpu=620: -mppc} \
+%{mcpu=821: -mppc} \
+%{mcpu=860: -mppc}"
+
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 \
 -Asystem(unix) -Asystem(aix)"