From 93ae5495f56f08b888269b8fcf175cc7df8f1322 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 14 Jun 2004 10:05:07 +0000 Subject: [PATCH] rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu for power5 and rs64a. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu for power5 and rs64a. Correct condition for default. Correct power3, 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many. From-SVN: r83086 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.h | 26 +++++++++++++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e3d1ba844a..7ef4027fc7c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-06-14 Alan Modra + + * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu + for power5 and rs64a. Correct condition for default. Correct power3, + 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many. + 2004-06-13 Steven Bosscher * gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set): diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index b3ec7f8a65e..00aad36832d 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -51,20 +51,23 @@ "%{!mcpu*: \ %{mpower: %{!mpower2: -mpwr}} \ %{mpower2: -mpwrx} \ - %{mpowerpc*: -mppc} \ + %{mpowerpc64*: -mppc64} \ + %{!mpowerpc64*: %{mpowerpc*: -mppc}} \ %{mno-power: %{!mpowerpc*: -mcom}} \ - %{!mno-power: %{!mpower2: %(asm_default)}}} \ + %{!mno-power: %{!mpower*: %(asm_default)}}} \ %{mcpu=common: -mcom} \ %{mcpu=power: -mpwr} \ %{mcpu=power2: -mpwrx} \ -%{mcpu=power3: -m604} \ +%{mcpu=power3: -mppc64} \ %{mcpu=power4: -mpower4} \ +%{mcpu=power5: -mpower4} \ %{mcpu=powerpc: -mppc} \ %{mcpu=rios: -mpwr} \ %{mcpu=rios1: -mpwr} \ %{mcpu=rios2: -mpwrx} \ %{mcpu=rsc: -mpwr} \ %{mcpu=rsc1: -mpwr} \ +%{mcpu=rs64a: -mppc64} \ %{mcpu=401: -mppc} \ %{mcpu=403: -m403} \ %{mcpu=405: -m405} \ @@ -79,22 +82,23 @@ %{mcpu=ec603e: -mppc} \ %{mcpu=604: -mppc} \ %{mcpu=604e: -mppc} \ -%{mcpu=620: -mppc} \ -%{mcpu=630: -m604} \ +%{mcpu=620: -mppc64} \ +%{mcpu=630: -mppc64} \ %{mcpu=740: -mppc} \ -%{mcpu=7400: -mppc} \ -%{mcpu=7450: -mppc} \ -%{mcpu=G4: -mppc} \ %{mcpu=750: -mppc} \ %{mcpu=G3: -mppc} \ +%{mcpu=7400: -mppc -maltivec} \ +%{mcpu=7450: -mppc -maltivec} \ +%{mcpu=G4: -mppc -maltivec} \ %{mcpu=801: -mppc} \ %{mcpu=821: -mppc} \ %{mcpu=823: -mppc} \ %{mcpu=860: -mppc} \ -%{mcpu=970: -mpower4} \ -%{mcpu=G5: -mpower4} \ +%{mcpu=970: -mpower4 -maltivec} \ +%{mcpu=G5: -mpower4 -maltivec} \ %{mcpu=8540: -me500} \ -%{maltivec: -maltivec}" +%{maltivec: -maltivec} \ +-many" #define CPP_DEFAULT_SPEC ""