aboutsummaryrefslogtreecommitdiff
path: root/config/lib-prefix.m4
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-06-29 22:42:43 -0700
committerSam James <sam@gentoo.org>2024-07-25 23:40:05 +0100
commit3e92ae5088c148d6f5c44c5882c9ed3a1511f245 (patch)
treedf2c6662f8af0434420d8ca575d33d98fdd6fc03 /config/lib-prefix.m4
parente7cd38b6cdf8175446605a6ef3736adab1990c43 (diff)
downloadfsf-binutils-gdb-3e92ae5088c148d6f5c44c5882c9ed3a1511f245.zip
fsf-binutils-gdb-3e92ae5088c148d6f5c44c5882c9ed3a1511f245.tar.gz
fsf-binutils-gdb-3e92ae5088c148d6f5c44c5882c9ed3a1511f245.tar.bz2
ld: Avoid folding new and delete pairs
GCC 15 may fold new and delete pairs, like A *bb = new A[10]; delete [] bb; bb = new (std::nothrow) A [10]; delete [] bb; as shown in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115712 Avoid folding new and delete pairs by adding a function call between new and delete. * testsuite/ld-elf/dl5.cc: Include "dl5.h". (A): Removed. Call foo between new and delete. * testsuite/ld-elf/dl5.h: New file. * testsuite/ld-elf/new.cc: Include "dl5.h". (foo): New function. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> (cherry picked from commit adf584eb92b0aaf134db99f4238eedb3e5bacb4a)
Diffstat (limited to 'config/lib-prefix.m4')
0 files changed, 0 insertions, 0 deletions