GCC Middle and Back End API Reference
|
Go to the source code of this file.
Enumerations | |
enum | diagnostic_t { DK_LAST_DIAGNOSTIC_KIND, DK_POP } |
Functions | |
const char * | trim_filename (const char *) |
void | internal_error (const char *,...) ATTRIBUTE_GCC_DIAG(1 |
bool | warning (int, const char *,...) ATTRIBUTE_GCC_DIAG(2 |
bool bool | warning_at (location_t, int, const char *,...) ATTRIBUTE_GCC_DIAG(3 |
bool bool void | error (const char *,...) ATTRIBUTE_GCC_DIAG(1 |
bool bool void void | error_n (location_t, int, const char *, const char *,...) ATTRIBUTE_GCC_DIAG(3 |
bool bool void void | ATTRIBUTE_GCC_DIAG (4, 5) |
void | error_at (location_t, const char *,...) ATTRIBUTE_GCC_DIAG(2 |
void void | fatal_error (const char *,...) ATTRIBUTE_GCC_DIAG(1 |
bool | pedwarn (location_t, int, const char *,...) ATTRIBUTE_GCC_DIAG(3 |
bool bool | permerror (location_t, const char *,...) ATTRIBUTE_GCC_DIAG(2 |
bool bool void | sorry (const char *,...) ATTRIBUTE_GCC_DIAG(1 |
bool bool void void | inform (location_t, const char *,...) ATTRIBUTE_GCC_DIAG(2 |
bool bool void void void | inform_n (location_t, int, const char *, const char *,...) ATTRIBUTE_GCC_DIAG(3 |
void | verbatim (const char *,...) ATTRIBUTE_GCC_DIAG(1 |
void bool | emit_diagnostic (diagnostic_t, location_t, int, const char *,...) ATTRIBUTE_GCC_DIAG(4 |
void bool bool | seen_error (void) |
void | fnotice (FILE *, const char *,...) ATTRIBUTE_PRINTF_2 |
Variables | |
const char * | progname |
void | ATTRIBUTE_NORETURN |
enum diagnostic_t |
bool bool void void void ATTRIBUTE_GCC_DIAG | ( | 4 | , |
5 | |||
) |
void bool emit_diagnostic | ( | diagnostic_t | , |
location_t | , | ||
int | , | ||
const char * | , | ||
... | |||
) |
bool bool void error | ( | const char * | , |
... | |||
) |
Referenced by _fatal_insn(), add_debug_prefix_map(), add_excls(), add_new_plugin(), add_predicate(), add_presence_absence(), allocate_dynamic_stack_space(), assemble_alias(), assemble_variable(), assign_temp(), build_array_type_1(), build_function_type(), check_automata_insn_issues(), check_automaton_usage(), check_loops_in_regexps(), check_name(), check_operand_nalternatives(), check_regexp_units_distribution(), check_unique_operand_names(), check_usage(), collect_wait(), compare_files(), complain_wrong_lang(), complete_mode(), complex_class(), compute_branch_probabilities(), convert_to_complex(), convert_to_fixed(), convert_to_integer(), convert_to_pointer(), convert_to_real(), convert_to_vector(), coverage_init(), dbg_cnt_process_opt(), dbxout_common_check(), decl_attributes(), declare_weak(), default_expand_builtin_saveregs(), diagnose_sb_0(), do_spec_1(), do_tlink(), do_wait(), driver_wrong_lang_callback(), dump_begin(), dump_gcov_file(), dump_go_spec_init(), dump_open_alternate_stream(), dump_start(), enable_disable_pass(), end_going_arg(), execute_cleanup_cfg_post_optimizing(), expand_asm_operands(), expand_builtin(), expand_builtin___clear_cache(), expand_builtin_atomic_always_lock_free(), expand_builtin_atomic_clear(), expand_builtin_atomic_compare_exchange(), expand_builtin_atomic_exchange(), expand_builtin_atomic_is_lock_free(), expand_builtin_atomic_load(), expand_builtin_atomic_store(), expand_builtin_eh_return_data_regno(), expand_builtin_frame_address(), expand_builtin_object_size(), expand_builtin_prefetch(), expand_builtin_set_thread_pointer(), expand_builtin_thread_pointer(), expand_call_inline(), expand_eh_return(), expand_expr_addr_expr_1(), expand_expr_real_1(), expand_one_var(), fix_register(), fold_builtin_next_arg(), for_each_matching_insn(), get_section(), gimple_verify_flow_info(), gimplify_asm_expr(), gimplify_call_expr(), gimplify_scan_omp_clauses(), globalize_reg(), go_finish(), handle_alias_pairs(), handle_common_deferred_options(), handle_dll_attribute(), insert_bypass(), ipa_tm_scan_irr_block(), ira_setup_eliminable_regset(), layout_type(), lookup_compiler(), main(), make_complex_modes(), make_decl_rtl(), make_partial_integer_mode(), make_vector_mode(), make_vector_modes(), mark_mode_tests(), new_adjust(), new_mode(), omp_is_private(), omp_notice_threadprivate_variable(), omp_notice_variable(), output_constant(), output_constructor_bitfield(), parse_input_constraint(), parse_output_constraint(), parse_plugin_arg_opt(), perror_with_name(), position_pass(), process_decls(), process_excls(), process_options(), process_presence_absence_names(), process_presence_absence_patterns(), process_regexp(), read_count_file(), read_counts_file(), read_input_list(), read_profile_edge_counts(), recompile_files(), register_callback(), replace_duplicating_operands_in_pattern(), reset_float_format(), resolve_operand_name_1(), rest_of_clean_state(), rtl_verify_bb_insn_chain(), rtl_verify_bb_insns(), rtl_verify_bb_pointers(), rtl_verify_edges(), rtl_verify_fallthru(), scan_libraries(), set_param_value(), spill_failure(), start_tweaking(), symtab_resolve_alias(), tree_conflicts_with_clobbers_p(), tree_inlinable_function_p(), try_init_one_plugin(), vector_class(), verify_address(), verify_cgraph_node(), verify_def(), verify_dominators(), verify_edge_count_and_frequency(), verify_eh_dispatch_edge(), verify_eh_edges(), verify_eh_throw_stmt_node(), verify_eh_tree(), verify_expr(), verify_flow_info(), verify_gimple_assign_binary(), verify_gimple_assign_single(), verify_gimple_assign_ternary(), verify_gimple_assign_unary(), verify_gimple_call(), verify_gimple_comparison(), verify_gimple_goto(), verify_gimple_in_cfg(), verify_gimple_label(), verify_gimple_phi(), verify_gimple_return(), verify_gimple_stmt(), verify_gimple_switch(), verify_histograms(), verify_hot_cold_block_grouping(), verify_imm_links(), verify_location(), verify_loop_structure(), verify_phi_args(), verify_rtx_sharing(), verify_ssa(), verify_ssa_name(), verify_ssa_operands(), verify_symtab_base(), verify_types_in_gimple_min_lval(), verify_types_in_gimple_reference(), verify_use(), visit_hist(), and write_insn_constraint_len().
void error_at | ( | location_t | , |
const char * | , | ||
... | |||
) |
Referenced by assemble_alias(), check_counter(), check_omp_nesting_restrictions(), common_handle_option(), default_options_optimization(), diagnose_tm_1(), diagnose_tm_1_op(), do_assemble_alias(), enable_warning_as_error(), expand_builtin_va_start(), finish_options(), frame_offset_overflow(), gimplify_call_expr(), gimplify_va_arg_expr(), globalize_reg(), handle_param(), ipa_tm_diagnose_tm_safe(), ipa_tm_diagnose_transaction(), lto_symtab_merge_decls_1(), lto_symtab_resolve_symbols(), omp_notice_threadprivate_variable(), omp_notice_variable(), read_cmdline_option(), set_debug_level(), and set_struct_debug_option().
bool bool void void error_n | ( | location_t | , |
int | , | ||
const char * | , | ||
const char * | , | ||
... | |||
) |
void void fatal_error | ( | const char * | , |
... | |||
) |
Referenced by add_new_plugin(), add_sysrooted_prefix(), cgraph_get_body(), collect_execute(), collect_wait(), compare_debug_auxbase_opt_spec_function(), compare_debug_dump_opt_spec_function(), compare_debug_self_opt_spec_function(), compare_version_strings(), create_at_file(), default_plugin_dir_name(), do_self_spec(), do_spec_1(), driver_handle_option(), eval_spec_function(), execute(), finalize(), fixup_call_stmt_edges_1(), getenv_spec_function(), ggc_pch_finish(), ggc_pch_read(), ggc_pch_write_object(), gt_pch_restore(), gt_pch_save(), handle_braces(), handle_spec_function(), init_asm_output(), init_cloog_input_file(), inline_read_summary(), input_symtab(), ipa_reference_read_optimization_summary(), lto_check_version(), lto_section_overrun(), lto_symtab_resolve_symbols(), lto_value_range_error(), main(), maybe_run_lto_and_relink(), merge_profile_summaries(), open_auxiliary_file(), open_graph_file(), print_multilib_info(), process_brace_body(), process_options(), read_specs(), recompile_files(), gcc::pass_manager::register_pass(), replace_extension_spec_func(), resolve_lib_name(), scan_libraries(), scan_prog_file(), set_multilib_dir(), setup_core_dumping(), streamer_get_builtin_tree(), try_init_one_plugin(), unpack_ts_function_decl_value_fields(), unpack_ts_optimization(), unpack_ts_target_option(), used_arg(), version_compare_spec_function(), and write_pch_globals().
void fnotice | ( | FILE * | , |
const char * | , | ||
... | |||
) |
Referenced by add_line_counts(), diagnostic_action_after_output(), diagnostic_report_diagnostic(), do_spec_1(), error_recursion(), execute(), executed_summary(), find_source(), function_summary(), generate_results(), init_spec(), load_specs(), main(), output_branch_count(), output_gcov_file(), output_lines(), print_usage(), print_version(), read_count_file(), read_graph_file(), read_specs(), set_spec(), solve_flow_graph(), warn_if_plugins(), and xputenv().
bool bool void void inform | ( | location_t | , |
const char * | , | ||
... | |||
) |
Referenced by check_counter(), check_ic_target(), compute_branch_probabilities(), const_ok_for_output_1(), decl_attributes(), do_spec_1(), do_warn_aggressive_loop_optimizations(), enable_disable_pass(), expand_builtin_sync_operation(), extract_fixed_bit_field(), finish_options(), get_coverage_counts(), get_section(), gimplify_va_arg_expr(), globalize_reg(), init_asm_output(), input_gimple_stmt(), lto_symtab_merge_decls_1(), lto_symtab_merge_decls_2(), lto_symtab_resolve_symbols(), main(), place_field(), read_cmdline_option(), read_profile_edge_counts(), verify_gimple_in_cfg(), vt_find_locations(), and warn_uninit().
bool bool void void void inform_n | ( | location_t | , |
int | , | ||
const char * | , | ||
const char * | , | ||
... | |||
) |
void internal_error | ( | const char * | , |
... | |||
) |
Referenced by block_ends_with_call_p(), block_ends_with_condjump_p(), bp_unpack_string(), can_duplicate_block_p(), can_merge_blocks_p(), can_remove_branch_p(), opt_pass::clone(), compile(), crash_signal(), create_basic_block(), delete_basic_block(), DFS_write_tree(), dump_bb_for_graph(), duplicate_block(), eliminate_useless_phis(), emit_mode_adjustments(), execute(), expand_asm_operands(), fail_abnormal_edge_coalesce(), fancy_abort(), flow_call_edges_add(), fold_check_failed(), force_nonfallthru(), gimple_check_failed(), gimple_gen_const_delta_profiler(), gimplify_expr(), init_ggc(), input_cgraph_1(), input_edge(), input_gimple_stmt(), input_node(), lra_constraints(), lto_end_compression(), lto_end_uncompression(), lto_get_section_name(), lto_tag_check(), lto_tag_check_range(), lto_tag_check_set(), lto_write_tree(), make_forwarder_block(), mark_functions_to_output(), merge_blocks(), move_block_after(), omp_clause_check_failed(), omp_clause_operand_check_failed(), omp_clause_range_check_failed(), output_operand_lossage(), predict_edge(), predicted_by_p(), print_specific_help(), redirect_edge_and_branch(), redirect_edge_and_branch_force(), register_ssa_partition_check(), rewrite_trees(), rtl_check_failed_block_symbol(), rtl_check_failed_bounds(), rtl_check_failed_code1(), rtl_check_failed_code2(), rtl_check_failed_code_mode(), rtl_check_failed_flag(), rtl_check_failed_type1(), rtl_check_failed_type2(), rtl_verify_bb_layout(), rtvec_check_failed_bounds(), split_block(), split_edge(), streamer_read_string(), string_for_index(), tree_check_failed(), tree_class_check_failed(), tree_contains_struct_check_failed(), tree_not_check_failed(), tree_not_class_check_failed(), tree_operand_check_failed(), tree_range_check_failed(), tree_vec_elt_check_failed(), update_ssa(), validate_value_data(), verify_cgraph_node(), verify_eh_tree(), verify_flow_info(), verify_gimple_in_cfg(), verify_gimple_in_seq(), verify_histograms(), verify_rtx_sharing(), verify_ssa(), and verify_symtab_node().
bool pedwarn | ( | location_t | , |
int | , | ||
const char * | , | ||
... | |||
) |
Pass one of the OPT_W* from options.h as the second parameter.
Referenced by check_global_declaration_1(), and fold_builtin_inf().
bool bool permerror | ( | location_t | , |
const char * | , | ||
... | |||
) |
void bool bool seen_error | ( | void | ) |
Return true if an error or a "sorry" has been seen. Various processing is disabled after errors.
Referenced by compile(), compile_file(), do_compile(), dwarf2out_finish(), early_inliner(), emit_debug_global_declarations(), execute_function_todo(), expand_builtin_expect(), finalize(), gate_all_early_local_passes(), gate_all_early_optimizations(), gate_expand_omp(), gate_ipa_pta(), gate_lto_out(), gate_pure_const(), gate_reference(), gate_rest_of_compilation(), get_coverage_counts(), gimple_push_cleanup(), gimplify_body(), gimplify_var_or_parm_decl(), ipa_passes(), ipa_write_summaries(), label_to_block_fn(), lower_omp_1(), main(), mudflap_finish_file(), output_asm_statements(), rest_of_decl_compilation(), rest_of_type_compilation(), toplev_main(), varpool_output_variables(), varpool_remove_unreferenced_decls(), verify_cgraph(), verify_cgraph_node(), and verify_symtab_node().
bool bool void sorry | ( | const char * | , |
... | |||
) |
const char* trim_filename | ( | const char * | ) |
Referenced by emit_insn_modes_h(), fancy_abort(), gimple_check_failed(), new_adjust(), new_mode(), omp_clause_check_failed(), omp_clause_operand_check_failed(), omp_clause_range_check_failed(), rtl_check_failed_block_symbol(), rtl_check_failed_bounds(), rtl_check_failed_code1(), rtl_check_failed_code2(), rtl_check_failed_code_mode(), rtl_check_failed_flag(), rtl_check_failed_type1(), rtl_check_failed_type2(), rtvec_check_failed_bounds(), tree_check_failed(), tree_class_check_failed(), tree_contains_struct_check_failed(), tree_not_check_failed(), tree_not_class_check_failed(), tree_operand_check_failed(), tree_range_check_failed(), and tree_vec_elt_check_failed().
void verbatim | ( | const char * | , |
... | |||
) |
bool warning | ( | int | , |
const char * | , | ||
... | |||
) |
Pass one of the OPT_W* from options.h as the first parameter.
Referenced by add_presence_absence(), align_variable(), assemble_noswitch_variable(), build_type_attribute_qual_variant(), change_decl_assembler_name(), check_automata_insn_issues(), check_automaton_usage(), check_global_declaration_1(), check_usage(), complain_wrong_lang(), coverage_end_function(), decl_attributes(), declare_weak(), default_assemble_visibility(), default_target_option_pragma_parse(), default_target_option_valid_attribute_p(), do_warn_unused_parameter(), dump_switch_p_1(), expand_asm_operands(), expand_builtin_frame_address(), expand_builtin_prefetch(), expand_call(), expand_call_inline(), expand_function(), final_start_function(), finalize_record_size(), fix_register(), fixed_from_string(), fold_overflow_warning(), fold_truth_andor_1(), get_coverage_counts(), get_memmodel(), get_simple_loop_desc(), gimple_expand_cfg(), handle_alias_pairs(), handle_dll_attribute(), init_function_start(), insert_bypass(), is_too_expensive(), layout_decl(), main(), make_decl_rtl(), make_insn_raw(), merge_dllimport_decl_attributes(), mf_xform_derefs_1(), mudflap_finish_file(), mx_register_decls(), opt_info_switch_p(), opt_info_switch_p_1(), optimize_bit_field_compare(), output_stack_usage(), parse_input_constraint(), parse_output_constraint(), place_field(), process_command(), process_decls(), process_options(), reload(), rest_of_handle_branch_target_load_optimize2(), setjmp_args_warning(), setjmp_vars_warning(), simplify_const_relational_operation(), tree_inlinable_function_p(), warn_deprecated_use(), and weak_finish_1().
bool bool warning_at | ( | location_t | , |
int | , | ||
const char * | , | ||
... | |||
) |
Referenced by c_strlen(), check_array_ref(), common_handle_option(), decode_d_option(), do_warn_aggressive_loop_optimizations(), do_warn_unused_result(), execute_warn_function_return(), expand_builtin_init_trampoline(), expand_builtin_memory_chk(), expand_expr_real_1(), expand_vector_condition(), expand_vector_parallel(), expand_vector_piecewise(), extract_fixed_bit_field(), fold_builtin_next_arg(), fold_undefer_overflow_warnings(), get_coverage_counts(), gimplify_va_arg_expr(), globalize_reg(), input_gimple_stmt(), lower_vec_perm(), lto_symtab_merge_decls_2(), maybe_emit_chk_warning(), maybe_emit_free_warning(), maybe_emit_sprintf_chk_warning(), number_of_iterations_exit(), print_ignored_options(), process_common_attributes(), process_function_and_variable_attributes(), read_cmdline_option(), search_for_addr_array(), set_debug_level(), simplify_abs_using_ranges(), simplify_cond_using_ranges(), simplify_div_or_mod_using_ranges(), suggest_attribute(), update_range_test(), vrp_evaluate_conditional(), and warn_uninit().
void void ATTRIBUTE_NORETURN |
const char* progname |
@verbatim Basic error reporting routines.
Copyright (C) 1999-2013 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.
warning, error, and fatal. These definitions are suitable for use in the generator programs; the compiler has a more elaborate suite of diagnostic printers, found in diagnostic.c.
Set this to argv[0] at the beginning of main.
Referenced by close_output_files(), diagnostic_build_prefix(), diagnostic_finish(), display_help(), error(), execute(), fatal(), general_init(), internal_error(), main(), parse_program_options(), print_usage(), print_version(), read_state(), read_state_structures(), read_state_typedefs(), read_state_variables(), set_gc_used(), warning(), write_insn_preds_c(), write_state(), state_writer::write_state_structures(), state_writer::write_state_typedefs(), state_writer::write_state_variables(), write_tm_constrs_h(), write_tm_preds_h(), and write_types().