GCC Middle and Back End API Reference
diagnostic-core.h File Reference
This graph shows which files directly or indirectly include this file:

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

Enumeration Type Documentation

Constants used to discriminate diagnostics.   
Enumerator:
DK_LAST_DIAGNOSTIC_KIND 
DK_POP 

Function Documentation

bool bool void void void ATTRIBUTE_GCC_DIAG ( ,
 
)
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().

bool bool void void error_n ( location_t  ,
int  ,
const char *  ,
const char *  ,
  ... 
)
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 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().


Variable Documentation

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().