Home
last modified time | relevance | path

Searched refs:CPP_OPTION (Results 1 – 25 of 34) sorted by relevance

12

/netbsd-src/external/gpl3/gcc.old/dist/libcpp/
H A Dinit.c131 CPP_OPTION (pfile, lang) = lang; in cpp_set_lang()
133 CPP_OPTION (pfile, c99) = l->c99; in cpp_set_lang()
134 CPP_OPTION (pfile, cplusplus) = l->cplusplus; in cpp_set_lang()
135 CPP_OPTION (pfile, extended_numbers) = l->extended_numbers; in cpp_set_lang()
136 CPP_OPTION (pfile, extended_identifiers) = l->extended_identifiers; in cpp_set_lang()
137 CPP_OPTION (pfile, c11_identifiers) = l->c11_identifiers; in cpp_set_lang()
138 CPP_OPTION (pfile, std) = l->std; in cpp_set_lang()
139 CPP_OPTION (pfile, digraphs) = l->digraphs; in cpp_set_lang()
140 CPP_OPTION (pfile, uliterals) = l->uliterals; in cpp_set_lang()
141 CPP_OPTION (pfile, rliterals) = l->rliterals; in cpp_set_lang()
[all …]
H A Dcharset.c702 const char *ncset = CPP_OPTION (pfile, narrow_charset); in cpp_init_iconv()
703 const char *wcset = CPP_OPTION (pfile, wide_charset); in cpp_init_iconv()
706 bool be = CPP_OPTION (pfile, bytes_big_endian); in cpp_init_iconv()
708 if (CPP_OPTION (pfile, wchar_precision) >= 32) in cpp_init_iconv()
710 else if (CPP_OPTION (pfile, wchar_precision) >= 16) in cpp_init_iconv()
723 pfile->narrow_cset_desc.width = CPP_OPTION (pfile, char_precision); in cpp_init_iconv()
725 pfile->utf8_cset_desc.width = CPP_OPTION (pfile, char_precision); in cpp_init_iconv()
735 pfile->wide_cset_desc.width = CPP_OPTION (pfile, wchar_precision); in cpp_init_iconv()
941 if (CPP_OPTION (pfile, c11_identifiers)) in ucn_valid_in_identifier()
943 else if (CPP_OPTION (pfile, c99)) in ucn_valid_in_identifier()
[all …]
H A Dexpr.c156 if (CPP_OPTION (pfile, ext_numeric_literals)) in interpret_float_suffix()
218 && !CPP_OPTION (pfile, cplusplus) in interpret_float_suffix()
274 if (!CPP_OPTION (pfile, ext_numeric_literals)) in interpret_float_suffix()
279 if (CPP_OPTION (pfile, cplusplus) in interpret_float_suffix()
280 && CPP_OPTION (pfile, lang) > CLK_CXX11 in interpret_float_suffix()
288 if ((w || q) && !CPP_OPTION (pfile, ext_numeric_literals)) in interpret_float_suffix()
340 if (!CPP_OPTION (pfile, ext_numeric_literals)) in interpret_int_suffix()
345 if (CPP_OPTION (pfile, cplusplus) in interpret_int_suffix()
346 && CPP_OPTION (pfile, lang) > CLK_CXX11 in interpret_int_suffix()
660 && !CPP_OPTION (pfile, extended_numbers)) in cpp_classify_number()
[all …]
H A Dmacro.c550 if (CPP_OPTION (pfile, warn_date_time)) in _cpp_builtin_macro_text()
634 if (CPP_OPTION (pfile, traditional)) in _cpp_builtin_macro_text()
656 if (CPP_OPTION (pfile, warn_date_time)) in _cpp_builtin_macro_text()
717 if (CPP_OPTION (pfile, directives_only) && pfile->state.in_directive) in _cpp_builtin_macro_text()
985 if (CPP_OPTION (pfile, lang) != CLK_ASM) in paste_tokens()
1109 && ! CPP_OPTION (pfile, va_opt)) in _cpp_arguments_ok()
1111 if (CPP_OPTION (pfile, cplusplus)) in _cpp_arguments_ok()
1162 bool track_macro_expansion_p = CPP_OPTION (pfile, track_macro_expansion); in collect_args()
1294 CPP_OPTION (pfile, track_macro_expansion)); in collect_args()
1305 CPP_OPTION (pfile, track_macro_expansion)); in collect_args()
[all …]
H A Dlex.c973 if (CPP_OPTION (pfile, trigraphs)) in _cpp_clean_line()
1050 if (CPP_OPTION (pfile, trigraphs)) in _cpp_clean_line()
1091 if (CPP_OPTION (pfile, trigraphs)) in warn_in_comment()
1141 if (CPP_OPTION (pfile, warn_trigraphs) in _cpp_process_line_notes()
1144 if (CPP_OPTION (pfile, trigraphs)) in _cpp_process_line_notes()
1197 if (CPP_OPTION (pfile, warn_comments) in _cpp_skip_block_comment()
1297 if (CPP_OPTION (pfile, warn_normalize) < NORMALIZE_STATE_RESULT (s) in warn_about_normalization()
1328 if (!CPP_OPTION (pfile, dollars_in_ident)) in forms_identifier_p()
1332 if (CPP_OPTION (pfile, warn_dollars) && !pfile->state.skipping) in forms_identifier_p()
1334 CPP_OPTION (pfile, warn_dollars) = 0; in forms_identifier_p()
[all …]
H A Ddirectives.c307 if (CPP_OPTION (pfile, traditional)) in end_directive()
330 pfile->state.save_comments = ! CPP_OPTION (pfile, discard_comments); in end_directive()
377 && !(dir == &dtable[T_IMPORT] && CPP_OPTION (pfile, objc)) in directive_diagnostics()
381 || (dir == &dtable[T_IMPORT] && !CPP_OPTION (pfile, objc))) in directive_diagnostics()
382 && CPP_OPTION (pfile, cpp_warn_deprecated)) in directive_diagnostics()
428 if (CPP_OPTION (pfile, cpp_pedantic)) in _cpp_handle_directive()
444 else if (dname->type == CPP_NUMBER && CPP_OPTION (pfile, lang) != CLK_ASM) in _cpp_handle_directive()
447 if (CPP_PEDANTIC (pfile) && ! CPP_OPTION (pfile, preprocessed) in _cpp_handle_directive()
473 if (CPP_OPTION (pfile, preprocessed) in _cpp_handle_directive()
474 && !CPP_OPTION (pfile, directives_only) in _cpp_handle_directive()
[all …]
H A Dinternal.h60 && CPP_OPTION (pfile, extended_numbers))))
62 #define DIGIT_SEP(c) ((c) == '\'' && CPP_OPTION (pfile, digit_separators))
64 #define CPP_OPTION(PFILE, OPTION) ((PFILE)->opts.OPTION) macro
593 #define _dollar_ok(x) ((x) == '$' && CPP_OPTION (pfile, dollars_in_ident))
629 #define CPP_PEDANTIC(PF) CPP_OPTION (PF, cpp_pedantic)
630 #define CPP_WTRADITIONAL(PF) CPP_OPTION (PF, cpp_warn_traditional)
H A Dpch.c592 if (CPP_OPTION (r, preprocessed)) in cpp_valid_state()
614 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
636 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
648 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
689 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
709 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
857 if (deps_restore (r->deps, f, CPP_OPTION (r, restore_pch_deps) ? name : NULL) in cpp_read_state()
H A Dfiles.c394 if (CPP_OPTION (pfile, remap) && (path = remap_filename (pfile, file))) in find_file_in_dir()
411 if ((CPP_OPTION (pfile, canonical_system_headers) && file->dir->sysp) in find_file_in_dir()
763 CPP_OPTION (pfile, input_charset), in read_file_guts()
932 if (CPP_OPTION (pfile, deps.style) > (sysp != 0) in _cpp_stack_file()
935 && !(file->main_file && CPP_OPTION (pfile, deps.ignore_main_file))) in _cpp_stack_file()
945 CPP_OPTION (pfile, preprocessed) in _cpp_stack_file()
946 && !CPP_OPTION (pfile, directives_only)); in _cpp_stack_file()
1077 bool print_dep = CPP_OPTION (pfile, deps.style) > (angle_brackets || !!sysp); in open_file_failed()
1080 if (print_dep && CPP_OPTION (pfile, deps.missing_files) && errno == ENOENT) in open_file_failed()
1085 if (CPP_OPTION (pfile, deps.need_preprocessor_output)) in open_file_failed()
[all …]
H A Dtraditional.c183 if (CPP_OPTION (pfile, discard_comments_in_macro_exp)) in copy_comment()
191 else if (CPP_OPTION (pfile, discard_comments)) in copy_comment()
759 && CPP_OPTION (pfile, lang) != CLK_ASM) in _cpp_scan_out_logical_line()
766 if (do_it || CPP_OPTION (pfile, lang) != CLK_ASM) in _cpp_scan_out_logical_line()
1211 CPP_OPTION (pfile, discard_comments_in_macro_exp)); in _cpp_create_trad_definition()
H A Derrors.c57 if (CPP_OPTION (pfile, traditional)) in cpp_diagnostic()
/netbsd-src/external/gpl3/gcc/dist/libcpp/
H A Dinit.cc135 CPP_OPTION (pfile, lang) = lang; in cpp_set_lang()
137 CPP_OPTION (pfile, c99) = l->c99; in cpp_set_lang()
138 CPP_OPTION (pfile, cplusplus) = l->cplusplus; in cpp_set_lang()
139 CPP_OPTION (pfile, extended_numbers) = l->extended_numbers; in cpp_set_lang()
140 CPP_OPTION (pfile, extended_identifiers) = l->extended_identifiers; in cpp_set_lang()
141 CPP_OPTION (pfile, c11_identifiers) = l->c11_identifiers; in cpp_set_lang()
142 CPP_OPTION (pfile, std) = l->std; in cpp_set_lang()
143 CPP_OPTION (pfile, digraphs) = l->digraphs; in cpp_set_lang()
144 CPP_OPTION (pfile, uliterals) = l->uliterals; in cpp_set_lang()
145 CPP_OPTION (pfile, rliterals) = l->rliterals; in cpp_set_lang()
[all …]
H A Dcharset.cc715 const char *ncset = CPP_OPTION (pfile, narrow_charset); in cpp_init_iconv()
716 const char *wcset = CPP_OPTION (pfile, wide_charset); in cpp_init_iconv()
719 bool be = CPP_OPTION (pfile, bytes_big_endian); in cpp_init_iconv()
721 if (CPP_OPTION (pfile, wchar_precision) >= 32) in cpp_init_iconv()
723 else if (CPP_OPTION (pfile, wchar_precision) >= 16) in cpp_init_iconv()
736 pfile->narrow_cset_desc.width = CPP_OPTION (pfile, char_precision); in cpp_init_iconv()
738 pfile->utf8_cset_desc.width = CPP_OPTION (pfile, char_precision); in cpp_init_iconv()
748 pfile->wide_cset_desc.width = CPP_OPTION (pfile, wchar_precision); in cpp_init_iconv()
958 if (CPP_OPTION (pfile, cplusplus)) in ucn_valid_in_identifier()
960 else if (CPP_OPTION (pfile, c11_identifiers)) in ucn_valid_in_identifier()
[all …]
H A Dexpr.cc156 if (CPP_OPTION (pfile, ext_numeric_literals)) in interpret_float_suffix()
218 && !CPP_OPTION (pfile, cplusplus) in interpret_float_suffix()
274 if (!CPP_OPTION (pfile, ext_numeric_literals)) in interpret_float_suffix()
279 if (CPP_OPTION (pfile, cplusplus) in interpret_float_suffix()
280 && CPP_OPTION (pfile, lang) > CLK_CXX11 in interpret_float_suffix()
288 if ((w || q) && !CPP_OPTION (pfile, ext_numeric_literals)) in interpret_float_suffix()
343 if (!CPP_OPTION (pfile, cplusplus)) in interpret_int_suffix()
349 if (!CPP_OPTION (pfile, ext_numeric_literals)) in interpret_int_suffix()
354 if (CPP_OPTION (pfile, cplusplus) in interpret_int_suffix()
355 && CPP_OPTION (pfile, lang) > CLK_CXX11 in interpret_int_suffix()
[all …]
H A Dmacro.cc559 if (CPP_OPTION (pfile, warn_date_time)) in _cpp_builtin_macro_text()
649 if (CPP_OPTION (pfile, traditional)) in _cpp_builtin_macro_text()
671 if (CPP_OPTION (pfile, warn_date_time)) in _cpp_builtin_macro_text()
716 if (CPP_OPTION (pfile, directives_only) && pfile->state.in_directive) in _cpp_builtin_macro_text()
1037 if (CPP_OPTION (pfile, lang) != CLK_ASM) in paste_tokens()
1167 && ! CPP_OPTION (pfile, va_opt)) in _cpp_arguments_ok()
1169 if (CPP_OPTION (pfile, cplusplus)) in _cpp_arguments_ok()
1220 bool track_macro_expansion_p = CPP_OPTION (pfile, track_macro_expansion); in collect_args()
1352 CPP_OPTION (pfile, track_macro_expansion)); in collect_args()
1364 CPP_OPTION (pfile, track_macro_expansion)); in collect_args()
[all …]
H A Dlex.cc973 if (CPP_OPTION (pfile, trigraphs)) in _cpp_clean_line()
1050 if (CPP_OPTION (pfile, trigraphs)) in _cpp_clean_line()
1091 if (CPP_OPTION (pfile, trigraphs)) in warn_in_comment()
1141 if (CPP_OPTION (pfile, warn_trigraphs) in _cpp_process_line_notes()
1144 if (CPP_OPTION (pfile, trigraphs)) in _cpp_process_line_notes()
1563 const auto warn_bidi = CPP_OPTION (pfile, cpp_warn_bidirectional); in maybe_warn_bidi_on_close()
1601 const auto warn_bidi = CPP_OPTION (pfile, cpp_warn_bidirectional); in maybe_warn_bidi_on_char()
1675 if (CPP_OPTION (pfile, warn_comments) in _cpp_skip_block_comment()
1811 if (CPP_OPTION (pfile, warn_normalize) < NORMALIZE_STATE_RESULT (s) in warn_about_normalization()
1845 else if (CPP_OPTION (pfile, cplusplus)) in warn_about_normalization()
[all …]
H A Ddirectives.cc315 if (CPP_OPTION (pfile, traditional)) in end_directive()
338 pfile->state.save_comments = ! CPP_OPTION (pfile, discard_comments); in end_directive()
385 && !(dir == &dtable[T_IMPORT] && CPP_OPTION (pfile, objc)) in directive_diagnostics()
389 || (dir == &dtable[T_IMPORT] && !CPP_OPTION (pfile, objc))) in directive_diagnostics()
390 && CPP_OPTION (pfile, cpp_warn_deprecated)) in directive_diagnostics()
436 if (CPP_OPTION (pfile, cpp_pedantic)) in _cpp_handle_directive()
451 && !CPP_OPTION (pfile, elifdef) in _cpp_handle_directive()
454 && CPP_OPTION (pfile, std)) in _cpp_handle_directive()
460 else if (dname->type == CPP_NUMBER && CPP_OPTION (pfile, lang) != CLK_ASM) in _cpp_handle_directive()
463 if (CPP_PEDANTIC (pfile) && ! CPP_OPTION (pfile, preprocessed) in _cpp_handle_directive()
[all …]
H A Dinternal.h62 && CPP_OPTION (pfile, extended_numbers))))
64 #define DIGIT_SEP(c) ((c) == '\'' && CPP_OPTION (pfile, digit_separators))
66 #define CPP_OPTION(PFILE, OPTION) ((PFILE)->opts.OPTION) macro
608 return (CPP_OPTION (this, cpp_warn_bidirectional) in warn_bidi_p()
620 #define _dollar_ok(x) ((x) == '$' && CPP_OPTION (pfile, dollars_in_ident))
655 #define CPP_PEDANTIC(PF) CPP_OPTION (PF, cpp_pedantic)
656 #define CPP_WTRADITIONAL(PF) CPP_OPTION (PF, cpp_warn_traditional)
663 return (!CPP_OPTION (pfile, main_search) in _cpp_in_main_source_file()
H A Dpch.cc592 if (CPP_OPTION (r, preprocessed)) in cpp_valid_state()
614 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
636 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
648 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
689 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
709 if (CPP_OPTION (r, warn_invalid_pch)) in cpp_valid_state()
857 if (deps_restore (r->deps, f, CPP_OPTION (r, restore_pch_deps) ? name : NULL) in cpp_read_state()
H A Dfiles.cc394 if (CPP_OPTION (pfile, remap) && (path = remap_filename (pfile, file))) in find_file_in_dir()
411 if ((CPP_OPTION (pfile, canonical_system_headers) && file->dir->sysp) in find_file_in_dir()
793 CPP_OPTION (pfile, input_charset)); in read_file()
969 if (CPP_OPTION (pfile, deps.style) > (sysp != 0) in _cpp_stack_file()
973 && CPP_OPTION (pfile, deps.ignore_main_file))) in _cpp_stack_file()
983 CPP_OPTION (pfile, preprocessed) in _cpp_stack_file()
984 && !CPP_OPTION (pfile, directives_only)); in _cpp_stack_file()
1215 bool print_dep = CPP_OPTION (pfile, deps.style) > (angle_brackets || !!sysp); in open_file_failed()
1218 if (print_dep && CPP_OPTION (pfile, deps.missing_files) && errno == ENOENT) in open_file_failed()
1223 if (CPP_OPTION (pfile, deps.need_preprocessor_output)) in open_file_failed()
[all …]
H A Dmkdeps.cc401 if (CPP_OPTION (pfile, deps.modules) && d->cmi_name) in make_write()
407 if (CPP_OPTION (pfile, deps.phony_targets)) in make_write()
412 if (!CPP_OPTION (pfile, deps.modules)) in make_write()
H A Dtraditional.cc183 if (CPP_OPTION (pfile, discard_comments_in_macro_exp)) in copy_comment()
191 else if (CPP_OPTION (pfile, discard_comments)) in copy_comment()
764 && CPP_OPTION (pfile, lang) != CLK_ASM) in _cpp_scan_out_logical_line()
771 if (do_it || CPP_OPTION (pfile, lang) != CLK_ASM) in _cpp_scan_out_logical_line()
1216 CPP_OPTION (pfile, discard_comments_in_macro_exp)); in _cpp_create_trad_definition()
H A Derrors.cc36 if (CPP_OPTION (pfile, traditional)) in cpp_diagnostic_get_current_location()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/
H A Dc-ppoutput.c329 if (!CPP_OPTION (pfile, discard_comments)) in scan_translation_unit_trad()
469 if (!CPP_OPTION (pfile, traditional)) in do_line_change()
/netbsd-src/external/gpl3/gcc/dist/gcc/c-family/
H A Dc-ppoutput.cc426 if (!CPP_OPTION (pfile, discard_comments)) in scan_translation_unit_trad()
565 if (!CPP_OPTION (pfile, traditional)) in do_line_change()

12