From owner-freebsd-current@FreeBSD.ORG Wed Sep 24 15:43:10 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28A7F16A4BF; Wed, 24 Sep 2003 15:43:10 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66C4043F93; Wed, 24 Sep 2003 15:43:07 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9p1/8.12.3) with ESMTP id h8OMh6GA091133; Wed, 24 Sep 2003 16:43:06 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 24 Sep 2003 16:43:05 -0600 (MDT) Message-Id: <20030924.164305.34703597.imp@bsdimp.com> To: deischen@freebsd.org, current@freebsd.org From: "M. Warner Losh" In-Reply-To: References: <20030924171949.GA90989@wombat.localnet> X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: FYI: gcc 3.4 has -pthread accross the board X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2003 22:43:10 -0000 In message: Daniel Eischen writes: : I plan on changing thread library compatibility for FreeBSD : 6.0, though. So it might be wise just to add a different : compiler switch for libthr or libc_r. FYI: gcc 3.4 will have -pthread accross the board to mean "use whatever the right threading package/library/etc for your system is." It would be unwise of us to deviate substantially from that. The changelog also suggests that the right #defines for your system will be added when -pthread is specified on the command line for compiles (as opposed to linking). Peace, Warner P.S. Samples from http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog: Wed Sep 17 14:04:38 2003 UTC (7 days, 8 hours ago) by drow * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply to shared libraries. Tue Aug 26 06:54:11 2003 UTC (4 weeks, 1 day ago) by zack gcc: * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove commented-out logic to use DCE threads (if present), add support for POSIX threads. * config/ia64/hpux.h: Define CPP_SPEC to set appropriate #defines for -pthread. Add -lpthread to LIB_SPEC when -pthread. In both cases take -mt as a synonym for -pthread for acc compatibility. Define GTHREAD_USE_WEAK to 0. * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC. Remove old logic for DCE threads from LIB_SPEC. * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0. libstdc++-v3: * config/os/hpux/os_defines.h: Unconditionally define _GLIBCXX_GTHREAD_USE_WEAK to 0. Sun Aug 3 00:48:46 2003 UTC (7 weeks, 3 days ago) by kkojima * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath. (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee when -mieee-fp set and -shared not set. (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5. Thu Jul 31 12:00:54 2003 UTC (7 weeks, 6 days ago) by ro * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by default. * gthr-posix.c: New file. * gthr-posix.h: Define _REENTRANT if missing. Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK. * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided by gthr-posix.o. * config/alpha/t-osf-pthread: New file. * fixinc/inclhack.def (alpha_pthread): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase. * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads warning. Fixes PR bootstrap/9330. Fri Feb 28 19:05:20 2003 UTC (6 months, 3 weeks ago) by thorpej * config/netbsd.h: Update copyright years. (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if -pthread is specified on the command line. Tue Dec 10 10:55:22 2002 UTC (9 months, 2 weeks ago) by jakub * config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if -shared. * config/alpha/linux-elf.h (LIB_SPEC): Likewise. * config/alpha/linux.h (LIB_SPEC): Likewise. * config/arm/linux-elf.h (LIB_SPEC): Likewise. * config/pa/pa-linux.h (LIB_SPEC): Likewise. * config/sparc/linux.h (LIB_SPEC): Likewise. * config/sparc/linux64.h (LIB_SPEC): Likewise. Mon Oct 28 17:20:31 2002 UTC (10 months, 3 weeks ago) by thorpej * config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to tm_defines if pthreads are enabled. * config/netbsd.h (LIB_SPEC): Only support the -pthread option if NETBSD_ENABLE_PTHREADS is defined. Sun Sep 15 18:14:15 2002 UTC (12 months, 1 week ago) by thorpej * config/netbsd.h (LIB_SPEC): Include the appropriate pthread library if -pthread is specified.