From patchwork Tue Dec 16 17:11:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 421998 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 7FACE1400E9 for ; Wed, 17 Dec 2014 04:11:20 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=LugnxA55FOChkxNff f596tZhix6XTZbE6jeqHL2sf0ZsaVUQfIASoS0+UKnmOtxKleVg538OUGO95C7wj iMN2Tb2d0Fr3U5goFJhIliidhDQY9zQyN4N80VPbldSt7v2YoP39kxydl7m4NkdC Qzsa0ekWIVjZwQRCZj4gK1/GxE= 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:date :from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; s=default; bh=Vu7wpFhCCJnKbHDoFlqlfLF vwU0=; b=LRRSyvdiMAh1zjtm4kFzrKmeX5RRItRJtCN544kBA42GKpzmxjQlHBI S71vD5ZN7r/Cf9dFnFv0zQqEJk4LBWTK4c74so46m6VRy9ogwaNU2gI1mMnR3jXT 2QG1D5jxVWF4IaitUuHzPj2mQZ8r97HkxFwuL/ya1CaWTYE8wHOo= Received: (qmail 5528 invoked by alias); 16 Dec 2014 17:11:12 -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 5518 invoked by uid 89); 16 Dec 2014 17:11:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 16 Dec 2014 17:11:10 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBGHB7ev025586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 16 Dec 2014 12:11:08 -0500 Received: from tucnak.zalov.cz (ovpn-116-64.ams2.redhat.com [10.36.116.64]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBGHB6O7023415 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 16 Dec 2014 12:11:07 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id sBGHB45X022317; Tue, 16 Dec 2014 18:11:05 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id sBGHB3lb022314; Tue, 16 Dec 2014 18:11:03 +0100 Date: Tue, 16 Dec 2014 18:11:03 +0100 From: Jakub Jelinek To: Jason Merrill Cc: Andreas Schwab , gcc-patches List Subject: [PATCH] Fix C++ PATCH for C++14 sized deallocation Message-ID: <20141216171103.GI1667@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <548F28D2.5090505@redhat.com> <54904CDA.9060002@redhat.com> <20141216165404.GH1667@tucnak.redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20141216165404.GH1667@tucnak.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes On Tue, Dec 16, 2014 at 05:54:04PM +0100, Jakub Jelinek wrote: > On Tue, Dec 16, 2014 at 10:16:42AM -0500, Jason Merrill wrote: > > On 12/16/2014 05:09 AM, Andreas Schwab wrote: > > >covariant4.C:(.text._ZN5ModelD2Ev[_ZN5ModelD5Ev]+0x1e): undefined reference to `operator delete(void*, unsigned int)'. > > > > Can you determine why this reference isn't being satisfied by libstdc++? > > Note it fails on i686-linux (and x86_64-linux with -m32) too: > http://gcc.gnu.org/ml/gcc-testresults/2014-12/msg02036.html So something like (untested)? [jmy] is e.g. what is used for operator new... 2014-12-16 Jakub Jelinek * config/abi/pre/gnu.ver (CXXABI_1.3.9): Export not just _Zd[la]Pvm, but also _Zd[la]Pv[jy] to cover other std::size_t manglings. Jakub --- libstdc++-v3/config/abi/pre/gnu.ver 2014-12-16 15:03:03.183517188 +0100 +++ libstdc++-v3/config/abi/pre/gnu.ver 2014-12-16 18:08:22.527440407 +0100 @@ -1734,9 +1734,9 @@ CXXABI_1.3.9 { _ZTSPK[no]; # operator delete(void*, std::size_t) - _ZdlPvm; + _ZdlPv[jmy]; # operator delete[](void*, std::size_t) - _ZdaPvm; + _ZdaPv[jmy]; } CXXABI_1.3.8;