https://gcc.gnu.org/g:fd91953c4dfba2a592ec15f2b4a2da28b1cf1947

commit r13-8806-gfd91953c4dfba2a592ec15f2b4a2da28b1cf1947
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue May 28 16:30:48 2024 +0200

    libstdc++: Fix up 19_diagnostics/stacktrace/hash.cc on 13 branch
    
    The r13-8207-g17acf9fbeb10d7adad commit changed some tests to use
    -lstdc++exp instead of -lstdc++_libbacktrace, but it didn't change
    the 19_diagnostics/stacktrace/hash.cc test, presumably because
    when it was added on the trunk, it already had -lstdc++exp and
    it was changed to -lstdc++_libbacktrace only in the
    r13-8067-g16635b89f36c07b9e0 cherry-pick.
    
    The test fails with
    /usr/bin/ld: cannot find -lstdc++_libbacktrace
    collect2: error: ld returned 1 exit status
    compiler exited with status 1
    FAIL: 19_diagnostics/stacktrace/hash.cc (test for excess errors)
    without this (while the library is still built, it isn't added in
    -L options).
    
    2024-05-27  Jakub Jelinek  <ja...@redhat.com>
    
            * testsuite/19_diagnostics/stacktrace/hash.cc: Adjust
            dg-options to use -lstdc++exp.

Diff:
---
 libstdc++-v3/testsuite/19_diagnostics/stacktrace/hash.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/19_diagnostics/stacktrace/hash.cc 
b/libstdc++-v3/testsuite/19_diagnostics/stacktrace/hash.cc
index a2f61e49981..37e6d6dd7ec 100644
--- a/libstdc++-v3/testsuite/19_diagnostics/stacktrace/hash.cc
+++ b/libstdc++-v3/testsuite/19_diagnostics/stacktrace/hash.cc
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++23 -lstdc++_libbacktrace" }
+// { dg-options "-std=gnu++23 -lstdc++exp" }
 // { dg-do run { target c++23 } }
 // { dg-require-effective-target stacktrace }

Reply via email to