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

--- Comment #26 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Thomas Schwinge <tschwi...@gcc.gnu.org>:

https://gcc.gnu.org/g:3b36e96b575b493a21510c877b273608113108ed

commit r15-8930-g3b36e96b575b493a21510c877b273608113108ed
Author: Thomas Schwinge <tho...@codesourcery.com>
Date:   Tue Jul 19 15:42:17 2022 +0200

    driver: Forward '-lstdc++' to offloading compilation [PR101544]

    ..., so that users don't manually need to specify
'-foffload-options=-lstdc++'
    in addition to '-lstdc++' (specified manually, or implicitly by the
driver).
    Do like commit 4bcb46b3ade1796c5a57b294f5cca25f00671cac
    "driver: Forward '-lgfortran', '-lm' to offloading compilation".

            PR driver/101544
            gcc/
            * gcc.cc (driver_handle_option): Forward host '-lstdc++' to
            offloading compilation.
            * config/gcn/mkoffload.cc (main): Adjust.
            * config/nvptx/mkoffload.cc (main): Likewise.
            libgomp/
            * testsuite/libgomp.c++/pr101544-1-O0.C: Remove
            '-foffload-options=-lstdc++'.
            * testsuite/libgomp.c++/pr101544-1.C: Likewise.
            * testsuite/libgomp.oacc-c++/pr101544-1.C: Likewise.

Reply via email to