From patchwork Mon Aug 4 11:03:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 376243 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 825F5140077 for ; Mon, 4 Aug 2014 21:03:45 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=DYuz3KcNEVGVcvi+CRkNj9j79IK/C/NPDNwiSLj0t/A Iipuam26RWRxWmSfvwS8peQbY5P1MSpSwub1vamNCfvEE8nMdxoAmcVIVwgYUUjL eR6dyjzrz9xK4c/0PY0ZSipHOSnHjgA3oblaMcF1gb7A+jEDL87SZExesWWbyrOk = 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 :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=eRDy4gUT8G06Bq6l6ZBQSiIUvB0=; b=lNrE6b0OwdYc9tmXA LZno7fzmzORt3MAZ/RS22Po3yfJvUbMBiB203mZIPvivIkiuun7feN/u6pShmNLt e/2dlbijODUACFdvJ5/1UtkBsTB/1Fg3cnUR6Wa1JDjpDK+K1Daus6beodTlM055 FVTfERznnqfY4kKQDRdfy4uJPw= Received: (qmail 22022 invoked by alias); 4 Aug 2014 11:03:39 -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 22006 invoked by uid 89); 4 Aug 2014 11:03:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f170.google.com Received: from mail-ie0-f170.google.com (HELO mail-ie0-f170.google.com) (209.85.223.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 04 Aug 2014 11:03:35 +0000 Received: by mail-ie0-f170.google.com with SMTP id rl12so9707728iec.29 for ; Mon, 04 Aug 2014 04:03:33 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.50.175 with SMTP id d15mr35211517igo.35.1407150213678; Mon, 04 Aug 2014 04:03:33 -0700 (PDT) Received: by 10.64.20.193 with HTTP; Mon, 4 Aug 2014 04:03:33 -0700 (PDT) Date: Mon, 4 Aug 2014 13:03:33 +0200 Message-ID: Subject: {patch cp]: Disable hidden-inlines for pe-coff targets From: Kai Tietz To: GCC Patches Cc: Jason Merrill X-IsSubscribed: yes Hi, This patch makes sure that visibility-option for hidden-inlines doesn't show any effect for pe-coff as for those targets no concept of hidden-visiblitly isn't present. ChangeLog 2014-08-04 Kai Tietz * decl2.c (determine_hidden_inline): Always fail for PE-COFF as there is no hidden visibility available. Tested for x86_64-w64-mingw32, i686-w64-mingw32, and i686-pc-cygwin. Ok for apply? Regards, Kai Index: decl2.c =================================================================== --- decl2.c (Revision 213543) +++ decl2.c (Arbeitskopie) @@ -2447,6 +2447,9 @@ determine_hidden_inline (tree decl) { return (visibility_options.inlines_hidden +#ifdef TARGET_PECOFF + && !TARGET_PECOFF +#endif /* Don't do this for inline templates; specializations might not be inline, and we don't want them to inherit the hidden visibility. We'll set it here for all inline instantiations. */