aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2011-02-06 18:23:06 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2011-02-06 18:23:06 +0000
commit295d926b52847a5f50c10d1f7b5a2fc35643f2e5 (patch)
tree2482b7064133a96ff5871c26c68ab8f7cd4c78a1
parentbdeb247159f3f7d26e25f666735d2593b3e3c488 (diff)
downloadgcc-295d926b52847a5f50c10d1f7b5a2fc35643f2e5.zip
gcc-295d926b52847a5f50c10d1f7b5a2fc35643f2e5.tar.gz
gcc-295d926b52847a5f50c10d1f7b5a2fc35643f2e5.tar.bz2
freebsd.h (ASM_SPEC): Define.
* config/sparc/freebsd.h (ASM_SPEC): Define. * config/sparc/vxworks.h (ASM_SPEC): Define. From-SVN: r169867
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/freebsd.h5
-rw-r--r--gcc/config/sparc/vxworks.h5
3 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cbc3ed2..b938063 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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:}.
2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
diff --git a/gcc/config/sparc/freebsd.h b/gcc/config/sparc/freebsd.h
index 417357f..f2fb65e 100644
--- a/gcc/config/sparc/freebsd.h
+++ b/gcc/config/sparc/freebsd.h
@@ -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)} \
diff --git a/gcc/config/sparc/vxworks.h b/gcc/config/sparc/vxworks.h
index 4d971a4..e1b596e 100644
--- a/gcc/config/sparc/vxworks.h
+++ b/gcc/config/sparc/vxworks.h
@@ -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