diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-27 23:07:52 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-27 23:07:52 +0000 |
commit | 0a80d4985d6c1f430e8a845750f8836657b2febf (patch) | |
tree | c90d5df611dfdd246b9bc8bc8fe732c4839478ff /gcc/config/darwin-crt2.c | |
parent | a92261c7720403543421de388244c04922c40a36 (diff) | |
download | gcc-0a80d4985d6c1f430e8a845750f8836657b2febf.tar.gz |
* config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
* config/darwin-crt2.c: Only have contents on __ppc__.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81230 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin-crt2.c')
-rw-r--r-- | gcc/config/darwin-crt2.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/darwin-crt2.c b/gcc/config/darwin-crt2.c index 1ea2413c809..e225279bfa5 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__ */ |