#include <stdarg.h>#include <stdlib.h>#include <unistd.h>#include <sys/types.h>#include <signal.h>#include <string.h>#include <ctype.h>#include <errno.h>#include <cmplrs/rcodes.h>#include "defs.h"#include "errors.h"#include "err_host.h"#include "erglob.h"#include "file_util.h"#include "tracing.h"#include "glob.h"#include "errdesc.h"#include "vstring.h"

Go to the source code of this file.
Data Types | |
| type | SEVERITY_DESCRIPTOR |
| type | LIMIT_STRUCT |
Defines | |
| #define | USE_STANDARD_TYPES |
| #define | IN_ERRORS_C |
| #define | SEV_level(n) (Severities[n].level) |
| #define | SEV_symbol(n) (Severities[n].symbol) |
| #define | SEV_name(n) (Severities[n].name) |
| #define | Phase_Num(n) (Phases[n].phase) |
| #define | Phase_List(n) (Phases[n].descriptors) |
| #define | Phase_Name(n) (Phases[n].name) |
| #define | Dont_Print_Warning(i) dont_print[i-RAG_EN_FIRST] |
| #define | Heed_Woff(rag_errnum, severity) (Dont_Print_Warning(rag_errnum) && (severity < ES_ERRBENIGN) ) |
| #define | BUFLEN 1024 |
| #define | BUFLEN_NONUSER 1024 |
| #define | BUFLEN_USER 512 |
Functions/Subroutines | |
| void | Rag_Handle_Woff_Args (char *wstring) |
| static void | dump_backtrace (FILE *fp=stderr, size_t start_frame=1) |
| static void | catch_signal (INT sig, INT error_num) |
| static void | setup_signal_handler (int s) |
| void | Handle_Signals (void) |
| void | Set_Error_File (const char *fname) |
| static BOOL | Init_Error_File (void) |
| void | Set_Error_Trace (FILE *stream) |
| void | Set_Error_Source (const char *filename) |
| void | Set_Error_Line (INT lineno) |
| void | Set_Error_Phase (const char *phase) |
| const char * | Get_Error_Phase (void) |
| BOOL | Get_Error_Count (INT *ErrCount, INT *WarnCount) |
| void | Init_Error_Handler (INT Max_Errors_Allowed) |
| static ERROR_DESC * | Find_Error_Desc (INT ecode) |
| static BOOL | Init_Crash_Report (void) |
| static void | Emit (FILE *File, char *msg, char *hmsg, char *emsg, BOOL report_location) |
| static void | Emit_Message (char *hmsg, char *emsg) |
| static void | ErrMsg_Report_Nonuser (ERROR_DESC *edesc, INT ecode, INT line, const char *file, va_list vp) |
| static void | ErrMsg_Report_User (ERROR_DESC *edesc, INT ecode, INT line, const char *file, va_list vp) |
| static void | ErrMsg_Report (INT ecode, INT line, const char *file, va_list vp) |
| void | ErrMsg (INT ecode,...) |
| void | ErrMsgLine (INT ecode, INT line,...) |
| void | Abort_Compiler_Location (const char *file_name, INT line_number) |
| void | Fail_Assertion (INT ecode,...) |
| void | Fail_FmtAssertion (const char *fmt,...) |
| void | Fatal_Error (const char *fmt,...) |
| void | Set_Current_Phase_Number (INT phase) |
| INT | Get_Current_Phase_Number (void) |
| void | Set_Error_Tables (ERROR_DESC_TABLE *edt, const char *errlist[]) |
| void | Set_Error_Descriptor (INT phase, ERROR_DESC *descriptor) |
| BOOL | DevWarn_Enabled () |
| void | DevWarn (const char *fmt,...) |
| static LIMIT_STRUCT * | DevWarn_limit_search (const char *const src_fname, const UINT src_line) |
| BOOL | Count_Limit_DevWarn (const char *const src_fname, const UINT src_line, const UINT limit) |
| void | DevWarn_Toggle (void) |
| BOOL | Had_Internal_Error (void) |
Variables | |
| INT | Min_Error_Severity = ES_ADVISORY |
| INT | Conformance_Level = ES_IGNORE |
| static const char * | Compiler_File = NULL |
| static INT | Compiler_Line = 0 |
| static FILE * | Error_File = NULL |
| static const char * | Error_File_Name = NULL |
| static FILE * | Trace_File = NULL |
| static char | source_file_name [256] |
| static char * | Source_File_Name = &source_file_name[0] |
| static INT | Source_Line = ERROR_LINE_UNKNOWN |
| static const char * | Current_Phase = "<unknown phase>" |
| static INT | Error_Counts [ES_MAX+1] |
| static INT | Error_Count = 0 |
| static BOOL | Phase_Error = FALSE |
| static INT | Max_Errors = 100 |
| static BOOL | Had_Compiler_Error = FALSE |
| static SEVERITY_DESCRIPTOR | Severities [] |
| static ERROR_DESC_TABLE * | Phases = NULL |
| static const char ** | host_errlist = NULL |
| static bool | do_traceback = false |
| char * | sys_siglist [] |
| static char | dont_print [RAG_EN_LAST-RAG_EN_FIRST+1] |
| static FILE * | Crash_File |
| static INT | Current_Phase_Number = 0 |
| static BOOL | dev_warn_enabled = FALSE |
| #define BUFLEN 1024 |
Referenced by ErrMsg_Report(), ErrMsg_Report_Nonuser(), and ErrMsg_Report_User().
| #define BUFLEN_NONUSER 1024 |
Referenced by ErrMsg_Report_Nonuser().
| #define BUFLEN_USER 512 |
Referenced by ErrMsg_Report_User().
| #define Dont_Print_Warning | ( | i | ) | dont_print[i-RAG_EN_FIRST] |
| #define Heed_Woff | ( | rag_errnum, | |||
| severity | ) | (Dont_Print_Warning(rag_errnum) && (severity < ES_ERRBENIGN) ) |
Definition at line 219 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), and ErrMsg_Report_User().
| #define IN_ERRORS_C |
Definition at line 101 of file errors.cxx.
| #define Phase_List | ( | n | ) | (Phases[n].descriptors) |
Definition at line 208 of file errors.cxx.
Referenced by DIPA_Phase::Accum_Stats(), Find_Error_Desc(), and DIPA_Phase_Manager::Register_Phase().
| #define SEV_level | ( | n | ) | (Severities[n].level) |
Definition at line 185 of file errors.cxx.
| #define SEV_name | ( | n | ) | (Severities[n].name) |
Definition at line 187 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Fail_FmtAssertion(), and Fatal_Error().
| #define SEV_symbol | ( | n | ) | (Severities[n].symbol) |
Definition at line 186 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), Fail_FmtAssertion(), and Fatal_Error().
| #define USE_STANDARD_TYPES |
Definition at line 70 of file errors.cxx.
Definition at line 257 of file errors.cxx.
References Current_Phase, do_traceback, EC_Signal, ErrMsgLine(), ERROR_LINE_UNKNOWN, exit(), Fatal_Error(), fflush(), fprintf(), getpid, kill, RC_INTERNAL_ERROR, SIGBUS, signal(), Signal_Cleanup(), strerror(), and strsignal().
Referenced by setup_signal_handler().
Definition at line 1643 of file errors.cxx.
References LIMIT_STRUCT::count, DevWarn, DevWarn_limit_search(), Init_Error_File(), NULL, s, Trace_File, and TRUE.
| void DevWarn | ( | const char * | fmt, | |
| ... | ||||
| ) |
Definition at line 1522 of file errors.cxx.
| static LIMIT_STRUCT* DevWarn_limit_search | ( | const char *const | src_fname, | |
| const UINT | src_line | |||
| ) | [static] |
Definition at line 1578 of file errors.cxx.
References LIMIT_STRUCT::count, LIMIT_STRUCT::fname, i, LIMIT_STRUCT::line, NULL, realloc, strcmp(), and UINT.
Referenced by Count_Limit_DevWarn().
| static void Emit | ( | FILE * | File, | |
| char * | msg, | |||
| char * | hmsg, | |||
| char * | emsg, | |||
| BOOL | report_location | |||
| ) | [static] |
Definition at line 705 of file errors.cxx.
References do_traceback, dump_backtrace(), fflush(), and fputs().
Referenced by Emit_Message().
| static void Emit_Message | ( | char * | hmsg, | |
| char * | emsg | |||
| ) | [static] |
Definition at line 723 of file errors.cxx.
References BOOL, Compiler_File, Compiler_Line, do_traceback, Emit(), Error_File, FALSE, Init_Crash_Report(), Init_Error_File(), msg, NULL, sprintf(), Trace_File, and TRUE.
Referenced by ErrMsg_Report(), ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Fail_App_Assertion(), Fail_FmtAssertion(), and Fatal_Error().
Definition at line 1204 of file errors.cxx.
Referenced by IPA_FEEDBACK_STRINGS::Add_id_string(), Add_Symbols(), Adjust_Opt_Level(), DYN_ARRAY< T >::Alloc_array(), MAP::Alloc_hash_vec(), CODEMAP::Alloc_hash_vec(), LFTR::Alloc_hash_vec(), idmap::ID_MAP< NODE_TYPE, KEY_TYPE >::Alloc_table_space(), Allocate_Block(), Allocate_Large_Block(), BB_LIST::Append(), BB_LIST_CONTAINER::Append(), ARRAY< TT >::ARRAY(), ARY_Init_List(), Backend_Processing(), BB_NODE_SET::BB_NODE_SET(), bblist_alloc(), Build_Option_String(), Calculate_Array_Size(), RINIT::Cancel_internal_gotos(), Cg_Dwarf_Gen_Asm_File_Table(), CG_Fini(), CG_LOOP_Print_Strongly_Connected_Components_With_Costs(), CG_LOOP_SCC_Print_With_Costs(), CGEMIT_Print_Variable_Info(), CGSPILL_Get_TN_Spill_Location(), CGSPILL_Load_From_Memory(), CFG::Change_block_kind(), DCE::Check_constant_cond_br(), DCE::Check_required_blocks(), check_revision(), check_size(), DCE::Check_unreachable_blocks(), Cleanup_Files(), Close_File(), complex_divide(), complex_sqrt(), Configure(), Configure_Alias_Options(), DFBASE::Connect_graph(), Create_TY_For_Tree(), cwh_intrin_ieee_intrin_call_helper(), cwh_intrin_ieee_intrin_helper(), DEBUG_Configure_Alignment(), DEBUG_Push_Config(), Depth_First_Ordering(), Disable_opt(), DRA_Open_And_Map_File(), DRA_Process_Requests(), DRA_Set_Write_Location(), Em_Add_Bytes_To_Scn(), Em_Add_New_Rel(), Em_Add_New_Weak_Symbol(), Em_Add_Zeros_To_Scn(), Em_Begin_File(), Em_Define_Symbol(), Em_Get_Symbol_Name(), Em_Get_Symbol_Value(), Em_New_Section(), Em_Set_Symbol_Binding(), Em_Undefine_Symbol(), Em_Write_Reginfo(), Emit_Interface_Scn(), EMT_End_File(), idmap::ID_MAP< NODE_TYPE, KEY_TYPE >::Enlarge(), Equivalent_Types(), Exp_Ldst(), IPAA_FORMAL_MAP::Expand(), Expand_Compare_And_Select(), Expand_Expr(), Expand_Recip_Sqrt(), Expand_TOP_intrncall(), Extract_Complex_Imag(), Extract_Complex_Real(), Extract_Paired_Hi(), Extract_Paired_Lo(), Extract_Quad_Hi(), Extract_Quad_Lo(), Finalize_Stack_Frame(), DCE::Find_assumed_goto_blocks(), CLIST_NODE::Find_Next(), Fix_g_O(), Fix_LRA_Blues(), DYN_ARRAY< T >::Force_Alloc_array(), Force_Map(), Gather_Uplevel_References(), Gen_Adjusted_TN(), Gen_BB(), Gen_BB_N(), Gen_File_Table(), Gen_Register_TN(), Generate_Addr_Reset(), Generate_Asm_String(), get_command_line(), get_cycle(), get_extra_args(), get_extra_symtab_args(), Get_Numeric_Flag(), Get_Section_ST_With_Given_Name(), Get_Trace_Phase_Number(), Hash_TCON(), Host_To_Targ(), Host_To_Targ_Complex(), Host_To_Targ_Complex_10(), Host_To_Targ_Complex_4(), Host_To_Targ_Float(), Host_To_Targ_Float_10(), Host_To_Targ_Float_4(), Host_To_Targ_UV(), identify_schedtype(), IDX_32_SET::IDX_32_SET(), Increase_Data_Buffer_Size(), Increase_File_Table_Size(), Increase_Incl_Table_Size(), ARRAY< TT >::Init(), Initialize_Annotation(), Initialize_Interface_Description(), Initialize_Option_Group(), Initialize_Stack_Frame(), Inliner_Read_PUs(), Interface_Scn_Add_Def(), IP_READ_file_info(), IP_READ_pu(), IP_READ_pu_infos(), IP_write_global_symtab(), ipa_compile_init(), IPA_FEEDBACK_STRINGS::IPA_FEEDBACK_STRINGS(), ipa_link_line_argv(), IPA_LNO_Close_Output_Info(), IPA_LNO_Open_Input_File(), IPA_LNO_Open_Output_Info(), ipacom_add_comment(), ipacom_doit(), ipacom_process_file(), ipacom_process_symtab(), ir_b_create_map(), ir_b_grow_map(), ir_size(), list_malloc(), LNO_Configure(), LNO_Push_Config(), Lnoptimizer(), Localize_Variable(), lower_bit_field_id(), main(), Make_Complex(), makedepend_error(), IPAA_DF_SOLVER::Meet(), MEM_POOL_Alloc_P(), MEM_POOL_Realloc_P(), Merge_St_With_St(), Olimit_Region_Insertion(), Open_Append_File(), Open_Create_File(), output_queue::open_output_file(), Open_Output_Info(), Open_Read_File(), open_specified_input(), Optimize_Select(), Perform_Alias_Class_Annotation(), Pre_Optimizer(), Preorder_annotate_PU_and_kids(), Prepare_Listing_File(), Prepare_Source(), Prepare_Target(), CODEREP_LIST_CONTAINER::Prepend(), CR_PAIR_LIST::Prepend(), CODEREP_LIST::Prepend(), BB_LIST_CONTAINER::Prepend(), CR_PAIR_LIST_CONTAINER::Prepend(), print_elf_error(), Process_Command_Line(), Process_Command_Line_Group(), Process_Feedback_Options(), Process_Inline_Options(), Process_IPA_Options(), Process_Option_File(), Process_Trace_Option(), process_whirl(), output_queue::pu_tree_add_comments(), put_location(), put_subprogram(), put_variable(), Read_Global_Info(), Read_Local_Info(), DYN_ARRAY< T >::Realloc_array(), Realloc_Clear(), REGION_init(), Region_skip(), DSE::Set_Required_VSE(), Set_Trace(), Set_Trace_File(), Set_Trace_Pu(), Set_Trace_Pu_Number(), Set_Trace_Region_Number(), sPrint_TN(), Stab_Compare_Types(), Targ_Atoc(), Targ_Convert_Length(), Targ_Emit_Const(), Targ_fp_class(), Targ_Hexfptoc(), Targ_Is_Integral(), Targ_Is_Zero(), Targ_Print(), Targ_To_Host(), Targ_To_Host_ComplexImag(), Targ_To_Host_ComplexReal(), Targ_To_Host_Float(), Targ_To_Host_Quad(), Targ_To_Signed_Host(), TCON2C_translate(), WN_INSTRUMENT_WALKER::Tree_Walk(), DU_MANAGER::Ud_Add_Def(), update_state(), VHO_Lower_Driver(), WFE_Assemble_Alias(), WFE_File_Init(), WFE_omp_error(), WFE_Start_Function(), WGEN_Assemble_Alias(), WGEN_omp_error(), WN_close_file(), WN_close_output(), WN_write_PU_Infos(), WN_write_symtab(), WN_write_tree(), Write_Attributes(), IPA_LNO_WRITE_FILE::Write_Headers(), and write_output().
Definition at line 1166 of file errors.cxx.
References ED_user, ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), and Find_Error_Desc().
Referenced by ErrMsg(), ErrMsgLine(), Fail_Assertion(), FatalMsg(), and WarnMsg().
| static void ErrMsg_Report_Nonuser | ( | ERROR_DESC * | edesc, | |
| INT | ecode, | |||
| INT | line, | |||
| const char * | file, | |||
| va_list | vp | |||
| ) | [static] |
Definition at line 773 of file errors.cxx.
References buf, BUFLEN, BUFLEN_NONUSER, Conformance_Level, Cur_PU_Name, Current_Phase, EC_Signal, EC_Too_Many, ED_compiler, ED_continuation, ED_format, ED_kind, ED_parms, ED_rag_errnum, ED_severity, ED_unknown, Emit_Message(), err_str, ErrMsgLine(), errno, Error_Count, Error_Counts, ERROR_LINE_UNKNOWN, ES_CONFORMANCE, ES_ERRABORT, ES_ERROR, ES_ERRPHASE, ET_DOUBLE, ET_FLOAT, ET_INT, ET_INT32, ET_INT64, ET_POINTER, ET_STRING, ET_SYSERR, ET_UNKNOWN, exit(), getpid, Had_Compiler_Error, Heed_Woff, host_errlist, Host_Format_Parm(), INT, INT64, kill, MAX_ERR_PARMS, Max_Errors, MIN, Min_Error_Severity, mINT32, n, NULL, Phase_Error, RC_INTERNAL_ERROR, result, SEV_name, SEV_symbol, Signal_Cleanup(), snprintf(), sprintf(), strerror(), strlen(), strncpy(), TRUE, va_arg, vstr_begin(), vstr_concat(), vstr_end(), vstr_len, vstr_sprintf(), and vstr_str.
Referenced by ErrMsg_Report().
| static void ErrMsg_Report_User | ( | ERROR_DESC * | edesc, | |
| INT | ecode, | |||
| INT | line, | |||
| const char * | file, | |||
| va_list | vp | |||
| ) | [static] |
Definition at line 974 of file errors.cxx.
References buf, BUFLEN, BUFLEN_USER, Conformance_Level, EC_Signal, EC_Too_Many, ED_compiler, ED_continuation, ED_format, ED_kind, ED_parms, ED_rag_errnum, ED_severity, ED_unknown, Emit_Message(), err_str, ErrMsgLine(), errno, Error_Count, Error_Counts, ERROR_LINE_UNKNOWN, ES_CONFORMANCE, ES_ERRABORT, ES_ERROR, ES_ERRPHASE, ET_DOUBLE, ET_FLOAT, ET_INT, ET_INT32, ET_INT64, ET_POINTER, ET_STRING, ET_SYSERR, ET_UNKNOWN, exit(), getpid, Had_Compiler_Error, Heed_Woff, host_errlist, Host_Format_Parm(), INT, INT64, kill, MAX_ERR_PARMS, Max_Errors, Min_Error_Severity, mINT32, NULL, Phase_Error, RC_NORECOVER_USER_ERROR, result, SEV_name, Signal_Cleanup(), sprintf(), strerror(), strlen(), strncpy(), TRUE, va_arg, vstr_begin(), vstr_concat(), vstr_end(), vstr_sprintf(), and vstr_str.
Referenced by ErrMsg_Report().
Definition at line 1216 of file errors.cxx.
References ErrMsg_Report(), Source_File_Name, va_end, and va_start.
Referenced by Can_Apply_Default_Private(), catch_signal(), OPT_STAB::Compute_FSA_stmt_or_expr(), ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Handle_ILOAD(), Handle_ISTORE(), Infer_Reduction_Operators(), Memop_Variant(), Process_Parallel_Do(), and Reduction_Operator().
Definition at line 1287 of file errors.cxx.
References do_traceback, ErrMsg_Report(), Source_File_Name, Source_Line, va_end, and va_start.
| void Fail_FmtAssertion | ( | const char * | fmt, | |
| ... | ||||
| ) |
Definition at line 1310 of file errors.cxx.
Referenced by LINEX::Add_access(), LOOPINFO::Add_bound(), LINEX::Add_coupled_terms(), Add_DST_variable(), CODEMAP::Add_expr_and_fold(), AGGINIT::Add_Init_For_WHIRL(), Add_Inito_For_Tree(), Add_To_Iolist(), Alloca_Var_List::Alloca_Var_List(), analyze_addressof_ty_being_split(), FAVOR_DELAY_HEUR::Attach_OP_Heur_Info(), build_for_clause_list(), build_parallel_clause_list(), build_parallel_for_clause_list(), build_parallel_sections_clause_list(), build_sections_clause_list(), build_single_clause_list(), Cg_Dwarf_Output_Asm_Bytes_Sym_Relocs(), Cg_Dwarf_Symtab_Entry(), CG_Set_Is_Stack_Used(), check_atomic_expression(), check_for_directive(), check_parallel_directive(), check_parallel_for_directive(), check_parallel_sections_directive(), GRA_PARA_REGION_MGR::Check_Register_Allocation(), check_sections_directive(), check_single_directive(), FAVOR_DELAY_HEUR::Choose_Better_Of_Tie(), IP_ALIAS_CLASSIFICATION::Classify_deref_of_expr(), coerceOFFSET(), GRA_PARA_REGION::Collect_Reg_Used_And_Def_For_BBs(), Compute_Return_Preg_Offset(), Compute_Return_Pregs(), OPT_STAB::Convert_ST_to_AUX(), copyout_temp_to_var(), Create_DST_type_For_Tree(), Create_Field_Entry(), Create_Io_Entry(), Create_Local_Variables(), Create_MicroTask(), Create_New_DST(), Create_ST_For_Tree(), Create_TY_For_Tree(), cwh_stmt_call_helper(), cwh_stmt_return_altentry(), cwh_stmt_return_scalar(), OPT_MTYPE_B::Do_mtype_b_cr(), DST_enter_normal_field(), DST_enter_struct_union_members(), em_popcount(), emit_builtin_compare_and_swap(), emit_builtin_lock_release(), emit_builtin_lock_test_and_set(), Enter_Original_St(), EXEC_PATH_SET::Equal_Size(), exec_smake(), Expand_Add(), Expand_Conv_To_Vector(), Expand_Count_Leading_Zeros(), Expand_Count_Trailing_Zeros(), Expand_Float32_Const(), Expand_Float64_Const(), Expand_LONGLONG_Const(), Expand_Split_Leading_Zeros(), expand_start_do_loop(), Expand_Sub(), extract_calls(), Extract_Do_Info(), F90_Lower_Init(), RETURN_PREG::find(), Find_DST_From_ST(), Find_Reduction_Array_Base(), Find_Return_Registers(), Formal_Position(), Gen_Impld_Io_Calls(), Gen_Io_Calls(), Gen_Io_GetFieldST(), Gen_Io_GetFieldWN(), Gen_Io_PutAddrWN(), Gen_Io_PutFieldConst(), Gen_Io_PutFieldST(), Gen_Io_PutFieldWN(), Gen_Io_PutKeyFieldWN(), Gen_Iolist_PutAddrWN(), Gen_Iolist_PutFieldConst(), Gen_Iolist_PutFieldWN(), Gen_MP_Copyin(), Gen_MP_SingleProcess_Region(), Gen_WN_Const(), Get_ARB_WN(), Get_element_mtype(), CFG_NODE_INFO::Get_else_index(), get_field_entry_nme(), get_FIT_type(), CFG_NODE_INFO::Get_if_index(), Get_Pre_ST(), Get_Return_Info(), Get_Return_Mtypes(), Get_Return_Pregs(), SAVED_SCOPE::Get_Scope(), handle_compare(), handle_function_call(), handle_istore_assignment(), HasReturnPreg(), Insert_Lowered_Atomic(), Insert_Ty(), intrinsic_runtime(), ipa_compile_init(), IPA_EX_Evaluate_At_Callsite(), IPL_get_stmt_scf(), Is_Int_Output_Preg(), WN_Verifier::Is_return_register_of_call(), LABEL::LABEL(), Linenum_Pusher::Linenum_Pusher(), Localize_All_INITVKIND_SYMOFFs(), Localize_Variable(), Lower_Atomic(), lower_bit_field_id(), lower_complex_expr(), lower_cray_io_items(), lower_f77_record_items(), lower_io_statement(), lower_mp(), lower_random_number(), lower_record_items(), lower_return_ldid(), Make_IoRuntime_ST(), Make_Reduction_Identity(), LINEX::Map_from_SOE(), Mark_Scopes_And_Labels(), match_scndx(), Merge_Global_Initv(), Merge_Global_St(), Merge_Global_St_Attr(), Merge_Global_Ty(), Merge_St_With_St(), MP_Reduction_Combine_Cycles(), my_Get_Return_Pregs(), Need_type_conversion(), TY_hash::operator()(), BOUNDSCHECKED_VECTOR< T >::operator[](), Padding_Size(), EXEC_PATH_SET::Path_Id_Is_Valid(), PREG::PREG(), IPA_DATA_FLOW::Print(), SUMMARIZE< program >::Process_callsite(), Process_Exception_Region(), IPO_INLINE::Process_Formal_ST(), IPO_INLINE::Process_Formals(), process_inqvar(), process_iostat(), IPO_INLINE::Process_Op_Code(), Process_PDO(), SUMMARIZE< program >::Process_procedure(), process_scalar_node(), IPO_INLINE::Process_ST(), PUinfo_Get_ReturnPreg(), SUMMARIZE< program >::Record_mod_formal(), recursive_ty_hash(), ARA_LOOP_INFO::Reduction_List(), REDUCTION_TYPE_to_OPERATOR(), References_Some_Label(), remove_plus_modifier(), Rename_INITV_Labels(), Rename_Privatized_COMMON(), IPO_INLINE::Reshape_Array(), SUMMARIZE< program >::Restore_from_check_point(), SCLASS_Is_Not_PU_Local(), FAVOR_DELAY_HEUR::Select_Best_Candidate(), CFG_NODE_INFO::Set_else_index(), CFG_NODE_INFO::Set_if_index(), Set_ST_type(), Setup_Ty(), simp_bior(), simp_cvtl(), SIMP_Flt_ConstVal(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), size_wn(), Split_Individual_Common(), ST::ST(), ST_ATTR::ST_ATTR(), ST_type(), ST_Verify_Class_Sclass(), ST_Verify_Fields(), ST_Verify_Sclass_Export(), t_from_mtype(), Transform_Parallel_Block(), Traverse_Aggregate_Constructor(), AGGINIT::Traverse_Aggregate_Constructor(), traverse_wn_tree(), WN_INSTRUMENT_WALKER::Tree_Walk(), TY_is_unique(), TY_Verify_Kind_Mtype(), growing_table::Un_register(), update_linex_with_constant_mod(), FAVOR_DELAY_HEUR::Upward_Spec_Global_Sched_Is_Profitable(), INITV::Verify(), PU::Verify(), FLD::Verify(), TY::Verify(), ST_ATTR::Verify(), Verify_MP_Lowered::Verify_No_MP(), Verify_No_Pregs_In_Tree(), Walk_and_Localize(), WFE_Address_Of(), Wfe_Expand_Asm_Operands(), WFE_Expand_End_Loop(), WFE_Expand_Exit_Loop(), WFE_Expand_Exit_Loop_If_False(), WFE_Expand_Expr(), WFE_Expand_Loop_Continue_Here(), WFE_Expand_Return(), WFE_Expand_Start_Loop_Continue_Elsewhere(), WFE_Lhs_Of_Modify_Expr(), WGEN_Address_Of(), Wgen_Expand_Asm_Operands(), WGEN_Expand_Expr(), WGEN_Expand_Return(), WGEN_Expand_Stmt(), WGEN_Lhs_Of_Modify_Expr(), WGEN_process_omp_clause(), Widen_Mtype(), WN2C_ldid(), WN2F_ldid(), WN_has_side_effects(), WN_Rename_Duplicate_Labels(), WN_set_st_addr_saved(), and WN_Verifier::WN_traverse_tree().
| void Fatal_Error | ( | const char * | fmt, | |
| ... | ||||
| ) |
Definition at line 1363 of file errors.cxx.
References Current_Phase, Emit_Message(), Error_Counts, ES_ERRABORT, exit(), INT, NULL, RC_INTERNAL_ERROR, SEV_name, SEV_symbol, Signal_Cleanup(), Source_File_Name, sprintf(), va_end, va_start, and vsprintf().
Referenced by catch_signal(), fei_len(), ir_bwrite_signal_handler(), Ir_Lno_Signal_Handler(), vstr_sprintf(), and WFE_Expand_Expr().
| static ERROR_DESC* Find_Error_Desc | ( | INT | ecode | ) | [static] |
Definition at line 645 of file errors.cxx.
References EC_Undef_Code, ED_code, i, INT, Phase_List, and Phase_Num.
Referenced by ErrMsg_Report().
Definition at line 1453 of file errors.cxx.
Definition at line 591 of file errors.cxx.
References Error_Count, Error_Counts, ES_WARNING, and Phase_Error.
Referenced by main(), WFE_Check_Errors(), and WGEN_Check_Errors().
| const char* Get_Error_Phase | ( | void | ) |
Definition at line 574 of file errors.cxx.
References Current_Phase.
Referenced by CFLOW_Optimize(), CG_DEP_Trace_Graph(), Check_for_Dump(), Check_Phase_And_PU(), Convert_x87_Regs(), emulate_intrinsic_op(), PRDB_GEN::PRDB_GEN(), Read_Local_Info(), Trace_Begin_Min_II(), W2C_Init(), W2C_Outfile_Translate_Pu(), W2C_Translate_Purple_Main(), W2C_Translate_Wn(), W2C_Translate_Wn_Str(), W2F_Init(), W2F_Outfile_Translate_Pu(), W2F_Translate_Purple_Main(), W2F_Translate_Wn(), and W2F_Translate_Wn_Str().
Definition at line 331 of file errors.cxx.
Referenced by main(), sgi_cmd_line(), WFE_Init(), and WGEN_Init().
Definition at line 670 of file errors.cxx.
References FALSE, fopen, getenv(), NULL, and TRUE.
Referenced by Emit_Message().
Definition at line 396 of file errors.cxx.
References Error_File, Error_File_Name, FALSE, fclose(), fopen, NULL, Same_File(), and TRUE.
Referenced by Count_Limit_DevWarn(), DevWarn(), and Emit_Message().
Definition at line 610 of file errors.cxx.
References Current_Phase, Error_Count, Error_Counts, Error_File, Error_File_Name, ERROR_LINE_UNKNOWN, ES_MAX, FALSE, fclose(), i, INT, Max_Errors, NULL, Phase_Error, Source_File_Name, and Source_Line.
Referenced by main(), Prepare_Source(), sgi_cmd_line(), and WFE_Init().
| void Rag_Handle_Woff_Args | ( | char * | wstring | ) |
Definition at line 1410 of file errors.cxx.
References atoi(), Dont_Print_Warning, i, INT, isdigit(), MAX, MIN, RAG_EN_FIRST, RAG_EN_LAST, strlen(), and TRUE.
Referenced by DEBUG_Configure(), and Process_Command_Line().
| void Set_Error_Descriptor | ( | INT | phase, | |
| ERROR_DESC * | descriptor | |||
| ) |
Definition at line 1481 of file errors.cxx.
References error_desc_table::descriptors, FALSE, FmtAssert, i, and INT.
Referenced by CG_Process_Command_Line(), lno_main(), load_components(), and main().
| void Set_Error_File | ( | const char * | fname | ) |
Definition at line 369 of file errors.cxx.
References Error_File, Error_File_Name, fclose(), Is_File(), NULL, and unlink.
Referenced by Cleanup_Files(), Diag_Set_File(), main(), Prepare_Source(), sgi_cmd_line(), and WFE_Init().
Definition at line 491 of file errors.cxx.
References Source_Line.
Referenced by Cleanup_Files(), Close_File(), cwh_stmt_init_srcpos(), Gather_Uplevel_References(), lower_mp(), main(), PDGCS_initialize(), Prepare_Source(), sgi_cmd_line(), WFE_Init(), and WGEN_Init().
| void Set_Error_Phase | ( | const char * | phase | ) |
Definition at line 507 of file errors.cxx.
References Cur_PU_Name, Current_Phase, fprintf(), Get_Trace(), Set_Current_Phase_Number(), strcmp(), TFile, TP_ALIAS, TP_CGEXP, TP_EMIT, TP_FIND_GLOB, TP_FLOWOPT, TP_GCM, TP_GLOBOPT, TP_GRA, TP_HBF, TP_IR_READ, TP_MISC, TP_SWPIPE, TP_THR, and TP_WOPT1.
Referenced by Anl_Fini(), Anl_Init(), Anl_Static_Analysis(), Backend_Processing(), CFLOW_Optimize(), CG_Fini(), CG_Generate_Code(), CG_Init(), CGGRP_Bundle(), Check_Cross_Boundary(), Check_for_Dump_ALL(), Convert_x87_Regs(), Diag_Set_Phase(), Do_WOPT_and_CG_with_Regions(), DRA_New_Clone_Sig(), DRA_Open_And_Map_File(), DRA_Processing(), DRA_Read_Pragmas(), Finalize_Stack_Frame(), GCM_Schedule_Region(), Generate_Recovery_Code(), Global_Insn_Sched(), GRA_Allocate_Global_Registers(), HB_Form_Hyperblocks(), IGLS_Schedule_Region(), Initialize_Stack_Frame(), IPA_LNO_Close_Output_Info(), IPA_LNO_Open_Input_File(), IPA_LNO_Open_Output_Info(), IPA_Preoptimize(), Ipl_Init(), Ipl_Processing(), IPO_main(), IPO_Process_node(), Lno_Init(), Local_Insn_Sched(), LRA_Allocate_Registers(), main(), Olimit_Region_Insertion(), Open_Output_Info(), open_specified_input(), PDGCS_do_proc(), PDGCS_end_procs(), PDGCS_initialize(), PDGCS_new_proc(), PDGCS_terminate(), Perform_Global_Optimization(), Perform_Global_Schedule(), Perform_Loop_Nest_Optimization(), Perform_Preopt_Optimization(), RVI::Perform_RVI(), Perform_SWP(), Post_Multi_Branch(), Post_Multi_Branch_Collect(), PRDB_GEN::PRDB_GEN(), Pre_Optimizer(), Preorder_Process_PUs(), Prepare_Source(), Preprocess_PU(), PU_adjust_addr_flags(), Read_Global_Info(), Read_isr_cg(), Read_Local_Info(), REGION_Form_Region_Tree(), REGION_init(), REGION_Initialize(), Set_opt_phase(), sgi_cmd_line(), U64_lower_wn(), W2C_Init(), W2C_Outfile_Translate_Pu(), W2C_Translate_Purple_Main(), W2C_Translate_Wn(), W2C_Translate_Wn_Str(), W2F_Translate_Purple_Main(), WFE_Init(), WGEN_Init(), WN_Annotate(), WN_Instrument(), WN_retype_expr(), WN_unroll(), Wopt_Init(), and Write_Global_Info().
| void Set_Error_Source | ( | const char * | filename | ) |
Definition at line 443 of file errors.cxx.
References NULL, Source_File_Name, source_file_name, strcpy, and strncpy().
Referenced by Cleanup_Files(), cwh_stmt_init_srcpos(), and main().
| void Set_Error_Tables | ( | ERROR_DESC_TABLE * | edt, | |
| const char * | errlist[] | |||
| ) |
Definition at line 1471 of file errors.cxx.
References host_errlist.
Referenced by main(), sgi_cmd_line(), and WFE_Init().
Definition at line 425 of file errors.cxx.
References NULL, Same_File(), and Trace_File.
Referenced by Set_Trace_File(), and Trace_To_Stderr().
| static void setup_signal_handler | ( | int | s | ) | [inline, static] |
Definition at line 323 of file errors.cxx.
References catch_signal(), and signal().
Referenced by Handle_Signals(), and Init_Signal_Handlers().
const char* Compiler_File = NULL [static] |
Definition at line 130 of file errors.cxx.
Referenced by Abort_Compiler_Location(), and Emit_Message().
INT Compiler_Line = 0 [static] |
Definition at line 131 of file errors.cxx.
Referenced by Abort_Compiler_Location(), and Emit_Message().
| INT Conformance_Level = ES_IGNORE |
Definition at line 127 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), and ErrMsg_Report_User().
FILE* Crash_File [static] |
Definition at line 667 of file errors.cxx.
const char* Current_Phase = "<unknown phase>" [static] |
Definition at line 150 of file errors.cxx.
Referenced by catch_signal(), DevWarn(), ErrMsg_Report_Nonuser(), Fail_FmtAssertion(), Fatal_Error(), Get_Error_Phase(), Init_Error_Handler(), and Set_Error_Phase().
INT Current_Phase_Number = 0 [static] |
Definition at line 1444 of file errors.cxx.
BOOL dev_warn_enabled = FALSE [static] |
Definition at line 1512 of file errors.cxx.
bool do_traceback = false [static] |
Definition at line 204 of file errors.cxx.
Referenced by catch_signal(), Emit(), Emit_Message(), and Fail_Assertion().
char dont_print[RAG_EN_LAST-RAG_EN_FIRST+1] [static] |
Definition at line 216 of file errors.cxx.
INT Error_Count = 0 [static] |
Definition at line 154 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Get_Error_Count(), and Init_Error_Handler().
INT Error_Counts[ES_MAX+1] [static] |
Definition at line 153 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Fail_FmtAssertion(), Fatal_Error(), Get_Error_Count(), and Init_Error_Handler().
FILE* Error_File = NULL [static] |
Definition at line 134 of file errors.cxx.
Referenced by DevWarn(), Emit_Message(), Init_Error_File(), Init_Error_Handler(), and Set_Error_File().
const char* Error_File_Name = NULL [static] |
Definition at line 135 of file errors.cxx.
Referenced by Init_Error_File(), Init_Error_Handler(), and Set_Error_File().
BOOL Had_Compiler_Error = FALSE [static] |
Definition at line 158 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), and Had_Internal_Error().
const char** host_errlist = NULL [static] |
Definition at line 201 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), main(), Set_Error_Tables(), sgi_cmd_line(), and WFE_Init().
INT Max_Errors = 100 [static] |
Definition at line 156 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), and Init_Error_Handler().
| INT Min_Error_Severity = ES_ADVISORY |
Definition at line 126 of file errors.cxx.
Referenced by Apply_Controls(), DEBUG_Configure(), ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), List_Compile_Options(), and Process_Command_Line().
BOOL Phase_Error = FALSE [static] |
Definition at line 155 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Get_Error_Count(), and Init_Error_Handler().
ERROR_DESC_TABLE* Phases = NULL [static] |
SEVERITY_DESCRIPTOR Severities[] [static] |
Initial value:
{
{ES_IGNORE, "??? ", "Ignore"},
{ES_ADVISORY, "--- ", "Advisory"},
{ES_WARNING, "!!! ", "Warning"},
{ES_CONFORMANCE, "!!! ", "Conformance warning"},
{ES_ERRBENIGN, "### ", "Error"},
{ES_ERRPHASE, "### ", "Error"},
{ES_ERRABORT, "### ", "Error"}
}
Definition at line 174 of file errors.cxx.
char* Source_File_Name = &source_file_name[0] [static] |
Definition at line 146 of file errors.cxx.
Referenced by ErrMsg(), ErrMsgLine(), Fail_Assertion(), Fail_FmtAssertion(), Fatal_Error(), Init_Error_Handler(), and Set_Error_Source().
char source_file_name[256] [static] |
INT Source_Line = ERROR_LINE_UNKNOWN [static] |
Definition at line 147 of file errors.cxx.
Referenced by ErrMsg(), Fail_Assertion(), Init_Error_Handler(), and Set_Error_Line().
| char* sys_siglist[] |
FILE* Trace_File = NULL [static] |
Definition at line 138 of file errors.cxx.
Referenced by Count_Limit_DevWarn(), DevWarn(), Emit_Message(), and Set_Error_Trace().
1.5.6