From: Segher Boessenkool Date: Fri, 28 Sep 2018 22:30:45 +0000 (+0200) Subject: rs5000: Delete all specific asm_cpu_* and ASM_CPU_*_SPEC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68cf2892dff86ff9b39436932d6c1484a120347f;p=gcc.git rs5000: Delete all specific asm_cpu_* and ASM_CPU_*_SPEC Now that e.g. ASM_CPU_POWER5_SPEC is always "-mpower5" it is clearer and easier to just write that directly. * config/rs6000/driver-rs6000.c (asm_names): Adjust the entries for power5 .. power9 to remove indirection. * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC, ASM_CPU_POWER6_SPEC, ASM_CPU_POWER7_SPEC, ASM_CPU_POWER8_SPEC, ASM_CPU_POWER9_SPEC, ASM_CPU_476_SPEC): Delete. (ASM_CPU_SPEC): Adjust. (EXTRA_SPECS): Delete asm_cpu_power5, asm_cpu_power6, asm_cpu_power7, asm_cpu_power8, asm_cpu_power9, asm_cpu_476. From-SVN: r264704 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd520215cac..0f703f5c0fb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2018-09-28 Segher Boessenkool + + * config/rs6000/driver-rs6000.c (asm_names): Adjust the entries for + power5 .. power9 to remove indirection. + * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC, ASM_CPU_POWER6_SPEC, + ASM_CPU_POWER7_SPEC, ASM_CPU_POWER8_SPEC, ASM_CPU_POWER9_SPEC, + ASM_CPU_476_SPEC): Delete. + (ASM_CPU_SPEC): Adjust. + (EXTRA_SPECS): Delete asm_cpu_power5, asm_cpu_power6, asm_cpu_power7, + asm_cpu_power8, asm_cpu_power9, asm_cpu_476. + 2018-09-28 Segher Boessenkool * config.in: Delete HAVE_AS_DCI. diff --git a/gcc/config/rs6000/driver-rs6000.c b/gcc/config/rs6000/driver-rs6000.c index 972099a47ee..948888b4c79 100644 --- a/gcc/config/rs6000/driver-rs6000.c +++ b/gcc/config/rs6000/driver-rs6000.c @@ -468,13 +468,13 @@ static const struct asm_name asm_names[] = { { "cell", "-mcell" }, { "power3", "-mppc64" }, { "power4", "-mpower4" }, - { "power5", "%(asm_cpu_power5)" }, - { "power5+", "%(asm_cpu_power5)" }, - { "power6", "%(asm_cpu_power6) -maltivec" }, - { "power6x", "%(asm_cpu_power6) -maltivec" }, - { "power7", "%(asm_cpu_power7)" }, - { "power8", "%(asm_cpu_power8)" }, - { "power9", "%(asm_cpu_power9)" }, + { "power5", "-mpower5" }, + { "power5+", "-mpower5" }, + { "power6", "-mpower6 -maltivec" }, + { "power6x", "-mpower6 -maltivec" }, + { "power7", "-mpower7" }, + { "power8", "-mpower8" }, + { "power9", "-mpower9" }, { "powerpc", "-mppc" }, { "rs64a", "-mppc64" }, { "401", "-mppc" }, diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 855de7ca60a..86a7fb83bd8 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -72,14 +72,6 @@ #define PPC405_ERRATUM77 0 #endif -#define ASM_CPU_POWER5_SPEC "-mpower5" -#define ASM_CPU_POWER6_SPEC "-mpower6 -maltivec" -#define ASM_CPU_POWER7_SPEC "-mpower7" -#define ASM_CPU_POWER8_SPEC "-mpower8" -#define ASM_CPU_POWER9_SPEC "-mpower9" - -#define ASM_CPU_476_SPEC "-m476" - /* Common ASM definitions used by ASM_SPEC among the various targets for handling -mcpu=xxx switches. There is a parallel list in driver-rs6000.c to provide the default assembler options if the user uses -mcpu=native, so if @@ -93,16 +85,16 @@ %{mcpu=cell: -mcell} \ %{mcpu=power3: -mppc64} \ %{mcpu=power4: -mpower4} \ -%{mcpu=power5: %(asm_cpu_power5)} \ -%{mcpu=power5+: %(asm_cpu_power5)} \ -%{mcpu=power6: %(asm_cpu_power6) -maltivec} \ -%{mcpu=power6x: %(asm_cpu_power6) -maltivec} \ -%{mcpu=power7: %(asm_cpu_power7)} \ -%{mcpu=power8: %{!mpower9-vector: %(asm_cpu_power8)}} \ -%{mcpu=power9: %(asm_cpu_power9)} \ +%{mcpu=power5: -mpower5} \ +%{mcpu=power5+: -mpower5} \ +%{mcpu=power6: -mpower6 -maltivec} \ +%{mcpu=power6x: -mpower6 -maltivec} \ +%{mcpu=power7: -mpower7} \ +%{mcpu=power8: %{!mpower9-vector: -mpower8}} \ +%{mcpu=power9: -mpower9} \ %{mcpu=a2: -ma2} \ %{mcpu=powerpc: -mppc} \ -%{mcpu=powerpc64le: %(asm_cpu_power8)} \ +%{mcpu=powerpc64le: -mpower8} \ %{mcpu=rs64a: -mppc64} \ %{mcpu=401: -mppc} \ %{mcpu=403: -m403} \ @@ -112,8 +104,8 @@ %{mcpu=440fp: -m440} \ %{mcpu=464: -m440} \ %{mcpu=464fp: -m440} \ -%{mcpu=476: %(asm_cpu_476)} \ -%{mcpu=476fp: %(asm_cpu_476)} \ +%{mcpu=476: -m476} \ +%{mcpu=476fp: -m476} \ %{mcpu=505: -mppc} \ %{mcpu=601: -m601} \ %{mcpu=602: -mppc} \ @@ -145,9 +137,9 @@ %{mcpu=e5500: -me5500} \ %{mcpu=e6500: -me6500} \ %{maltivec: -maltivec} \ -%{mvsx: -mvsx %{!maltivec: -maltivec} %{!mcpu*: %(asm_cpu_power7)}} \ -%{mpower8-vector|mcrypto|mdirect-move|mhtm: %{!mcpu*: %(asm_cpu_power8)}} \ -%{mpower9-vector: %{!mcpu*|mcpu=power8: %(asm_cpu_power9)}} \ +%{mvsx: -mvsx %{!maltivec: -maltivec} %{!mcpu*: -mpower7}} \ +%{mpower8-vector|mcrypto|mdirect-move|mhtm: %{!mcpu*: -mpower8}} \ +%{mpower9-vector: %{!mcpu*|mcpu=power8: -mpower9}} \ -many" #define CPP_DEFAULT_SPEC "" @@ -172,12 +164,6 @@ { "asm_cpu_native", ASM_CPU_NATIVE_SPEC }, \ { "asm_default", ASM_DEFAULT_SPEC }, \ { "cc1_cpu", CC1_CPU_SPEC }, \ - { "asm_cpu_power5", ASM_CPU_POWER5_SPEC }, \ - { "asm_cpu_power6", ASM_CPU_POWER6_SPEC }, \ - { "asm_cpu_power7", ASM_CPU_POWER7_SPEC }, \ - { "asm_cpu_power8", ASM_CPU_POWER8_SPEC }, \ - { "asm_cpu_power9", ASM_CPU_POWER9_SPEC }, \ - { "asm_cpu_476", ASM_CPU_476_SPEC }, \ SUBTARGET_EXTRA_SPECS /* -mcpu=native handling only makes sense with compiler running on