Commit f7bdd292 by Alan Modra Committed by Alan Modra

[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
parent 3f5c0b6b
2018-12-23 Alan Modra <amodra@gmail.com>
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 <iain@sandoe.co.uk> 2018-12-23 Iain Sandoe <iain@sandoe.co.uk>
* lto-wrapper.c (tool_cleanup): Don’t report ficticious temp files. * lto-wrapper.c (tool_cleanup): Don’t report ficticious temp files.
...@@ -77,7 +77,7 @@ do { \ ...@@ -77,7 +77,7 @@ do { \
mcpu=power4: -mpwr4; \ mcpu=power4: -mpwr4; \
mcpu=power3: -m620; \ mcpu=power3: -m620; \
mcpu=powerpc: -mppc; \ mcpu=powerpc: -mppc; \
mcpu=rs64a: -mppc; \ mcpu=rs64: -mppc; \
mcpu=603: -m603; \ mcpu=603: -m603; \
mcpu=603e: -m603; \ mcpu=603e: -m603; \
mcpu=604: -m604; \ mcpu=604: -m604; \
...@@ -88,8 +88,7 @@ do { \ ...@@ -88,8 +88,7 @@ do { \
!mcpu*: %{mvsx: -mpwr6; \ !mcpu*: %{mvsx: -mpwr6; \
maltivec: -m970; \ maltivec: -m970; \
maix64|mpowerpc64: -mppc64; \ maix64|mpowerpc64: -mppc64; \
: %(asm_default)}; \ : %(asm_default)}} \
:%eMissing -mcpu option in ASM_SPEC_CPU?\n} \
-many" -many"
#undef ASM_DEFAULT_SPEC #undef ASM_DEFAULT_SPEC
......
...@@ -77,7 +77,7 @@ do { \ ...@@ -77,7 +77,7 @@ do { \
mcpu=power4: -mpwr4; \ mcpu=power4: -mpwr4; \
mcpu=power3: -m620; \ mcpu=power3: -m620; \
mcpu=powerpc: -mppc; \ mcpu=powerpc: -mppc; \
mcpu=rs64a: -mppc; \ mcpu=rs64: -mppc; \
mcpu=603: -m603; \ mcpu=603: -m603; \
mcpu=603e: -m603; \ mcpu=603e: -m603; \
mcpu=604: -m604; \ mcpu=604: -m604; \
...@@ -88,8 +88,7 @@ do { \ ...@@ -88,8 +88,7 @@ do { \
!mcpu*: %{mvsx: -mpwr6; \ !mcpu*: %{mvsx: -mpwr6; \
maltivec: -m970; \ maltivec: -m970; \
maix64|mpowerpc64: -mppc64; \ maix64|mpowerpc64: -mppc64; \
: %(asm_default)}; \ : %(asm_default)}} \
:%eMissing -mcpu option in ASM_SPEC_CPU?\n} \
-many" -many"
#undef ASM_DEFAULT_SPEC #undef ASM_DEFAULT_SPEC
......
...@@ -449,7 +449,7 @@ static const struct asm_name asm_names[] = { ...@@ -449,7 +449,7 @@ static const struct asm_name asm_names[] = {
{ "power8", "-mpwr8" }, { "power8", "-mpwr8" },
{ "power9", "-mpwr9" }, { "power9", "-mpwr9" },
{ "powerpc", "-mppc" }, { "powerpc", "-mppc" },
{ "rs64a", "-mppc" }, { "rs64", "-mppc" },
{ "603", "-m603" }, { "603", "-m603" },
{ "603e", "-m603" }, { "603e", "-m603" },
{ "604", "-m604" }, { "604", "-m604" },
...@@ -477,8 +477,9 @@ static const struct asm_name asm_names[] = { ...@@ -477,8 +477,9 @@ static const struct asm_name asm_names[] = {
{ "power9", "-mpower9" }, { "power9", "-mpower9" },
{ "a2", "-ma2" }, { "a2", "-ma2" },
{ "powerpc", "-mppc" }, { "powerpc", "-mppc" },
{ "powerpc64", "-mppc64" },
{ "powerpc64le", "%{mpower9-vector:-mpower9;:-mpower8}" }, { "powerpc64le", "%{mpower9-vector:-mpower9;:-mpower8}" },
{ "rs64a", "-mppc64" }, { "rs64", "-mppc64" },
{ "401", "-mppc" }, { "401", "-mppc" },
{ "403", "-m403" }, { "403", "-m403" },
{ "405", "-m405" }, { "405", "-m405" },
...@@ -519,6 +520,7 @@ static const struct asm_name asm_names[] = { ...@@ -519,6 +520,7 @@ static const struct asm_name asm_names[] = {
{ "e500mc64", "-me500mc64" }, { "e500mc64", "-me500mc64" },
{ "e5500", "-me5500" }, { "e5500", "-me5500" },
{ "e6500", "-me6500" }, { "e6500", "-me6500" },
{ "titan", "-mtitan" },
{ NULL, "\ { NULL, "\
%{mpower9-vector: -mpower9; \ %{mpower9-vector: -mpower9; \
mpower8-vector|mcrypto|mdirect-move|mhtm: -mpower8; \ mpower8-vector|mcrypto|mdirect-move|mhtm: -mpower8; \
......
...@@ -87,9 +87,10 @@ ...@@ -87,9 +87,10 @@
mcpu=power4: -mpower4; \ mcpu=power4: -mpower4; \
mcpu=power3: -mppc64; \ mcpu=power3: -mppc64; \
mcpu=powerpc: -mppc; \ mcpu=powerpc: -mppc; \
mcpu=powerpc64: -mppc64; \
mcpu=a2: -ma2; \ mcpu=a2: -ma2; \
mcpu=cell: -mcell; \ mcpu=cell: -mcell; \
mcpu=rs64a: -mppc64; \ mcpu=rs64: -mppc64; \
mcpu=401: -mppc; \ mcpu=401: -mppc; \
mcpu=403: -m403; \ mcpu=403: -m403; \
mcpu=405: -m405; \ mcpu=405: -m405; \
...@@ -130,11 +131,12 @@ ...@@ -130,11 +131,12 @@
mcpu=e500mc64: -me500mc64; \ mcpu=e500mc64: -me500mc64; \
mcpu=e5500: -me5500; \ mcpu=e5500: -me5500; \
mcpu=e6500: -me6500; \ mcpu=e6500: -me6500; \
mcpu=titan: -mtitan; \
!mcpu*: %{mpower9-vector: -mpower9; \ !mcpu*: %{mpower9-vector: -mpower9; \
mpower8-vector|mcrypto|mdirect-move|mhtm: -mpower8; \ mpower8-vector|mcrypto|mdirect-move|mhtm: -mpower8; \
mvsx: -mpower7; \ mvsx: -mpower7; \
mpowerpc64: -mppc64;: %(asm_default)}; \ 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} \ %{mvsx: -mvsx -maltivec; maltivec: -maltivec} \
-many" -many"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment