aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2002-09-21 20:20:55 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2002-09-21 20:20:55 +0000
commit330cc6c7b82eb339ca4af2f7fd10918bb705f69d (patch)
tree3c39948431e3d95996b31c87c854a5acb24dd2c3
parent9ee4fa2995fedb01717927458aed0751b82cd7b2 (diff)
downloadgcc-330cc6c7b82eb339ca4af2f7fd10918bb705f69d.zip
gcc-330cc6c7b82eb339ca4af2f7fd10918bb705f69d.tar.gz
gcc-330cc6c7b82eb339ca4af2f7fd10918bb705f69d.tar.bz2
netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of LINK_SPEC.
* netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of LINK_SPEC. (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT. * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT. (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT). From-SVN: r57397
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/arm/netbsd.h8
-rw-r--r--gcc/config/netbsd-aout.h7
3 files changed, 16 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 694dec1..9299224 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2002-09-21 Richard Earnshaw <rearnsha@arm.com>
+ * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
+ LINK_SPEC.
+ (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
+ * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
+ (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
+
+2002-09-21 Richard Earnshaw <rearnsha@arm.com>
+
PR opt/7930
* cse.c (fold_rtx): Calculate old_cost before we fold each
operand.
diff --git a/gcc/config/arm/netbsd.h b/gcc/config/arm/netbsd.h
index ac6da05..765bfb5 100644
--- a/gcc/config/arm/netbsd.h
+++ b/gcc/config/arm/netbsd.h
@@ -54,7 +54,8 @@ Boston, MA 02111-1307, USA. */
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
- { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
+ { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \
+ { "netbsd_link_spec", NETBSD_LINK_SPEC_AOUT },
#undef CPP_SPEC
#define CPP_SPEC "\
@@ -71,10 +72,7 @@ Boston, MA 02111-1307, USA. */
/* Pass -X to the linker so that it will strip symbols starting with 'L' */
#undef LINK_SPEC
-#define LINK_SPEC "\
--X %{!shared:%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{R*} \
-%{static:-Bstatic}} %{shared} %{assert*} \
-"
+#define LINK_SPEC "-X %(netbsd_link_spec)"
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
diff --git a/gcc/config/netbsd-aout.h b/gcc/config/netbsd-aout.h
index d8ab4a4..6afcfd9 100644
--- a/gcc/config/netbsd-aout.h
+++ b/gcc/config/netbsd-aout.h
@@ -58,8 +58,8 @@ Boston, MA 02111-1307, USA. */
/* Provide a LINK_SPEC appropriate for NetBSD a.out. Here we provide
support for the special GCC options -static, -assert, and -nostdlib. */
-#undef LINK_SPEC
-#define LINK_SPEC \
+#undef NETBSD_LINK_SPEC_AOUT
+#define NETBSD_LINK_SPEC_AOUT \
"%{nostdlib:-nostdlib} \
%{!shared: \
%{!nostdlib: \
@@ -71,6 +71,9 @@ Boston, MA 02111-1307, USA. */
%{R*} \
%{assert*}"
+/* Default LINK_SPEC. */
+#undef LINK_SPEC
+#define LINK_SPEC NETBSD_LINK_SPEC_AOUT
/* Some imports from svr4.h in support of shared libraries. */