On 10/20/22 14:20, Jason Merrill via Gcc-patches wrote:
Tested x86_64-pc-linux-gnu, OK for trunk?

-- >8 --

Simplify several calls to build_string_literal by not requiring redundant
strlen or IDENTIFIER_* in the caller.

I also corrected a wrong comment on IDENTIFIER_LENGTH.

gcc/ChangeLog:

        * tree.h (build_string_literal): New one-argument overloads that
        take tree (identifier) and const char *.
        * builtins.cc (fold_builtin_FILE)
        (fold_builtin_FUNCTION)
        * gimplify.cc (gimple_add_init_for_auto_var)
        * vtable-verify.cc (verify_bb_vtables): Simplify calls.

gcc/cp/ChangeLog:

        * cp-gimplify.cc (fold_builtin_source_location)
        * vtable-class-hierarchy.cc (register_all_pairs): Simplify calls to
        build_string_literal.
        (build_string_from_id): Remove.

OK

jeff


Reply via email to