summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/config/openbsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/config/openbsd.h')
-rw-r--r--contrib/gcc/config/openbsd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/gcc/config/openbsd.h b/contrib/gcc/config/openbsd.h
index af8358e..30f2494 100644
--- a/contrib/gcc/config/openbsd.h
+++ b/contrib/gcc/config/openbsd.h
@@ -300,3 +300,9 @@ do { \
#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,
+ as this depends on a few other details as well... */
+#define HANDLE_SYSV_PRAGMA
+
OpenPOWER on IntegriCloud