In message: <Pine.GSO.4.10.10309241626140.7454-100000_at_pcnet5.pcnet.com> Daniel Eischen <eischen_at_vigrid.com> 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.Received on Wed Sep 24 2003 - 13:43:10 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:23 UTC