This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH, rs6000: fix PR target/32542


This patch fixes PR target/32542.  Tested with a bootstrap and
regression test run on powerpc-linux.  Okay for the trunk, once we're in
stage 1?

Thanks, Ben

2009-03-23  Ben Elliston  <bje@au.ibm.com>

        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.

Index: sysv4.opt
===================================================================
--- sysv4.opt   (revision 145000)
+++ sysv4.opt   (working copy)
@@ -94,7 +94,8 @@
 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
Index: linux64.h
===================================================================
--- linux64.h   (revision 145000)
+++ linux64.h   (working copy)
@@ -152,7 +152,7 @@
 
 #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} \
Index: sysv4.h
===================================================================
--- sysv4.h     (revision 145000)
+++ sysv4.h     (working copy)
@@ -588,7 +588,7 @@
 %{,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 |                 \



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]