aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2004-04-27 23:07:52 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2004-04-27 23:07:52 +0000
commit2f70eed18e149dc3cd03ebcc8f69e9fe04743d30 (patch)
treec90d5df611dfdd246b9bc8bc8fe732c4839478ff /gcc
parentf1dfe7049d4c81118be3e7e53c007cce8be81021 (diff)
downloadgcc-2f70eed18e149dc3cd03ebcc8f69e9fe04743d30.zip
gcc-2f70eed18e149dc3cd03ebcc8f69e9fe04743d30.tar.gz
gcc-2f70eed18e149dc3cd03ebcc8f69e9fe04743d30.tar.bz2
darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
* config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o. * config/darwin-crt2.c: Only have contents on __ppc__. From-SVN: r81230
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/darwin-crt2.c9
-rw-r--r--gcc/config/darwin.h4
3 files changed, 15 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b72cf39..4293672 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-27 Geoffrey Keating <geoffk@apple.com>
+
+ * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
+ * config/darwin-crt2.c: Only have contents on __ppc__.
+
2004-04-27 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.c (call_insn_operand): Check
diff --git a/gcc/config/darwin-crt2.c b/gcc/config/darwin-crt2.c
index 1ea2413..e225279 100644
--- a/gcc/config/darwin-crt2.c
+++ b/gcc/config/darwin-crt2.c
@@ -1,5 +1,5 @@
/* KeyMgr backwards-compatibility support for Darwin.
- Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GCC.
@@ -34,6 +34,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "tconfig.h"
#include "tsystem.h"
+/* This file doesn't do anything useful on non-powerpc targets, since they
+ don't have backwards compatibility anyway. */
+
+#ifdef __ppc__
+
/* Homemade decls substituting for getsect.h and dyld.h, so cross
compilation works. */
struct mach_header;
@@ -149,3 +154,5 @@ __darwin_gcc3_preregister_frame_info (void)
_dyld_register_func_for_add_image (darwin_unwind_dyld_add_image_hook);
_dyld_register_func_for_remove_image (darwin_unwind_dyld_remove_image_hook);
}
+
+#endif /* __ppc__ */
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 28b58a5..de8d0c4 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -289,11 +289,11 @@ Boston, MA 02111-1307, USA. */
%{!Zbundle:%{pg:%{static:-lgcrt0.o} \
%{!static:%{object:-lgcrt0.o} \
%{!object:%{preload:-lgcrt0.o} \
- %{!preload:-lgcrt1.o -lcrt2.o}}}} \
+ %{!preload:-lgcrt1.o crt2.o%s}}}} \
%{!pg:%{static:-lcrt0.o} \
%{!static:%{object:-lcrt0.o} \
%{!object:%{preload:-lcrt0.o} \
- %{!preload:-lcrt1.o -lcrt2.o}}}}}}"
+ %{!preload:-lcrt1.o crt2.o%s}}}}}}"
/* The native Darwin linker doesn't necessarily place files in the order
that they're specified on the link line. Thus, it is pointless