From patchwork Wed Jul 8 16:37:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 493060 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1BC3E14029E for ; Thu, 9 Jul 2015 02:38:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=WoR9FTHm; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; q=dns; s=default; b=jmMWKpXKoq+nwbsBdRGj8S/A50 hW5l+JishZdpB6F1D9bsdowHv6QETtTbBxy5m/ZI3/XSHjVxqucJaJBGpg1hadaF P5I0pFfrvEIYBBRTHLwe660nbihrAckK3z3KRncZAUxg+j3tSIMic4W7FTDVPmCv eGsXJ/35ORBsAzVwc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; s=default; bh=UUi0O5cHEz8YFcMWaEQf47pMyKw=; b= WoR9FTHmigP/fsKjRfRUO2h96YIhxbZmEUqjySOEOcIbirSak+hHCbvCOhGF1d+4 d2ZhmvzeLUcovTSr7OeWAuLF7zkAfl+XxegC47SScsc+U2BR126GK9nSE41chYdS pv8KQ3NN+Q0yDBxlVhk/26M8lFG8KdIAFn6eVsUx4Sk= Received: (qmail 83167 invoked by alias); 8 Jul 2015 16:38:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 82654 invoked by uid 89); 8 Jul 2015 16:38:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-HELO: resqmta-po-08v.sys.comcast.net Received: from resqmta-po-08v.sys.comcast.net (HELO resqmta-po-08v.sys.comcast.net) (96.114.154.167) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 08 Jul 2015 16:38:04 +0000 Received: from resomta-po-03v.sys.comcast.net ([96.114.154.227]) by resqmta-po-08v.sys.comcast.net with comcast id psdw1q0064ueUHc01se2FS; Wed, 08 Jul 2015 16:38:02 +0000 Received: from [IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d] ([IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d]) by resomta-po-03v.sys.comcast.net with comcast id psdz1q00F2ztT3H01se0QG; Wed, 08 Jul 2015 16:38:02 +0000 From: Mike Stump Subject: darwin fix for gcc-5 (RM please) Message-Id: <80F77357-B26B-4E02-8042-43F9039E8FCE@comcast.net> Date: Wed, 8 Jul 2015 09:37:33 -0700 To: GCC Patches Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-IsSubscribed: yes I’d like to merge in the fix from https://gcc.gnu.org/PR66523 into the gcc-5-branch. RM Ok? https://gcc.gnu.org/bugzilla/attachment.cgi?id=35773: diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 40804b8..0080299 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1259,6 +1259,11 @@ darwin_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED) void darwin_mark_decl_preserved (const char *name) { + /* Actually we shouldn't mark any local symbol this way, but for now + this only happens with ObjC meta-data. */ + if (darwin_label_is_anonymous_local_objc_name (name)) + return; + fprintf (asm_out_file, "\t.no_dead_strip "); assemble_name (asm_out_file, name); fputc ('\n', asm_out_file);