This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]