]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/sparc/freebsd.h (ASM_SPEC): Define.
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Feb 2011 18:23:06 +0000 (18:23 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Feb 2011 18:23:06 +0000 (18:23 +0000)
* config/sparc/vxworks.h (ASM_SPEC): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169867 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/freebsd.h
gcc/config/sparc/vxworks.h

index cbc3ed2b1f345d1348a0f59f1d48e7646d9aa916..b9380632e0d31b7e4143b9b974e6acadfd24322e 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-06  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/sparc/freebsd.h (ASM_SPEC): Define.
+       * config/sparc/vxworks.h (ASM_SPEC): Define.
+
 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
 
        * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
index 417357f13fa658ad5abc8f594364a783dc3554fb..f2fb65e33fbaaf97e1db4039e758b19f920611f4 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for Sun SPARC64 running FreeBSD using the ELF format
-   Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2010
+   Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2010, 2011
    Free Software Foundation, Inc.
    Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
 
@@ -30,6 +30,9 @@ along with GCC; see the file COPYING3.  If not see
 #define CPP_CPU64_DEFAULT_SPEC \
   "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
 
+#undef ASM_SPEC
+#define ASM_SPEC "%{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu)"
+
 #define LINK_SPEC "%(link_arch)                                                \
   %{!mno-relax:%{!r:-relax}}                                           \
   %{p:%nconsider using '-pg' instead of '-p' with gprof(1)}            \
index 4d971a4bbc8e3b3ec8c80da0d2fea0ebb1e5e58e..e1b596e7f79803a8d59f78b8ad0c2610fc4592ac 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions of target machine for GNU compiler,
    for SPARC targeting the VxWorks run time environment.
-   Copyright (C) 2007, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -33,6 +33,9 @@ along with GCC; see the file COPYING3.  If not see
 #undef CPP_SUBTARGET_SPEC
 #define CPP_SUBTARGET_SPEC VXWORKS_ADDITIONAL_CPP_SPEC
 
+#undef ASM_SPEC
+#define ASM_SPEC "%{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu)"
+
 #undef LIB_SPEC
 #define LIB_SPEC VXWORKS_LIB_SPEC
 #undef LINK_SPEC