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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Alex Coplan
<acop...@gcc.gnu.org>:

https://gcc.gnu.org/g:9225a497de15bf3e8beb8df402e1b8cf9ba2b8ac

commit r10-9791-g9225a497de15bf3e8beb8df402e1b8cf9ba2b8ac
Author: Alex Coplan <alex.cop...@arm.com>
Date:   Fri Apr 23 14:09:15 2021 +0100

    early-remat.c: Fix new/delete mismatch [PR100230]

    This simple patch fixes a mistmatched operator new/delete in
    early-remat.c which triggers ASan errors on (at least) AArch64 when
    compiling SVE code.

    gcc/ChangeLog:

            PR rtl-optimization/100230
            * early-remat.c (early_remat::sort_candidates): Use delete[]
            instead of delete for array allocated with new[].

    (cherry picked from commit 5d87c2251c441f056e0a44f928ffcb8a8a679b6b)

Reply via email to