/dflybsd-src/contrib/gcc-8.0/gcc/ |
H A D | diagnostic-show-locus.c | 741 loc_a = get_location_from_adhoc_loc (line_table, loc_a); in compatible_locations_p() 743 loc_b = get_location_from_adhoc_loc (line_table, loc_b); in compatible_locations_p() 751 const line_map *map_a = linemap_lookup (line_table, loc_a); in compatible_locations_p() 754 const line_map *map_b = linemap_lookup (line_table, loc_b); in compatible_locations_p() 767 = linemap_macro_map_loc_unwind_toward_spelling (line_table, in compatible_locations_p() 771 = linemap_macro_map_loc_unwind_toward_spelling (line_table, in compatible_locations_p() 896 source_range src_range = get_range_from_loc (line_table, loc_range->m_loc); in maybe_add_location_range() 2037 rich_location richloc (line_table, UNKNOWN_LOCATION); in test_diagnostic_show_locus_unknown_location() 2058 location_t caret = linemap_position_for_column (line_table, 10); in test_one_liner_simple_caret() 2059 rich_location richloc (line_table, caret); in test_one_liner_simple_caret() [all …]
|
H A D | edit-context.c | 964 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_before() 967 location_t start = linemap_position_for_column (line_table, 7); in test_applying_fixits_insert_before() 968 rich_location richloc (line_table, start); in test_applying_fixits_insert_before() 1019 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_after() 1022 location_t start = linemap_position_for_column (line_table, 11); in test_applying_fixits_insert_after() 1023 location_t finish = linemap_position_for_column (line_table, 15); in test_applying_fixits_insert_after() 1025 rich_location richloc (line_table, field); in test_applying_fixits_insert_after() 1064 linemap_add (line_table, LC_ENTER, false, tmp.get_filename (), 2); in test_applying_fixits_insert_after_at_line_end() 1067 location_t loc = linemap_position_for_column (line_table, 16); in test_applying_fixits_insert_after_at_line_end() 1068 rich_location richloc (line_table, loc); in test_applying_fixits_insert_after_at_line_end() [all …]
|
H A D | input.c | 124 struct line_maps *line_table; variable 183 loc = linemap_unwind_to_first_non_reserved_loc (line_table, in expand_location_1() 187 loc = linemap_resolve_location (line_table, loc, lrk, &map); in expand_location_1() 217 xloc = linemap_expand_location (line_table, map, loc); in expand_location_1() 260 if (linemap_get_file_highest_location (line_table, file_path, &l)) in total_lines_num() 794 loc = linemap_resolve_location (line_table, loc, in is_location_from_builtin_token() 857 location = linemap_resolve_location (line_table, location, in expansion_point_location_if_in_system_header() 869 return linemap_resolve_location (line_table, location, in expansion_point_location() 894 location_t combined_loc = COMBINE_LOCATION_DATA (line_table, in make_location() 907 return COMBINE_LOCATION_DATA (line_table, pure_loc, src_range, NULL); in make_location() [all …]
|
H A D | input.h | 26 extern GTY(()) struct line_maps *line_table; 59 ((IS_ADHOC_LOC (LOC)) ? get_location_from_adhoc_loc (line_table, LOC) \ 62 ((tree) ((IS_ADHOC_LOC (LOC)) ? get_data_from_adhoc_loc (line_table, (LOC)) \ 77 (linemap_location_in_system_header_p (line_table, LOC)) 81 ((linemap_location_from_macro_expansion_p (line_table, LOC))) 86 ((linemap_location_from_macro_definition_p (line_table, LOC))) 91 return get_pure_location (line_table, loc); in get_pure_location() 99 return get_range_from_loc (line_table, loc).m_start; in get_start() 107 return get_range_from_loc (line_table, loc).m_finish; in get_finish()
|
H A D | diagnostic.c | 581 linemap_resolve_location (line_table, where, in diagnostic_report_current_module() 590 map = INCLUDED_FROM (line_table, map); in diagnostic_report_current_module() 600 map = INCLUDED_FROM (line_table, map); in diagnostic_report_current_module() 822 (line_table, in update_effective_level_from_pragmas() 1066 rich_location richloc (line_table, location); in diagnostic_append_note() 1144 rich_location richloc (line_table, location); in emit_diagnostic() 1156 rich_location richloc (line_table, location); in emit_diagnostic_valist() 1167 rich_location richloc (line_table, location); in inform() 1192 rich_location richloc (line_table, location); in inform_n() 1206 rich_location richloc (line_table, input_location); in warning() [all …]
|
H A D | tree-diagnostic.c | 109 map = linemap_lookup (line_table, where); in maybe_unwind_expanded_macro_loc() 134 where = linemap_unwind_toward_expansion (line_table, where, &map); in maybe_unwind_expanded_macro_loc() 182 linemap_resolve_location (line_table, iter->where, in maybe_unwind_expanded_macro_loc() 189 linemap_resolve_location (line_table, resolved_def_loc, in maybe_unwind_expanded_macro_loc() 214 linemap_resolve_location (line_table, in maybe_unwind_expanded_macro_loc()
|
H A D | substring-locations.c | 115 = get_range_from_loc (line_table, fmt_loc.get_fmt_string_loc ()); in format_warning_n_va() 118 = get_range_from_loc (line_table, fmt_substring_loc); in format_warning_n_va() 141 rich_location richloc (line_table, primary_loc); in format_warning_n_va() 176 rich_location substring_richloc (line_table, fmt_substring_loc); in format_warning_n_va()
|
/dflybsd-src/contrib/gcc-4.7/libcpp/ |
H A D | directives-only.c | 57 loc = pfile->line_table->highest_line; in _cpp_preprocess_dir_only() 92 struct line_maps *line_table; in _cpp_preprocess_dir_only() local 109 line_table = pfile->line_table; in _cpp_preprocess_dir_only() 110 line_table->highest_location = line_table->highest_line; in _cpp_preprocess_dir_only() 116 cb->maybe_print_line (pfile->line_table->highest_line); in _cpp_preprocess_dir_only() 145 loc = linemap_position_for_column (pfile->line_table, col); in _cpp_preprocess_dir_only()
|
H A D | internal.h | 69 const struct line_maps *line_table = PFILE->line_table; \ 71 LINEMAPS_LAST_ORDINARY_MAP (line_table); \ 72 linenum_type line = SOURCE_LINE (map, line_table->highest_line); \ 73 linemap_line_start (PFILE->line_table, line + 1, COLS_HINT); \ 392 struct line_maps *line_table; member 598 return pfile->line_table->depth == 1; in cpp_in_primary_file()
|
H A D | init.c | 153 struct line_maps *line_table) in cpp_create_reader() argument 203 pfile->line_table = line_table; in cpp_create_reader() 252 cpp_set_line_map (cpp_reader *pfile, struct line_maps *line_table) in cpp_set_line_map() argument 254 pfile->line_table = line_table; in cpp_set_line_map() 602 ((LINEMAPS_LAST_ORDINARY_MAP (pfile->line_table))); in cpp_read_main_file()
|
H A D | files.c | 545 entry->location = pfile->line_table->highest_location; in _cpp_find_file() 558 entry->location = pfile->line_table->highest_location; in _cpp_find_file() 569 entry->location = pfile->line_table->highest_location; in _cpp_find_file() 930 pfile->line_table->highest_location--; in _cpp_stack_include() 939 int sysp = pfile->line_table->highest_line > 1 && pfile->buffer ? pfile->buffer->sysp : 0; in open_file_failed() 1051 entry->location = pfile->line_table->highest_location; in make_cpp_dir() 1222 const struct line_maps *line_table = pfile->line_table; in cpp_make_system_header() local 1223 const struct line_map *map = LINEMAPS_LAST_ORDINARY_MAP (line_table); in cpp_make_system_header() 1229 SOURCE_LINE (map, pfile->line_table->highest_line), flags); in cpp_make_system_header() 1587 for (i = 1; i < pfile->line_table->depth; i++) in validate_pch()
|
/dflybsd-src/contrib/gcc-8.0/libcpp/ |
H A D | directives-only.c | 56 loc = pfile->line_table->highest_line; in _cpp_preprocess_dir_only() 91 struct line_maps *line_table; in _cpp_preprocess_dir_only() local 108 line_table = pfile->line_table; in _cpp_preprocess_dir_only() 109 line_table->highest_location = line_table->highest_line; in _cpp_preprocess_dir_only() 115 cb->maybe_print_line (pfile->line_table->highest_line); in _cpp_preprocess_dir_only() 144 loc = linemap_position_for_column (pfile->line_table, col); in _cpp_preprocess_dir_only()
|
H A D | internal.h | 70 const struct line_maps *line_table = PFILE->line_table; \ 72 LINEMAPS_LAST_ORDINARY_MAP (line_table); \ 73 linenum_type line = SOURCE_LINE (map, line_table->highest_line); \ 74 linemap_line_start (PFILE->line_table, line + 1, COLS_HINT); \ 401 struct line_maps *line_table; member 621 return pfile->line_table->depth == 1; in cpp_in_primary_file()
|
H A D | errors.c | 61 src_loc = pfile->line_table->highest_line; in cpp_diagnostic() 73 rich_location richloc (pfile->line_table, src_loc); in cpp_diagnostic() 154 rich_location richloc (pfile->line_table, src_loc); in cpp_diagnostic_with_line() 251 rich_location richloc (pfile->line_table, src_loc); in cpp_error_at()
|
H A D | init.c | 172 struct line_maps *line_table) in cpp_create_reader() argument 236 pfile->line_table = line_table; in cpp_create_reader() 286 cpp_set_line_map (cpp_reader *pfile, struct line_maps *line_table) in cpp_set_line_map() argument 288 pfile->line_table = line_table; in cpp_set_line_map() 658 ((LINEMAPS_LAST_ORDINARY_MAP (pfile->line_table))); in cpp_read_main_file()
|
H A D | files.c | 631 entry->location = pfile->line_table->highest_location; in _cpp_find_file() 644 entry->location = pfile->line_table->highest_location; in _cpp_find_file() 655 entry->location = pfile->line_table->highest_location; in _cpp_find_file() 1047 pfile->line_table->highest_location--; in _cpp_stack_include() 1054 pfile->line_table->highest_location++; in _cpp_stack_include() 1064 int sysp = pfile->line_table->highest_line > 1 && pfile->buffer ? pfile->buffer->sysp : 0; in open_file_failed() 1186 entry->location = pfile->line_table->highest_location; in make_cpp_dir() 1257 location = get_location_from_adhoc_loc (pfile->line_table, location); in cpp_included_before() 1358 const struct line_maps *line_table = pfile->line_table; in cpp_make_system_header() local 1359 const line_map_ordinary *map = LINEMAPS_LAST_ORDINARY_MAP (line_table); in cpp_make_system_header() [all …]
|
H A D | directives.c | 306 pfile->directive_line = pfile->line_table->highest_line; in start_directive() 526 rich_location richloc (pfile->line_table, dname->src_loc); in _cpp_handle_directive() 528 = get_range_from_loc (pfile->line_table, dname->src_loc); in _cpp_handle_directive() 846 if (pfile->line_table->depth >= CPP_STACK_MAX) in do_include_common() 952 struct line_maps *line_table = pfile->line_table; in do_line() local 953 const line_map_ordinary *map = LINEMAPS_LAST_ORDINARY_MAP (line_table); in do_line() 1006 line_table->seen_line_directive = true; in do_line() 1015 struct line_maps *line_table = pfile->line_table; in do_linemarker() local 1016 const line_map_ordinary *map = LINEMAPS_LAST_ORDINARY_MAP (line_table); in do_linemarker() 1090 map = LINEMAPS_LAST_ORDINARY_MAP (line_table); in do_linemarker() [all …]
|
/dflybsd-src/contrib/gcc-4.7/gcc/ |
H A D | input.c | 31 struct line_maps *line_table; variable 43 loc = linemap_resolve_location (line_table, loc, in expand_location() 45 xloc = linemap_expand_location (line_table, map, loc); in expand_location() 92 linemap_get_statistics (line_table, &s); in dump_line_table_statistics()
|
H A D | tree-diagnostic.c | 118 map = linemap_lookup (line_table, where); in maybe_unwind_expanded_macro_loc() 143 where = linemap_unwind_toward_expansion (line_table, where, &map); in maybe_unwind_expanded_macro_loc() 168 linemap_resolve_location (line_table, iter->where, in maybe_unwind_expanded_macro_loc() 175 linemap_resolve_location (line_table, in maybe_unwind_expanded_macro_loc()
|
H A D | input.h | 27 extern GTY(()) struct line_maps *line_table; 55 ((linemap_location_in_system_header_p (line_table, LOC)))
|
/dflybsd-src/contrib/gcc-8.0/gcc/c-family/ |
H A D | c-pch.c | 361 saved_loc = expand_location (line_table->highest_line); in c_common_read_pch() 362 saved_trace_includes = line_table->trace_includes; in c_common_read_pch() 369 cpp_set_line_map (pfile, line_table); in c_common_read_pch() 370 rebuild_location_adhoc_htab (line_table); in c_common_read_pch() 384 line_table->trace_includes = saved_trace_includes; in c_common_read_pch() 385 linemap_add (line_table, LC_ENTER, 0, saved_loc.file, saved_loc.line); in c_common_read_pch()
|
H A D | c-indentation.c | 219 if (linemap_location_from_macro_expansion_p (line_table, body_loc) in should_warn_for_misleading_indentation() 220 || linemap_location_from_macro_expansion_p (line_table, next_stmt_loc)) in should_warn_for_misleading_indentation() 239 if (line_table->seen_line_directive) in should_warn_for_misleading_indentation()
|
/dflybsd-src/contrib/gcc-4.7/gcc/c-family/ |
H A D | c-pch.c | 428 saved_loc = expand_location (line_table->highest_line); in c_common_read_pch() 429 saved_trace_includes = line_table->trace_includes; in c_common_read_pch() 436 cpp_set_line_map (pfile, line_table); in c_common_read_pch() 450 line_table->trace_includes = saved_trace_includes; in c_common_read_pch() 451 linemap_add (line_table, LC_ENTER, 0, saved_loc.file, saved_loc.line); in c_common_read_pch()
|
H A D | c-ppoutput.c | 250 linemap_dump_location (line_table, token->src_loc, in scan_translation_unit() 346 linemap_dump_location (line_table, src_loc, in maybe_print_line() 401 linemap_dump_location (line_table, src_loc, in print_line() 470 linemap_resolve_location (line_table, line, in cb_define() 619 const struct line_map *from = INCLUDED_FROM (line_table, map); in pp_file_change()
|
/dflybsd-src/contrib/gcc-8.0/gcc/c/ |
H A D | c-errors.c | 40 rich_location richloc (line_table, location); in pedwarn_c99() 80 rich_location richloc (line_table, location); in pedwarn_c90()
|