| /netbsd-src/external/gpl3/gcc.old/dist/libcpp/ |
| H A D | errors.c | 55 location_t src_loc; in cpp_diagnostic() local 60 src_loc = pfile->directive_line; in cpp_diagnostic() 62 src_loc = pfile->line_table->highest_line; in cpp_diagnostic() 68 src_loc = 0; in cpp_diagnostic() 72 src_loc = pfile->cur_token[-1].src_loc; in cpp_diagnostic() 74 rich_location richloc (pfile->line_table, src_loc); in cpp_diagnostic() 153 location_t src_loc, unsigned int column, in cpp_diagnostic_with_line() argument 160 rich_location richloc (pfile->line_table, src_loc); in cpp_diagnostic_with_line() 172 location_t src_loc, unsigned int column, in cpp_error_with_line() argument 180 ret = cpp_diagnostic_with_line (pfile, level, CPP_W_NONE, src_loc, in cpp_error_with_line() [all …]
|
| H A D | macro.c | 142 cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc, in update() 147 m_location = token->src_loc; in update() 183 cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc, in update() 198 m_paste_location = token->src_loc; in update() 212 cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc, in update() 784 token->src_loc = loc; in builtin_macro() 971 location_t saved_loc = lhs->src_loc; in paste_tokens() 981 lhs->src_loc = saved_loc; in paste_tokens() 1303 set_arg_token (arg, &pfile->eof, pfile->eof.src_loc, in collect_args() 1523 src, src->src_loc, in enter_macro_context() [all …]
|
| H A D | lex.c | 1307 cpp_warning_with_line (pfile, CPP_W_NORMALIZE, token->src_loc, 0, in warn_about_normalization() 1310 cpp_warning_with_line (pfile, CPP_W_NORMALIZE, token->src_loc, 0, in warn_about_normalization() 1836 cpp_error_with_line (pfile, CPP_DL_ERROR, token->src_loc, in lex_raw_string() 1840 cpp_error_with_line (pfile, CPP_DL_ERROR, token->src_loc, in lex_raw_string() 1844 cpp_error_with_line (pfile, CPP_DL_ERROR, token->src_loc, in lex_raw_string() 1893 cpp_error_with_line (pfile, CPP_DL_ERROR, token->src_loc, 0, in lex_raw_string() 1908 location_t src_loc = token->src_loc; in lex_raw_string() local 1911 token->src_loc = pfile->line_table->highest_line; in lex_raw_string() 1915 cpp_error_with_line (pfile, CPP_DL_ERROR, src_loc, 0, in lex_raw_string() 1935 token->src_loc, 0, in lex_raw_string() [all …]
|
| H A D | directives.c | 520 rich_location richloc (pfile->line_table, dname->src_loc); in _cpp_handle_directive() 522 = get_range_from_loc (pfile->line_table, dname->src_loc); in _cpp_handle_directive() 761 *location = header->src_loc; in parse_include() 1151 location_t src_loc = pfile->cur_token[-1].src_loc; in do_diagnostic() local 1162 cpp_warning_with_line_syshdr (pfile, reason, src_loc, 0, "%s", line); in do_diagnostic() 1164 cpp_warning_with_line (pfile, reason, src_loc, 0, "%s", line); in do_diagnostic() 1166 cpp_error_with_line (pfile, code, src_loc, 0, "%s", line); in do_diagnostic() 1481 pfile->directive_result.src_loc = pragma_token_virt_loc; in do_pragma() 1554 location_t src_loc = pfile->cur_token[-1].src_loc; in do_pragma_push_macro() local 1555 cpp_error_with_line (pfile, CPP_DL_ERROR, src_loc, 0, in do_pragma_push_macro() [all …]
|
| H A D | charset.c | 2249 cpp_string_location_reader (location_t src_loc, in cpp_string_location_reader() argument 2252 src_loc = get_range_from_loc (line_table, src_loc).m_start; in cpp_string_location_reader() 2258 = linemap_resolve_location (line_table, src_loc, in cpp_string_location_reader()
|
| /netbsd-src/external/gpl3/gcc/dist/libcpp/ |
| H A D | errors.cc | 51 return pfile->cur_token[-1].src_loc; in cpp_diagnostic_get_current_location() 80 location_t src_loc = cpp_diagnostic_get_current_location (pfile); in cpp_diagnostic() local 81 rich_location richloc (pfile->line_table, src_loc); in cpp_diagnostic() 197 location_t src_loc, unsigned int column, in cpp_diagnostic_with_line() argument 204 rich_location richloc (pfile->line_table, src_loc); in cpp_diagnostic_with_line() 216 location_t src_loc, unsigned int column, in cpp_error_with_line() argument 224 ret = cpp_diagnostic_with_line (pfile, level, CPP_W_NONE, src_loc, in cpp_error_with_line() 235 location_t src_loc, unsigned int column, in cpp_warning_with_line() argument 243 ret = cpp_diagnostic_with_line (pfile, CPP_DL_WARNING, reason, src_loc, in cpp_warning_with_line() 254 location_t src_loc, unsigned int column, in cpp_pedwarning_with_line() argument [all …]
|
| H A D | macro.cc | 143 cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc, in update() 148 m_location = token->src_loc; in update() 185 cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc, in update() 200 m_paste_location = token->src_loc; in update() 214 cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc, in update() 834 token->src_loc = loc; in builtin_macro() 1021 location_t saved_loc = lhs->src_loc; in paste_tokens() 1033 lhs->src_loc = saved_loc; in paste_tokens() 1362 set_arg_token (arg, &pfile->endarg, token->src_loc, in collect_args() 1582 src, src->src_loc, in enter_macro_context() [all …]
|
| H A D | directives.cc | 536 rich_location richloc (pfile->line_table, dname->src_loc); in _cpp_handle_directive() 538 = get_range_from_loc (pfile->line_table, dname->src_loc); in _cpp_handle_directive() 778 *location = header->src_loc; in parse_include() 1192 location_t src_loc = pfile->cur_token[-1].src_loc; in do_diagnostic() local 1203 cpp_warning_with_line_syshdr (pfile, reason, src_loc, 0, "%s", line); in do_diagnostic() 1205 cpp_warning_with_line (pfile, reason, src_loc, 0, "%s", line); in do_diagnostic() 1207 cpp_error_with_line (pfile, code, src_loc, 0, "%s", line); in do_diagnostic() 1522 pfile->directive_result.src_loc = pragma_token_virt_loc; in do_pragma() 1595 location_t src_loc = pfile->cur_token[-1].src_loc; in do_pragma_push_macro() local 1596 cpp_error_with_line (pfile, CPP_DL_ERROR, src_loc, 0, in do_pragma_push_macro() [all …]
|
| H A D | lex.cc | 1814 location_t loc = token->src_loc; in warn_about_normalization() 2449 cpp_error_with_line (pfile, CPP_DL_ERROR, token->src_loc, in lex_raw_string() 2453 cpp_error_with_line (pfile, CPP_DL_ERROR, token->src_loc, in lex_raw_string() 2457 cpp_error_with_line (pfile, CPP_DL_ERROR, token->src_loc, in lex_raw_string() 2496 cpp_error_with_line (pfile, CPP_DL_ERROR, token->src_loc, 0, in lex_raw_string() 2512 location_t src_loc = token->src_loc; in lex_raw_string() local 2515 token->src_loc = pfile->line_table->highest_line; in lex_raw_string() 2519 cpp_error_with_line (pfile, CPP_DL_ERROR, src_loc, 0, in lex_raw_string() 2551 token->src_loc, 0, in lex_raw_string() 2700 token->src_loc, 0, in lex_string() [all …]
|
| H A D | charset.cc | 2316 cpp_string_location_reader (location_t src_loc, in cpp_string_location_reader() argument 2319 src_loc = get_range_from_loc (line_table, src_loc).m_start; in cpp_string_location_reader() 2325 = linemap_resolve_location (line_table, src_loc, in cpp_string_location_reader()
|
| H A D | init.cc | 258 pfile->avoid_paste.src_loc = 0; in cpp_create_reader() 261 pfile->endarg.src_loc = 0; in cpp_create_reader()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/ |
| H A D | c-ppoutput.c | 244 line_marker_emitted = maybe_print_line (token->src_loc); in scan_translation_unit() 256 maybe_print_line (token->src_loc); in scan_translation_unit() 262 linemap_dump_location (line_table, token->src_loc, print.outf); in scan_translation_unit() 340 maybe_print_line_1 (location_t src_loc, FILE *stream) in maybe_print_line_1() argument 343 int src_line = LOCATION_LINE (src_loc); in maybe_print_line_1() 344 const char *src_file = LOCATION_FILE (src_loc); in maybe_print_line_1() 366 emitted_line_marker = print_line_1 (src_loc, "", stream); in maybe_print_line_1() 377 maybe_print_line (location_t src_loc) in maybe_print_line() argument 380 linemap_dump_location (line_table, src_loc, in maybe_print_line() 382 return maybe_print_line_1 (src_loc, print.outf); in maybe_print_line() [all …]
|
| H A D | c-lex.c | 188 input_location = token->src_loc; in cb_line_change() 1053 value = build1_loc (token->src_loc, EXCESS_PRECISION_EXPR, type, value); in interpret_float() 1215 location_t init_loc = tok->src_loc; in lex_string() 1269 obstack_grow (&loc_ob, &tok->src_loc, sizeof (location_t)); in lex_string()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/c-family/ |
| H A D | c-ppoutput.cc | 258 line_marker_emitted = maybe_print_line (token->src_loc); in stream() 276 linemap_dump_location (line_table, token->src_loc, print.outf); in stream() 437 maybe_print_line_1 (location_t src_loc, FILE *stream) in maybe_print_line_1() argument 440 unsigned src_line = LOCATION_LINE (src_loc); in maybe_print_line_1() 441 const char *src_file = LOCATION_FILE (src_loc); in maybe_print_line_1() 454 && src_loc != UNKNOWN_LOCATION in maybe_print_line_1() 464 emitted_line_marker = print_line_1 (src_loc, "", stream); in maybe_print_line_1() 475 maybe_print_line (location_t src_loc) in maybe_print_line() argument 478 linemap_dump_location (line_table, src_loc, in maybe_print_line() 480 return maybe_print_line_1 (src_loc, print.outf); in maybe_print_line() [all …]
|
| H A D | c-lex.cc | 187 input_location = token->src_loc; in cb_line_change() 1121 value = build1_loc (token->src_loc, EXCESS_PRECISION_EXPR, type, value); in interpret_float() 1283 location_t init_loc = tok->src_loc; in lex_string() 1337 obstack_grow (&loc_ob, &tok->src_loc, sizeof (location_t)); in lex_string()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | input.cc | 2153 location_t tok_loc = tok->src_loc; in assert_token_loc_eq() 2623 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, i, 1, in test_lexer_string_locations_simple() 2626 ASSERT_NUM_SUBSTRING_RANGES (test, tok->src_loc, type, 11); in test_lexer_string_locations_simple() 2681 (test, tok->src_loc, type, in test_lexer_string_locations_ebcdic() 2723 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, i, 1, 10 + i, 10 + i); in test_lexer_string_locations_hex() 2724 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, 5, 1, 15, 18); in test_lexer_string_locations_hex() 2726 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, i, 1, 13 + i, 13 + i); in test_lexer_string_locations_hex() 2728 ASSERT_NUM_SUBSTRING_RANGES (test, tok->src_loc, type, 11); in test_lexer_string_locations_hex() 2764 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, i, 1, 10 + i, 10 + i); in test_lexer_string_locations_oct() 2765 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, 5, 1, 15, 18); in test_lexer_string_locations_oct() [all …]
|
| H A D | genmatch.cc | 123 rich_location richloc (line_table, tk->src_loc); in fatal_at() 149 rich_location richloc (line_table, tk->src_loc); in warning_at() 2607 linemap_resolve_location (line_table, token->src_loc, in gen_transform() 2610 token->src_loc); in gen_transform() 4242 record_operlist (id_tok->src_loc, p); in parse_operation() 4255 location_t src_loc = eat_token (CPP_ATSIGN)->src_loc; in parse_capture() local 4280 fatal_at (src_loc, "unknown capture id"); in parse_capture() 4283 return new capture (src_loc, num, op, value_match); in parse_capture() 4294 expr *e = new expr (parse_operation (opt_grp), token->src_loc); in parse_expr() 4373 op = new capture (token->src_loc, num, e, false); in parse_expr() [all …]
|
| H A D | dumpfile.cc | 1121 location_t src_loc = user_location.get_location_t (); in begin_scope() local 1124 ::dump_loc (MSG_NOTE, dump_file, src_loc); in begin_scope() 1127 ::dump_loc (MSG_NOTE, alt_dump_file, src_loc); in begin_scope() 1131 ::dump_loc (MSG_NOTE, m_test_pp, src_loc); in begin_scope()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | input.c | 1993 location_t tok_loc = tok->src_loc; in assert_token_loc_eq() 2463 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, i, 1, in test_lexer_string_locations_simple() 2466 ASSERT_NUM_SUBSTRING_RANGES (test, tok->src_loc, type, 11); in test_lexer_string_locations_simple() 2521 (test, tok->src_loc, type, in test_lexer_string_locations_ebcdic() 2563 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, i, 1, 10 + i, 10 + i); in test_lexer_string_locations_hex() 2564 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, 5, 1, 15, 18); in test_lexer_string_locations_hex() 2566 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, i, 1, 13 + i, 13 + i); in test_lexer_string_locations_hex() 2568 ASSERT_NUM_SUBSTRING_RANGES (test, tok->src_loc, type, 11); in test_lexer_string_locations_hex() 2604 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, i, 1, 10 + i, 10 + i); in test_lexer_string_locations_oct() 2605 ASSERT_CHAR_AT_RANGE (test, tok->src_loc, type, 5, 1, 15, 18); in test_lexer_string_locations_oct() [all …]
|
| H A D | genmatch.c | 123 rich_location richloc (line_table, tk->src_loc); in fatal_at() 149 rich_location richloc (line_table, tk->src_loc); in warning_at() 2594 linemap_resolve_location (line_table, token->src_loc, in gen_transform() 2597 token->src_loc); in gen_transform() 4184 record_operlist (id_tok->src_loc, p); in parse_operation() 4197 location_t src_loc = eat_token (CPP_ATSIGN)->src_loc; in parse_capture() local 4222 fatal_at (src_loc, "unknown capture id"); in parse_capture() 4225 return new capture (src_loc, num, op, value_match); in parse_capture() 4236 expr *e = new expr (parse_operation (opt_grp), token->src_loc); in parse_expr() 4307 op = new capture (token->src_loc, num, e, false); in parse_expr() [all …]
|
| H A D | dumpfile.c | 1107 location_t src_loc = user_location.get_location_t (); in begin_scope() local 1110 ::dump_loc (MSG_NOTE, dump_file, src_loc); in begin_scope() 1113 ::dump_loc (MSG_NOTE, alt_dump_file, src_loc); in begin_scope() 1117 ::dump_loc (MSG_NOTE, m_test_pp, src_loc); in begin_scope()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/fortran/ |
| H A D | cpp.cc | 835 maybe_print_line (location_t src_loc) in maybe_print_line() argument 838 = linemap_check_ordinary (linemap_lookup (line_table, src_loc)); in maybe_print_line() 839 int src_line = SOURCE_LINE (map, src_loc); in maybe_print_line() 858 print_line (src_loc, ""); in maybe_print_line() 864 print_line (location_t src_loc, const char *special_flags) in print_line() argument 879 loc = expand_location (src_loc); in print_line() 894 sysp = in_system_header_at (src_loc); in print_line() 942 location_t src_loc = token->src_loc; in cb_line_change() local 947 maybe_print_line (src_loc); in cb_line_change() 959 = linemap_check_ordinary (linemap_lookup (line_table, src_loc)); in cb_line_change() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/ |
| H A D | cpp.c | 815 maybe_print_line (location_t src_loc) in maybe_print_line() argument 818 = linemap_check_ordinary (linemap_lookup (line_table, src_loc)); in maybe_print_line() 819 int src_line = SOURCE_LINE (map, src_loc); in maybe_print_line() 838 print_line (src_loc, ""); in maybe_print_line() 844 print_line (location_t src_loc, const char *special_flags) in print_line() argument 859 loc = expand_location (src_loc); in print_line() 874 sysp = in_system_header_at (src_loc); in print_line() 922 location_t src_loc = token->src_loc; in cb_line_change() local 927 maybe_print_line (src_loc); in cb_line_change() 939 = linemap_check_ordinary (linemap_lookup (line_table, src_loc)); in cb_line_change() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libcpp/include/ |
| H A D | cpplib.h | 246 location_t src_loc; member 909 cpp_string_location_reader (location_t src_loc, 1215 location_t src_loc, const char *msgid, ...)
|
| /netbsd-src/external/gpl3/gcc/dist/libcpp/include/ |
| H A D | cpplib.h | 249 location_t src_loc; member 978 cpp_string_location_reader (location_t src_loc, 1334 location_t src_loc, const char *msgid, ...)
|