diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2011-09-19 19:36:33 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2011-09-19 19:36:33 +0000 |
commit | 368494d9bd4c255e72b04b9c90bc403c9b5bf4fd (patch) | |
tree | b68db332e695d694cf2320cd1a4627dde957e11a /gnu/usr.bin/gcc | |
parent | aeb814d00078a6e67d00a9365904404a8a00bea2 (diff) |
- enable thread model posix for gcc 3 which makes dwarf2 exception
handling thread safe and enables thread safety for libstdc++
- bump libstdc++ major
See faq/current.html for instructions on how to correctly build
userland for this change.
originally from kurt@, ok miod@
Diffstat (limited to 'gnu/usr.bin/gcc')
-rw-r--r-- | gnu/usr.bin/gcc/Makefile.bsd-wrapper | 3 | ||||
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/openbsd.h | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/gnu/usr.bin/gcc/Makefile.bsd-wrapper b/gnu/usr.bin/gcc/Makefile.bsd-wrapper index c9bbda6ba40..9a65242b070 100644 --- a/gnu/usr.bin/gcc/Makefile.bsd-wrapper +++ b/gnu/usr.bin/gcc/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.60 2010/05/25 00:24:58 espie Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.61 2011/09/19 19:36:32 naddy Exp $ MAN= gcc.1 cpp.1 gcov.1 protoize.1 MLINKS+= protoize.1 unprotoize.1 @@ -105,6 +105,7 @@ config.status: gcc/Makefile.in gcc/configure gcc/c-parse.in ${LANGUAGES} --enable-cpp --disable-nls \ --with-gxx-include-dir=${GXX_INCDIR} \ --enable-__cxa_atexit \ + --enable-threads=posix \ ${CONFIGTARGET} ${GCCARCH} && touch config.status .ifdef NOMAN diff --git a/gnu/usr.bin/gcc/gcc/config/openbsd.h b/gnu/usr.bin/gcc/gcc/config/openbsd.h index f3ef4f92f5e..0f62f77677d 100644 --- a/gnu/usr.bin/gcc/gcc/config/openbsd.h +++ b/gnu/usr.bin/gcc/gcc/config/openbsd.h @@ -323,10 +323,6 @@ do { \ /* Storage layout. */ -/* Otherwise, since we support weak, gthr.h erroneously tries to use - #pragma weak. */ -#define GTHREAD_USE_WEAK 0 - /* bug work around: we don't want to support #pragma weak, but the current code layout needs HANDLE_PRAGMA_WEAK asserted for __attribute((weak)) to work. On the other hand, we don't define HANDLE_PRAGMA_WEAK directly, |