linux.h (ASM_SPEC): Add asm_pcrel_spec.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 22 May 2007 06:55:27 +0000 (06:55 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 22 May 2007 06:55:27 +0000 (06:55 +0000)
* config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
* config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
* config/m68k/m68k.h (ASM_PCREL_SPEC): New.
(ASM_SPEC): Add asm_pcrel_spec.
(EXTRA_SPECS): Add asm_pcrel_spec.

From-SVN: r124937

gcc/ChangeLog
gcc/config/m68k/linux.h
gcc/config/m68k/m68k-none.h
gcc/config/m68k/m68k.h

index 88f685c..d390d08 100644 (file)
@@ -1,3 +1,11 @@
+2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
+       * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
+       * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
+       (ASM_SPEC): Add asm_pcrel_spec.
+       (EXTRA_SPECS): Add asm_pcrel_spec.
+
 2007-05-21  David Daney  <ddaney@avtrex.com>
 
        * doc/install.texi (Building a cross compiler): Add requirements
index 31d0a58..5338996 100644 (file)
@@ -25,8 +25,8 @@ Boston, MA 02110-1301, USA.  */
 
 /* Add %(asm_cpu_spec) to the svr4.h definition of ASM_SPEC.  */
 #undef ASM_SPEC
-#define ASM_SPEC \
-  "%(asm_cpu_spec) %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*}"
+#define ASM_SPEC "%(asm_cpu_spec) %(asm_pcrel_spec) \
+  %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*}"
 
 /* for 68k machines this only needs to be TRUE for the 68000 */
 
index 15ad022..c0d6421 100644 (file)
@@ -18,6 +18,3 @@ along with GCC; see the file COPYING.  If not, write to
 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
-#undef ASM_SPEC
-#define ASM_SPEC "%(asm_cpu_spec) %{fPIC:--pcrel} %{fpic:--pcrel} \
- %{msep-data:--pcrel} %{mid-shared-library:--pcrel}"
index 1b19b4c..6591380 100644 (file)
@@ -48,11 +48,15 @@ Boston, MA 02110-1301, USA.  */
 %{m68060}%{mcpu32}%{m68332}%{m5200}%{m5206e}%{m528x}%{m5307}%{m5407}%{mcfv4e}\
 %{mcpu=*:-mcpu=%*}%{march=*:-march=%*}\
 "
+#define ASM_PCREL_SPEC "%{fPIC|fpic|mpcrel:--pcrel} \
+ %{msep-data|mid-shared-library:--pcrel} \
+"
 
-#define ASM_SPEC "%(asm_cpu_spec)"
+#define ASM_SPEC "%(asm_cpu_spec) %(asm_pcrel_spec)"
 
 #define EXTRA_SPECS                                    \
   { "asm_cpu_spec", ASM_CPU_SPEC },                    \
+  { "asm_pcrel_spec", ASM_PCREL_SPEC },                        \
   SUBTARGET_EXTRA_SPECS
 
 #define SUBTARGET_EXTRA_SPECS