From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4847 invoked by alias); 13 Jun 2006 19:37:32 -0000 Received: (qmail 4834 invoked by uid 48); 13 Jun 2006 19:37:25 -0000 Date: Tue, 13 Jun 2006 19:39:00 -0000 Message-ID: <20060613193725.4833.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/28017] lack of guard variables for explicitly instantiated template static data In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg01309.txt.bz2 List-Id: ------- Comment #4 from pinskia at gcc dot gnu dot org 2006-06-13 19:37 ------- For Darwin we do not want explicit instantiations to be linkonce. */ This is why this testcase fails on darwin. We should instead of just adding DECL_EXPLICIT_INSTANTIATION, check TARGET_WEAK_NOT_IN_ARCHIVE_TOC. (!TARGET_WEAK_NOT_IN_ARCHIVE_TOC || (! DECL_EXPLICIT_INSTANTIATION (decl) && ! DECL_TEMPLATE_SPECIALIZATION (decl))) This is a darwin only issue. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-06-13 19:37:25 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28017