From 9e1700983bb2984bc5ad215ca46df7ad13d256f7 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 6 Dec 2005 20:06:35 +0000 Subject: [PATCH] * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New. From-SVN: r108128 --- gcc/ChangeLog | 4 ++++ gcc/config/darwin.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea51aa2..61970e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-12-06 Geoffrey Keating + + * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New. + 2005-12-06 Aldy Hernandez PR C++/24138 diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index a78d1d3..48bf079 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -419,6 +419,10 @@ Boston, MA 02110-1301, USA. */ #undef TARGET_WEAK_NOT_IN_ARCHIVE_TOC #define TARGET_WEAK_NOT_IN_ARCHIVE_TOC 1 +/* On Darwin, we don't (at the time of writing) have linkonce sections + with names, so it's safe to make the class data not comdat. */ +#define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_false + /* We make exception information linkonce. */ #undef TARGET_USES_WEAK_UNWIND_INFO #define TARGET_USES_WEAK_UNWIND_INFO 1 -- 2.7.4