This fixes PR54142, a problem I exposed when I made -mno-power the default.
2012-08-15 Segher Boessenkool <seg...@kernel.crashing.org> gcc/ PR54142 * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default) instead of -mcom. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto. --- gcc/config/rs6000/driver-rs6000.c | 2 +- gcc/config/rs6000/rs6000.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/rs6000/driver-rs6000.c b/gcc/config/rs6000/driver-rs6000.c index 68b5257..e6c7da1 100644 --- a/gcc/config/rs6000/driver-rs6000.c +++ b/gcc/config/rs6000/driver-rs6000.c @@ -420,7 +420,7 @@ static const struct asm_name asm_names[] = { { NULL, "\ %{mpowerpc64*: -mppc64} \ %{!mpowerpc64*: %{mpowerpc*: -mppc}} \ -%{!mpowerpc*: -mcom}" }, +%{!mpowerpc*: %(asm_default)}" }, #endif }; diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index ec62fc6..5644435 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -103,7 +103,7 @@ "%{!mcpu*: \ %{mpowerpc64*: -mppc64} \ %{!mpowerpc64*: %{mpowerpc*: -mppc}} \ - %{!mpowerpc*: -mcom}} \ + %{!mpowerpc*: %(asm_default)}} \ %{mcpu=native: %(asm_cpu_native)} \ %{mcpu=common: -mcom} \ %{mcpu=cell: -mcell} \ -- 1.7.7.6