osprey/common/util/errors.cxx File Reference

#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"

Include dependency graph for errors.cxx:

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_DESCFind_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_STRUCTDevWarn_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 FILEError_File = NULL
static const char * Error_File_Name = NULL
static FILETrace_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_TABLEPhases = 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 FILECrash_File
static INT Current_Phase_Number = 0
static BOOL dev_warn_enabled = FALSE


Define Documentation

#define BUFLEN   1024

#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]

Definition at line 217 of file errors.cxx.

Referenced by Rag_Handle_Woff_Args().

#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)

#define Phase_Name ( n   )     (Phases[n].name)

Definition at line 209 of file errors.cxx.

#define Phase_Num ( n   )     (Phases[n].phase)

Definition at line 207 of file errors.cxx.

Referenced by Find_Error_Desc().

#define SEV_level ( n   )     (Severities[n].level)

Definition at line 185 of file errors.cxx.

#define SEV_name ( n   )     (Severities[n].name)

#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.


Function Documentation

void Abort_Compiler_Location ( const char *  file_name,
INT  line_number 
)

Definition at line 1269 of file errors.cxx.

References Compiler_File, and Compiler_Line.

static void catch_signal ( INT  sig,
INT  error_num 
) [static]

BOOL Count_Limit_DevWarn ( const char *const   src_fname,
const UINT  src_line,
const UINT  limit 
)

void DevWarn ( const char *  fmt,
  ... 
)

Definition at line 1522 of file errors.cxx.

BOOL DevWarn_Enabled ( void   ) 

Definition at line 1516 of file errors.cxx.

Referenced by WN_Verifier::LDA_ty_not_NULL().

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

void DevWarn_Toggle ( void   ) 

Definition at line 1672 of file errors.cxx.

Referenced by Configure().

static void dump_backtrace ( FILE fp = stderr,
size_t  start_frame = 1 
) [static]

Definition at line 224 of file errors.cxx.

References buf, fflush(), fp, fprintf(), i, size, and strings.

Referenced by Emit().

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]

void ErrMsg ( INT  ecode,
  ... 
)

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

static void ErrMsg_Report ( INT  ecode,
INT  line,
const char *  file,
va_list  vp 
) [static]

static void ErrMsg_Report_Nonuser ( ERROR_DESC edesc,
INT  ecode,
INT  line,
const char *  file,
va_list  vp 
) [static]

static void ErrMsg_Report_User ( ERROR_DESC edesc,
INT  ecode,
INT  line,
const char *  file,
va_list  vp 
) [static]

void ErrMsgLine ( INT  ecode,
INT  line,
  ... 
)

void Fail_Assertion ( INT  ecode,
  ... 
)

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

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

INT Get_Current_Phase_Number ( void   ) 

Definition at line 1453 of file errors.cxx.

BOOL Get_Error_Count ( INT ErrCount,
INT WarnCount 
)

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   ) 

BOOL Had_Internal_Error ( void   ) 

Definition at line 1678 of file errors.cxx.

Referenced by main().

void Handle_Signals ( void   ) 

Definition at line 331 of file errors.cxx.

Referenced by main(), sgi_cmd_line(), WFE_Init(), and WGEN_Init().

static BOOL Init_Crash_Report ( void   )  [static]

Definition at line 670 of file errors.cxx.

References FALSE, fopen, getenv(), NULL, and TRUE.

Referenced by Emit_Message().

static BOOL Init_Error_File ( void   )  [static]

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

void Init_Error_Handler ( INT  Max_Errors_Allowed  ) 

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_Current_Phase_Number ( INT  phase  ) 

Definition at line 1447 of file errors.cxx.

Referenced by Set_Error_Phase().

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  ) 

void Set_Error_Line ( INT  lineno  ) 

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

void Set_Error_Trace ( FILE stream  ) 

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


Variable Documentation

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]

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]

INT Error_Counts[ES_MAX+1] [static]

FILE* Error_File = NULL [static]

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]

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

BOOL Phase_Error = FALSE [static]

ERROR_DESC_TABLE* Phases = NULL [static]

Definition at line 200 of file errors.cxx.

Referenced by main(), sgi_cmd_line(), and WFE_Init().

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]

char source_file_name[256] [static]

Definition at line 144 of file errors.cxx.

Referenced by Set_Error_Source().

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


Generated on Wed Apr 8 14:42:53 2009 for Open64 by  doxygen 1.5.6