Patchwork [1/7] rs6000: Fix PR54142

login
register
mail settings
Submitter Segher Boessenkool
Date Aug. 15, 2012, 10:29 p.m.
Message ID <abb9b44a444566fef4e88c42aa98895d96bccb09.1345067650.git.segher@kernel.crashing.org>
Download mbox | patch
Permalink /patch/177866/
State New
Headers show

Comments

Segher Boessenkool - Aug. 15, 2012, 10:29 p.m.
This fixes PR54142, a problem I exposed when I made -mno-power the
default.

2012-08-15  Segher Boessenkool  <segher@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(-)
David Edelsohn - Aug. 15, 2012, 11:52 p.m.
On Wed, Aug 15, 2012 at 6:29 PM, Segher Boessenkool
<segher@kernel.crashing.org> wrote:
> This fixes PR54142, a problem I exposed when I made -mno-power the
> default.
>
> 2012-08-15  Segher Boessenkool  <segher@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.

This patch is okay.

Thanks, David

Patch

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} \