This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Add threads support for darwin-ppc/i386
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Stan Shebs <shebs at apple dot com>
- Date: Mon, 16 Sep 2002 19:45:16 +0200
- Subject: [PATCH] Add threads support for darwin-ppc/i386
This patch adds support for threads on darwin-ppc and darwin-i386.
Bootstrapped on darwin-ppc.
Pre-approved by Stan.
Andreas
2002-09-16 Andreas Tobler <a.tobler@schweiz.ch>
* config.gcc (i[34567]86-*-darwin* and powerpc-*-darwin*):
Set thread_file to 'posix' for --enable-threads=yes and
--enable-threads=posix.
--- gcc/gcc/config.gcc.orig Mon Sep 16 19:35:41 2002
+++ gcc/gcc/config.gcc Mon Sep 16 19:37:25 2002
@@ -988,6 +988,10 @@
extra_parts="crtbegin.o crtend.o"
# Darwin linker does collect2 functionality
use_collect2=no
+ case x${enable_threads} in
+ x | xyes | xposix) thread_file='posix'
+ ;;
+ esac
;;
i[34567]86-*-elf*)
xm_defines=POSIX
@@ -1960,6 +1964,10 @@
# Darwin linker does collect2 functionality
use_collect2=no
extra_headers=altivec.h
+ case x${enable_threads} in
+ x | xyes | xposix) thread_file='posix'
+ ;;
+ esac
;;
powerpc*-*-freebsd*)
tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file}
rs6000/sysv4.h rs6000/freebsd.h"