From: Alan Modra Date: Sun, 23 Dec 2018 13:28:20 +0000 (+1030) Subject: [RS6000] PR88346, Inconsistent list of CPUs supported after r266502 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7bdd292d9366e3bf8171ca3aa246359655d0fd9;p=gcc.git [RS6000] PR88346, Inconsistent list of CPUs supported after r266502 This patch removes the %e error for AIX, since it seems there has been no attempt to keep cpu support up to date for AIX, and adds missing entries to ASM_CPU_SPEC in rs6000.h. The rs64a->rs64 name change happened a long time ago as a fix for PR20813 (git commit c92b4c3f5b). PR 88346 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Correct %e message. Handle -mcpu=rs64, not -mcpu=rs64a. Handle -mcpu=powerpc64 and -mcpu=titan. * config/rs6000/driver-rs6000.c (asm_names): Similarly. * config/rs6000/aix71.h (ASM_CPU_SPEC): Delete %e message. Handle -mcpu=rs64, not -mcpu=rs64a. * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise. From-SVN: r267375 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9efea171388..c15a1a43e6c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2018-12-23 Alan Modra + + PR 88346 + * config/rs6000/rs6000.h (ASM_CPU_SPEC): Correct %e message. Handle + -mcpu=rs64, not -mcpu=rs64a. Handle -mcpu=powerpc64 and -mcpu=titan. + * config/rs6000/driver-rs6000.c (asm_names): Similarly. + * config/rs6000/aix71.h (ASM_CPU_SPEC): Delete %e message. Handle + -mcpu=rs64, not -mcpu=rs64a. + * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise. + 2018-12-23 Iain Sandoe * lto-wrapper.c (tool_cleanup): Don’t report ficticious temp files. diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h index 2398ed64baa..d2fbba4f509 100644 --- a/gcc/config/rs6000/aix71.h +++ b/gcc/config/rs6000/aix71.h @@ -77,7 +77,7 @@ do { \ mcpu=power4: -mpwr4; \ mcpu=power3: -m620; \ mcpu=powerpc: -mppc; \ - mcpu=rs64a: -mppc; \ + mcpu=rs64: -mppc; \ mcpu=603: -m603; \ mcpu=603e: -m603; \ mcpu=604: -m604; \ @@ -88,8 +88,7 @@ do { \ !mcpu*: %{mvsx: -mpwr6; \ maltivec: -m970; \ maix64|mpowerpc64: -mppc64; \ - : %(asm_default)}; \ - :%eMissing -mcpu option in ASM_SPEC_CPU?\n} \ + : %(asm_default)}} \ -many" #undef ASM_DEFAULT_SPEC diff --git a/gcc/config/rs6000/aix72.h b/gcc/config/rs6000/aix72.h index ade9a600c25..b1bbae7092e 100644 --- a/gcc/config/rs6000/aix72.h +++ b/gcc/config/rs6000/aix72.h @@ -77,7 +77,7 @@ do { \ mcpu=power4: -mpwr4; \ mcpu=power3: -m620; \ mcpu=powerpc: -mppc; \ - mcpu=rs64a: -mppc; \ + mcpu=rs64: -mppc; \ mcpu=603: -m603; \ mcpu=603e: -m603; \ mcpu=604: -m604; \ @@ -88,8 +88,7 @@ do { \ !mcpu*: %{mvsx: -mpwr6; \ maltivec: -m970; \ maix64|mpowerpc64: -mppc64; \ - : %(asm_default)}; \ - :%eMissing -mcpu option in ASM_SPEC_CPU?\n} \ + : %(asm_default)}} \ -many" #undef ASM_DEFAULT_SPEC diff --git a/gcc/config/rs6000/driver-rs6000.c b/gcc/config/rs6000/driver-rs6000.c index 0a48d46d658..51c6b79e741 100644 --- a/gcc/config/rs6000/driver-rs6000.c +++ b/gcc/config/rs6000/driver-rs6000.c @@ -449,7 +449,7 @@ static const struct asm_name asm_names[] = { { "power8", "-mpwr8" }, { "power9", "-mpwr9" }, { "powerpc", "-mppc" }, - { "rs64a", "-mppc" }, + { "rs64", "-mppc" }, { "603", "-m603" }, { "603e", "-m603" }, { "604", "-m604" }, @@ -477,8 +477,9 @@ static const struct asm_name asm_names[] = { { "power9", "-mpower9" }, { "a2", "-ma2" }, { "powerpc", "-mppc" }, + { "powerpc64", "-mppc64" }, { "powerpc64le", "%{mpower9-vector:-mpower9;:-mpower8}" }, - { "rs64a", "-mppc64" }, + { "rs64", "-mppc64" }, { "401", "-mppc" }, { "403", "-m403" }, { "405", "-m405" }, @@ -519,6 +520,7 @@ static const struct asm_name asm_names[] = { { "e500mc64", "-me500mc64" }, { "e5500", "-me5500" }, { "e6500", "-me6500" }, + { "titan", "-mtitan" }, { NULL, "\ %{mpower9-vector: -mpower9; \ mpower8-vector|mcrypto|mdirect-move|mhtm: -mpower8; \ diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 2a62679bdb8..e7e998d1492 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -87,9 +87,10 @@ mcpu=power4: -mpower4; \ mcpu=power3: -mppc64; \ mcpu=powerpc: -mppc; \ + mcpu=powerpc64: -mppc64; \ mcpu=a2: -ma2; \ mcpu=cell: -mcell; \ - mcpu=rs64a: -mppc64; \ + mcpu=rs64: -mppc64; \ mcpu=401: -mppc; \ mcpu=403: -m403; \ mcpu=405: -m405; \ @@ -130,11 +131,12 @@ mcpu=e500mc64: -me500mc64; \ mcpu=e5500: -me5500; \ mcpu=e6500: -me6500; \ + mcpu=titan: -mtitan; \ !mcpu*: %{mpower9-vector: -mpower9; \ mpower8-vector|mcrypto|mdirect-move|mhtm: -mpower8; \ mvsx: -mpower7; \ mpowerpc64: -mppc64;: %(asm_default)}; \ - :%eMissing -mcpu option in ASM_SPEC_CPU?\n} \ + :%eMissing -mcpu option in ASM_CPU_SPEC?\n} \ %{mvsx: -mvsx -maltivec; maltivec: -maltivec} \ -many"