From patchwork Thu Feb 23 14:29:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 142639 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]) by ozlabs.org (Postfix) with SMTP id A6129B6EEE for ; Fri, 24 Feb 2012 01:29:57 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1330612199; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=Wa9OovDFnnuylNow24Eq jtiF8j0=; b=W6TykZb75ZMAo0Y7wFU21g15EV6cltdxkdIV5sAONjpPTrl0V2bu TnlyrusQwYWe3yyQe1Wp+fjJB87+s7pjbXDTYxK+yoJXS79z9QcR5V4ihAqcqS+G nHGXuSRry3rPlOOAso95mr25JxpC/x/smkM/40GXLu5uIwJg2MXRTMA= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Date:From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=ELcUbcrOF3xKrTf5i+Y9aX9iipaRaT+i/HmyJGWXtsoP9KE1+epf2pm0j0RPZ8 fkjGxd2jDZ2EoHg7wHz1AuIui8cZrhG7xpId5zKFEQkU28BJrPJew1tcWu27BYOC Q27ARWJ1uW34rL5AOWsE0dv1e2DmMFNiSuAxscL8JXbi8=; Received: (qmail 13955 invoked by alias); 23 Feb 2012 14:29:52 -0000 Received: (qmail 13946 invoked by uid 22791); 23 Feb 2012 14:29:52 -0000 X-SWARE-Spam-Status: No, hits=-5.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, T_FILL_THIS_FORM_SHORT, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Feb 2012 14:29:39 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id C29F691C69 for ; Thu, 23 Feb 2012 15:29:37 +0100 (CET) Date: Thu, 23 Feb 2012 15:29:37 +0100 (CET) From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR52349 Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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 Approved in the PR, tested by Jakub, applied. Richard. 2012-02-23 Richard Guenther go/ * go-gcc.cc (Gcc_backend::placeholder_pointer_type): Use build_distinct_type_copy. Index: go-gcc.cc =================================================================== --- go-gcc.cc (revision 184506) +++ go-gcc.cc (working copy) @@ -602,7 +602,7 @@ Btype* Gcc_backend::placeholder_pointer_type(const std::string& name, Location location, bool) { - tree ret = build_variant_type_copy(ptr_type_node); + tree ret = build_distinct_type_copy(ptr_type_node); if (!name.empty()) { tree decl = build_decl(location.gcc_location(), TYPE_DECL,