On 06/14/2016 09:15 AM, David Malcolm wrote:
There's a fair amount of repetition in the code to emit
fixits for misspelled identifiers, and I plan to add more
such fixits, so this patch moves it to a helper method.

Successfully bootstrapped&regrtested in combination with the rest of
the kit on x86_64-pc-linux-gnu
Successful -fself-test of stage1 on powerpc-ibm-aix7.1.3.0 of
just this patch by itself.

OK for trunk if it passes individual bootstrap&regrtest?

gcc/c/ChangeLog:
        * c-typeck.c (build_component_ref): Simplify fixit code by
        using gcc_rich_location::add_fixit_misspelled_id.
        (set_init_label): Likewise.

gcc/cp/ChangeLog:
        * typeck.c: Include "gcc-rich-location.h".
        (finish_class_member_access_expr): Simplify fixit code by
        using gcc_rich_location::add_fixit_misspelled_id.

gcc/ChangeLog:
        * gcc-rich-location.c
        (gcc_rich_location::add_fixit_misspelled_id): New method.
        * gcc-rich-location.h
        (gcc_rich_location::add_fixit_misspelled_id): Add decl.
OK.
jeff

Reply via email to