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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tro...@gcc.gnu.org>:

https://gcc.gnu.org/g:96deddca2e535d09db1d244a96a1efc20e24b673

commit r12-473-g96deddca2e535d09db1d244a96a1efc20e24b673
Author: Tom Tromey <t...@tromey.com>
Date:   Tue May 4 15:26:58 2021 -0600

    libcc1: avoid extra string copies

    PR c/94669 points out that a couple of spots in libcc1 take a
    std::string where a reference would do.  This changes these spots to
    take a const char *, to reduce the number of copies.

    libcc1

            PR c/94669
            * compiler.hh (compiler_driver_filename): Take const char *.
            (compiler_triplet_regexp): Likewise.

Reply via email to