From: Geoffrey Keating Date: Tue, 6 Dec 2005 20:06:35 +0000 (+0000) Subject: * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New. X-Git-Tag: releases/gcc-4.2.0~5542 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e1700983bb2984bc5ad215ca46df7ad13d256f7;p=thirdparty%2Fgcc.git * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New. From-SVN: r108128 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea51aa210628..61970e69f79f 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 a78d1d33b075..48bf0790fcca 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