From 7fb0ee07b4a414ff79ddff2b257de634ed6c26c1 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Sat, 28 Mar 2009 23:31:35 +0000 Subject: [PATCH] re PR target/32542 (When -msdata is set, gcc sent -memb to gas.) PR target/32542 * sysv4.opt (msdata): Improve comment. * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given. * sysv4.h (SVR4_ASM_SPEC): Likewise. From-SVN: r145214 --- gcc/ChangeLog | 7 +++++++ gcc/config/rs6000/linux64.h | 2 +- gcc/config/rs6000/sysv4.h | 2 +- gcc/config/rs6000/sysv4.opt | 3 ++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 955b7e8bdea..46b558506c2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2009-03-29 Ben Elliston + + PR target/32542 + * sysv4.opt (msdata): Improve comment. + * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given. + * sysv4.h (SVR4_ASM_SPEC): Likewise. + 2009-03-29 Ben Elliston PR target/30451 diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index 46cb876ed2d..ad2eb4b7fea 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -152,7 +152,7 @@ extern int dot_symbols; #define ASM_SPEC32 "-a32 %{n} %{T} %{Ym,*} %{Yd,*} \ %{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} \ -%{memb} %{!memb: %{msdata: -memb} %{msdata=eabi: -memb}} \ +%{memb} %{!memb: %{msdata=eabi: -memb}} \ %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \ %{mcall-freebsd: -mbig} \ %{mcall-i960-old: -mlittle} \ diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 69ccb58a1ff..1deb0eb8cfd 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -588,7 +588,7 @@ extern int fixuplabelno; %{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}" \ SVR4_ASM_SPEC \ "%{mrelocatable} %{mrelocatable-lib} %{fpic|fpie|fPIC|fPIE:-K PIC} \ -%{memb|msdata|msdata=eabi: -memb} \ +%{memb|msdata=eabi: -memb} \ %{mlittle|mlittle-endian:-mlittle; \ mbig|mbig-endian :-mbig; \ mcall-aixdesc | \ diff --git a/gcc/config/rs6000/sysv4.opt b/gcc/config/rs6000/sysv4.opt index 5de03b34a84..01b087dedcf 100644 --- a/gcc/config/rs6000/sysv4.opt +++ b/gcc/config/rs6000/sysv4.opt @@ -94,7 +94,8 @@ mregnames Target Mask(REGNAMES) Use alternate register names -;; FIXME: Does nothing. +;; This option does nothing and only exists because the compiler +;; driver passes all -m* options through. msdata Target no description yet