[Bug preprocessor/90382] [10 Regression] ICE in linemap_macro_map_loc_to_exp_point, at libcpp/line-map.c:1061

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 14 11:42:00 GMT 2019


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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue May 14 11:41:40 2019
New Revision: 271162

URL: https://gcc.gnu.org/viewcvs?rev=271162&root=gcc&view=rev
Log:
Do a refactoring in linemap (PR preprocessor/90382).

2019-05-14  Martin Liska  <mliska@suse.cz>

        PR preprocessor/90382
        * include/line-map.h (get_data_from_adhoc_loc): Add const to
        the first argument.
        (get_location_from_adhoc_loc): Likewise.
        * line-map.c(get_data_from_adhoc_loc):  Add const to
        the first argument.
        (get_location_from_adhoc_loc): Likewise.
        (get_combined_adhoc_loc): Use get_location_from_adhoc_loc
        (or get_data_from_adhoc_loc).
        (get_range_from_adhoc_loc): Likewise.
        (get_pure_location): Likewise.
        (linemap_position_for_loc_and_offset): Likewise.
        (linemap_lookup): Likewise.
        (linemap_ordinary_map_lookup): Likewise.
        (linemap_macro_map_lookup): Likewise.
        (linemap_get_expansion_line): Likewise.
        (linemap_get_expansion_filename): Likewise.
        (linemap_location_in_system_header_p): Likewise.
        (linemap_location_from_macro_expansion_p): Likewise.
        (linemap_macro_loc_to_exp_point): Likewise.
        (linemap_resolve_location): Likewise.
        (linemap_unwind_toward_expansion): Likewise.
        (linemap_unwind_to_first_non_reserved_loc): Likewise.
        (linemap_expand_location): Likewise.
        (linemap_dump_location): Likewise.

Modified:
    trunk/libcpp/ChangeLog
    trunk/libcpp/include/line-map.h
    trunk/libcpp/line-map.c


More information about the Gcc-bugs mailing list