public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Jason Merrill <jason@redhat.com>
Cc: Andreas Schwab <schwab@suse.de>,
	       gcc-patches List <gcc-patches@gcc.gnu.org>
Subject: [PATCH] Fix C++ PATCH for C++14 sized deallocation
Date: Tue, 16 Dec 2014 17:19:00 -0000	[thread overview]
Message-ID: <20141216171103.GI1667@tucnak.redhat.com> (raw)
In-Reply-To: <20141216165404.GH1667@tucnak.redhat.com>

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  <jakub@redhat.com>

	* 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.

--- 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;
 


	Jakub

  reply	other threads:[~2014-12-16 17:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-15 18:31 Jason Merrill
2014-12-16 10:17 ` Andreas Schwab
2014-12-16 15:53   ` Jason Merrill
2014-12-16 16:54     ` Andreas Schwab
2014-12-16 17:11     ` Jakub Jelinek
2014-12-16 17:19       ` Jakub Jelinek [this message]
2014-12-16 17:49         ` [PATCH] Fix " Jason Merrill
2015-10-30 19:41 ` Jason Merrill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141216171103.GI1667@tucnak.redhat.com \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).