]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
darwin-crt3.c: Avoid compilation when compiling for a kext multilib.
authorMike Stump <mrs@apple.com>
Tue, 27 Feb 2007 20:47:55 +0000 (20:47 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Tue, 27 Feb 2007 20:47:55 +0000 (20:47 +0000)
* config/darwin-crt3.c: Avoid compilation when compiling for a
kext multilib.

From-SVN: r122385

gcc/ChangeLog
gcc/config/darwin-crt3.c

index e154b5c128e61f064687497d3e03fd14c9479d75..31a40de2e784e1fa11d60d33231058f62548c1a0 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-27  Mike Stump  <mrs@apple.com>
+
+       * config/darwin-crt3.c: Avoid compilation when compiling for a
+       kext multilib.
+
 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
 
        * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
index 65b766369eeb7c24ecf30388e060a532d2b0ecd4..ac5e0398f58abe415014f83ad0e76be579a0e347 100644 (file)
@@ -27,6 +27,9 @@ along with GCC; see the file COPYING.  If not, write to the Free
 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301, USA.  */
 
+/* Don't do anything if we are compiling for a kext multilib. */
+#ifdef __PIC__
+
 /* It is incorrect to include config.h here, because this file is being
    compiled for the target, and hence definitions concerning only the host
    do not apply.  */
@@ -530,3 +533,5 @@ atexit (atexit_callback func)
   r.has_arg = 0;
   return atexit_common (&r, &__dso_handle);
 }
+
+#endif /* __PIC__ */