#include "workaround.h"#include <stdio.h>#include "messg.def"


Go to the source code of this file.
Data Types | |
| module | Msg_Dsc |
Defines | |
| #define | VERBOSE_0 0 |
| #define | VERBOSE_1 1 |
| #define | VERBOSE_2 2 |
| #define | VERBOSE_3 3 |
| #define | VERBOSE_4 4 |
| #define | VERBOSE_5 5 |
| #define | VERBOSE_6 6 |
| #define | VERBOSE_7 7 |
| #define | Assert(Cond, ParmList) ( Cond ? (void) 1 : (Abort_Location(__FILE__, __LINE__), Fail_Assertion ParmList ) ) |
| #define | FmtAssert(Cond, ParmList) ( Cond ? (void) 1 : ( Abort_Location ( __FILE__, __LINE__ ), Fail_FmtAssertion ParmList) ) |
| #define | AppAssert(Cond, ParmList) ( Cond ? (void) 1 : ( Abort_Location ( __FILE__, __LINE__ ), Fail_App_Assertion ParmList) ) |
| #define | Verify(Cond, ParmList) ( Cond ? (void) 1 : ( Abort_Location ( __FILE__, __LINE__ ), Verify_Cond ParmList) ) |
| #define | IsTrue(a, b) ((void) 1) |
| #define | Is_True(a, b) ((void) 1) |
| #define | IsTrueApp(a, b) ((void) 1) |
| #define | _ERROR_ALL_FATAL 0 |
| #define | ERR_SIM_FATAL IsTrue |
| #define | ERR_APP_FATAL IsTrueApp |
| #define | SimFatal(a, b) { ERR_SIM_FATAL(a, b); } |
| #define | AppFatal(a, b) { ERR_APP_FATAL(a, b); } |
| #define | MAX_ERR_NUM 100 |
| #define | MAX_MSG_PARMS 4 |
| #define | EC_Undef_Code 1 |
| #define | EC_INTERNAL_ERROR 2 |
| #define | EC_Signal 3 |
| #define | EC_NORECOVER_USER_ERROR 4 |
| #define | ERROR_LINE_UNKNOWN 0 |
Typedefs | |
| typedef UINT16 | Msg_Idx |
Enumerations | |
| enum | Msg_Type { IGNORE = 0, MESSAGE = 1, WARNING = 2, ERROR = 3, FATAL = 4, MSG_TYPE_SIZE = 4 } |
Functions/Subroutines | |
| void | Abort_Location (char *file_name, INT line_number) |
| void | Fail_Assertion (INT ecode,...) |
| void | Fail_App_Assertion (const char *fmt,...) |
| void | Fail_FmtAssertion (const char *fmt,...) |
| void | Verify_Cond (const char *fmt,...) |
| void | Fatal_Error (const char *fmt,...) |
| void | Handle_Signals (void) |
| void | Signal_Cleanup (INT sig) |
| void | Abort () |
| void | ErrMsg (INT,...) |
| void | WarnMsg (INT,...) |
| void | FatalMsg (INT,...) |
| INT | get_verbose_level (void) |
| INT * | get_verbose_level_ptr (void) |
| void | set_verbose_level (INT level) |
| void | vmsg (INT verbose_level, const char *fmt,...) |
| void | DevWarn (const char *FormatString,...) |
| void | Debug_Break (char *) |
| BOOL | Had_Internal_Error (void) |
Variables | |
| INT | errno |
| #define AppAssert | ( | Cond, | |||
| ParmList | ) | ( Cond ? (void) 1 : ( Abort_Location ( __FILE__, __LINE__ ), Fail_App_Assertion ParmList) ) |
| #define Assert | ( | Cond, | |||
| ParmList | ) | ( Cond ? (void) 1 : (Abort_Location(__FILE__, __LINE__), Fail_Assertion ParmList ) ) |
| #define EC_INTERNAL_ERROR 2 |
| #define EC_NORECOVER_USER_ERROR 4 |
| #define FmtAssert | ( | Cond, | |||
| ParmList | ) | ( Cond ? (void) 1 : ( Abort_Location ( __FILE__, __LINE__ ), Fail_FmtAssertion ParmList) ) |
| #define MAX_MSG_PARMS 4 |
Definition at line 327 of file messg.h.
Referenced by ELF_object::bssSegFAddr(), and ErrMsg_Report().
| #define Verify | ( | Cond, | |||
| ParmList | ) | ( Cond ? (void) 1 : ( Abort_Location ( __FILE__, __LINE__ ), Verify_Cond ParmList) ) |
| enum Msg_Type |
| void Abort | ( | ) |
| void DevWarn | ( | const char * | FormatString, | |
| ... | ||||
| ) |
Definition at line 1522 of file errors.cxx.
References args, Current_Phase, Error_File, fflush(), fprintf(), Init_Error_File(), NULL, phase_name, Trace_File, va_end, va_start, and vfprintf().
Definition at line 1204 of file errors.cxx.
References ErrMsg_Report(), ERROR_LINE_UNKNOWN, exit(), fflush(), fprintf(), INT, MAX_ERR_NUM, NULL, Source_File_Name, Source_Line, va_end, and va_start.
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().
| void Fail_App_Assertion | ( | const char * | fmt, | |
| ... | ||||
| ) |
Definition at line 397 of file messg.cxx.
References Emit_Message(), INT, sprintf(), va_end, va_start, and vsprintf().
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.
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 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(), TY::Verify(), FLD::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().
Definition at line 331 of file messg.cxx.
References ErrMsg_Report(), ERROR_LINE_UNKNOWN, exit(), fflush(), fprintf(), INT, NULL, va_end, and va_start.
Referenced by catch_signal().
Definition at line 1678 of file errors.cxx.
References EC_INTERNAL_ERROR, and Had_Compiler_Error.
Referenced by main().
Definition at line 331 of file errors.cxx.
References FPCSR_FLUSH_ZERO, setup_signal_handler(), SGI_SET_FP_PRECISE, SGI_SET_FP_PRESERVE, SIGBUS, SIGEMT, SIGIOT, SIGQUIT, and SIGTRAP.
Referenced by main(), sgi_cmd_line(), WFE_Init(), and WGEN_Init().
Definition at line 99 of file err_host.cxx.
References Cleanup_Files(), ER_FATAL, ERN_MESSAGE, exit(), FALSE, fprintf(), i, INT, msg, and TRUE.
Referenced by catch_signal(), ErrMsg_Report(), ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Fail_FmtAssertion(), Fatal_Error(), and Perform_Interprocedural_Optimization().
| void Verify_Cond | ( | const char * | fmt, | |
| ... | ||||
| ) |
Definition at line 520 of file messg.cxx.
References Emit_Verification_Messg(), INT, sprintf(), va_end, va_start, and vsprintf().
Definition at line 712 of file messg.cxx.
References args, get_verbose_level(), va_end, va_start, and vfprintf().
Definition at line 299 of file messg.cxx.
References ErrMsg_Report(), ERROR_LINE_UNKNOWN, fprintf(), INT, va_end, and va_start.
1.5.6