https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98130

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:78c4a9feceaccf487516aa1eff417e0741556e10

commit r11-5748-g78c4a9feceaccf487516aa1eff417e0741556e10
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Dec 4 19:10:56 2020 +0100

    gimple: Return fnspec only for replaceable new/delete operators called from
new/delete [PR98130]

    As mentioned in the PR, we shouldn't treat non-replaceable operator
    new/delete (e.g. with the placement new) as replaceable ones.

    There is some pending discussion that perhaps operator delete called from
    delete if not replaceable should return some other fnspec, but can we
handle
    that incrementally, fix this wrong-code and then deal with a missed
    optimization?  I really don't know what exactly should be returned.

    2020-12-04  Jakub Jelinek  <ja...@redhat.com>

            PR c++/98130
            * gimple.c (gimple_call_fnspec): Only return ".co " for replaceable
            operator delete or ".mC" for replaceable operator new called from
            new/delete.

            * g++.dg/opt/pr98130.C: New test.

Reply via email to