summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2009-08-21 02:53:02 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2009-08-21 02:53:02 +0000
commit88e52df9d34675e2db3be82a048fdfb505a132ac (patch)
tree14f2f16ab42028c2b5cb239f97878f6800392a7a
parent72dba3022936930984a8258d57e43f0e347e434b (diff)
Enable one only declarations on hppa/hppa64 which corrects
weak reference support in c++. okay kettenis@
-rw-r--r--gnu/usr.bin/gcc/gcc/config/pa/openbsd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h b/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h
index 38f88880543..411e1b2bc43 100644
--- a/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h
+++ b/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h
@@ -34,6 +34,9 @@ Boston, MA 02111-1307, USA. */
#undef TARGET_SCHED_DEFAULT
#define TARGET_SCHED_DEFAULT "700"
+/* Use weak (secondary definitions) to make one only declarations. */
+#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
+
/* libc's profiling functions don't need gcc to allocate counters. */
#define NO_PROFILE_COUNTERS 1