#include <stdarg.h>#include <stdlib.h>#include <unistd.h>#include <sys/types.h>#include <signal.h>#include <ctype.h>#include <string.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 "wn.h"#include "wn_map.h"#include "ir_reader.h"#include "err_host.tab"
Go to the source code of this file.
Classes | |
| struct | SEVERITY_DESCRIPTOR |
| struct | 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 512 |
| #define | BUFLEN 512 |
Functions | |
| void | Rag_Handle_Woff_Args (char *wstring) |
| 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_Srcpos (SRCPOS srcpos) |
| 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 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 | ErrMsgSrcpos (INT ecode, SRCPOS srcpos,...) |
| 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_Descriptor (INT phase, ERROR_DESC *descriptor) |
| 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) |
| const char * | StrSignal (int sig) |
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 = NULL |
| 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 char | dont_print [RAG_EN_LAST-RAG_EN_FIRST+1] |
| static INT | Current_Phase_Number = 0 |
| static BOOL | dev_warn_enabled = TRUE |
| #define BUFLEN 512 |
| #define BUFLEN 512 |
Referenced by ErrMsg_Report_Nonuser(), and ErrMsg_Report_User().
| #define Dont_Print_Warning | ( | i | ) | dont_print[i-RAG_EN_FIRST] |
Definition at line 195 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 197 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), and ErrMsg_Report_User().
| #define IN_ERRORS_C |
Definition at line 89 of file errors.cxx.
| #define Phase_List | ( | n | ) | (Phases[n].descriptors) |
Definition at line 190 of file errors.cxx.
Referenced by Find_Error_Desc().
Definition at line 191 of file errors.cxx.
| #define Phase_Num | ( | n | ) | (Phases[n].phase) |
Definition at line 189 of file errors.cxx.
Referenced by Find_Error_Desc().
| #define SEV_level | ( | n | ) | (Severities[n].level) |
Definition at line 169 of file errors.cxx.
| #define SEV_name | ( | n | ) | (Severities[n].name) |
Definition at line 171 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 170 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), Fail_FmtAssertion(), and Fatal_Error().
| #define USE_STANDARD_TYPES |
Definition at line 65 of file errors.cxx.
| void Abort_Compiler_Location | ( | const char * | file_name, | |
| INT | line_number | |||
| ) |
Definition at line 1075 of file errors.cxx.
References Compiler_File, and Compiler_Line.
Definition at line 214 of file errors.cxx.
References Current_Phase, EC_Signal, ErrMsgLine(), ERROR_LINE_UNKNOWN, exit(), Fatal_Error(), getpid, RC_INTERNAL_ERROR, Signal_Cleanup(), and StrSignal().
Referenced by setup_signal_handler().

Definition at line 1432 of file errors.cxx.
References LIMIT_STRUCT::count, dev_warn_enabled, DevWarn(), DevWarn_limit_search(), Init_Error_File(), NULL, s, Trace_File, and TRUE.

| void DevWarn | ( | const char * | fmt, | |
| ... | ||||
| ) |
Definition at line 1316 of file errors.cxx.
References Current_Phase, dev_warn_enabled, Error_File, fprintf(), Init_Error_File(), NULL, and Trace_File.
Referenced by Allocate_File_Statics(), Allocate_Object(), Allocate_Space(), WN_Verifier::Are_enclosed_pragmas(), Assign_ST_To_Named_Section(), WN_Verifier::Call_children_are_PARM(), WN_Verifier::CALL_parent_LDID(), check_linked_list_free(), cleanUpPUInfo(), Configure_Source(), Count_Limit_DevWarn(), DEBUG_Configure_Alignment(), DRA_Add_Clone(), DaVinci::enabled(), fei_assert(), fei_control_list(), fei_descriptor(), fei_proc_def(), Finalize_Stack_Frame(), Find_addr_recur(), Find_Alloca(), Find_Ty_Pointer(), WN_Verifier::Is_legal_wn_opcode(), WN_Verifier::Is_return_register_of_call(), WN_Verifier::LDA_ty_not_NULL(), MEM_Initialize(), MEM_POOL_Alloc_P(), MEM_POOL_Delete(), MEM_POOL_Realloc_P(), MemCtr_Add_Local(), operator delete(), operator new(), FB_FREQ::operator-=(), FB_FREQ::operator/=(), WN_Verifier::Param_parent_is_Call(), PROMPF_INFO::Prompf_Info_Traverse(), PRQ_Initialize(), PRQ_Insert(), Set_addr_saved_expr(), Set_ST_base_idx(), WN_Verifier::ST_is_not_NULL(), ST_Verify_Fields(), WN_Verifier::STID_check_st_class(), TOP_Can_Be_Speculative(), Update_Pointer_Map(), Verify_SYMTAB(), vstr_begin(), and WN_verifier().

| static LIMIT_STRUCT* DevWarn_limit_search | ( | const char *const | src_fname, | |
| const UINT | src_line | |||
| ) | [static] |
Definition at line 1367 of file errors.cxx.
References LIMIT_STRUCT::count, LIMIT_STRUCT::fname, LIMIT_STRUCT::line, and NULL.
Referenced by Count_Limit_DevWarn().
| void DevWarn_Toggle | ( | void | ) |
| static void Emit_Message | ( | char * | hmsg, | |
| char * | emsg | |||
| ) | [static] |
Definition at line 617 of file errors.cxx.
References Compiler_File, Compiler_Line, Error_File, FALSE, Init_Error_File(), NULL, Trace_File, and TRUE.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Fail_FmtAssertion(), and Fatal_Error().

| void ErrMsg | ( | INT | ecode, | |
| ... | ||||
| ) |
Definition at line 1014 of file errors.cxx.
References ErrMsg_Report(), Source_File_Name, and Source_Line.
Referenced by Adjust_Opt_Level(), DYN_ARRAY< T >::Alloc_array(), ID_MAP< NODE_TYPE, KEY_TYPE >::Alloc_table_space(), Allocate_Block(), Allocate_Large_Block(), check_linked_list_free(), Check_TCON(), Cleanup_Files(), Close_File(), complex_divide(), complex_sqrt(), Configure(), Configure_Alias_Options(), cwh_intrin_ieee_intrin_call_helper(), cwh_intrin_ieee_intrin_helper(), DEBUG_Configure_Alignment(), DEBUG_Push_Config(), 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_New_Section(), Em_Set_Symbol_Binding(), Em_Undefine_Symbol(), Em_Write_Reginfo(), ID_MAP< NODE_TYPE, KEY_TYPE >::Enlarge(), Equivalent_Types(), Extract_Complex_Imag(), Extract_Complex_Real(), Extract_Quad_Hi(), Extract_Quad_Lo(), Finalize_Stack_Frame(), CLIST_NODE::Find_Next(), Fix_g_O(), DYN_ARRAY< T >::Force_Alloc_array(), Gen_File_Table(), Generate_Addr_Reset(), 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_4(), Host_To_Targ_Float(), Host_To_Targ_Float_4(), Host_To_Targ_UV(), identify_schedtype(), Increase_Data_Buffer_Size(), Increase_File_Table_Size(), Increase_Incl_Table_Size(), Initialize_Option_Group(), IPA_copy_PU(), ir_b_grow_map(), ir_size(), LNO_Configure(), LNO_Push_Config(), main(), Make_Complex(), makedepend_error(), MEM_POOL_Alloc_P(), MEM_POOL_Realloc_P(), Open_Append_File(), Open_Create_File(), Open_Output_Info(), Open_Read_File(), open_specified_input(), Prepare_Listing_File(), Prepare_Source(), Prepare_Target(), print_elf_error(), Process_Command_Line(), Process_Command_Line_Group(), Process_Trace_Option(), Read_Global_Info(), Read_Local_Info(), DYN_ARRAY< T >::Realloc_array(), Realloc_Clear(), Set_Trace(), Set_Trace_File(), Set_Trace_Pu(), Set_Trace_Pu_Number(), Set_Trace_Region_Number(), data_info_s::sort_data(), Stab_Compare_Types(), 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(), TCON2C_translate(), W2C_Outfile_Init(), WN_close_file(), WN_close_output(), WN_write_generic_map(), WN_write_prefetch(), WN_write_PU_Infos(), WN_write_symtab(), WN_write_tree(), and write_output().

Definition at line 994 of file errors.cxx.
References ED_user, ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), and Find_Error_Desc().
Referenced by ErrMsg(), ErrMsgLine(), ErrMsgSrcpos(), and Fail_Assertion().

| static void ErrMsg_Report_Nonuser | ( | ERROR_DESC * | edesc, | |
| INT | ecode, | |||
| INT | line, | |||
| const char * | file, | |||
| va_list | vp | |||
| ) | [static] |
Definition at line 665 of file errors.cxx.
References buf, BUFLEN, 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(), ErrMsgLine(), 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_Format_Parm(), INT, kind, MAX_ERR_PARMS, Max_Errors, Min_Error_Severity, NULL, Phase_Error, RC_INTERNAL_ERROR, result, SEV_name, SEV_symbol, Signal_Cleanup(), TRUE, 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 830 of file errors.cxx.
References buf, BUFLEN, 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(), ErrMsgLine(), 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_Format_Parm(), INT, kind, MAX_ERR_PARMS, Max_Errors, Min_Error_Severity, NULL, Phase_Error, RC_NORECOVER_USER_ERROR, result, SEV_name, Signal_Cleanup(), TRUE, vstr_begin(), vstr_concat(), vstr_end(), vstr_sprintf(), and vstr_str.
Referenced by ErrMsg_Report().

Definition at line 1026 of file errors.cxx.
References ErrMsg_Report(), and Source_File_Name.
Referenced by catch_signal(), ErrMsg_Report_Nonuser(), and ErrMsg_Report_User().

Definition at line 1040 of file errors.cxx.
References ErrMsg_Report(), IR_Srcpos_Filename(), NULL, and Srcpos_To_Line.
Referenced by DRA_Clone_Instantiate(), DRA_Mangle_Call_Site(), DRA_New_Clone_Sig(), DRA_Read_Pragmas_In_Block(), Fill_Align_Symbol(), and New_DRA().

| void Fail_Assertion | ( | INT | ecode, | |
| ... | ||||
| ) |
Definition at line 1093 of file errors.cxx.
References ErrMsg_Report(), Source_File_Name, and Source_Line.

| void Fail_FmtAssertion | ( | const char * | fmt, | |
| ... | ||||
| ) |
Definition at line 1115 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(), and Source_File_Name.
Referenced by LINEX::Add_access(), LOOPINFO::Add_bound(), LINEX::Add_coupled_terms(), ir_a2b::CheckEnumTable(), ir_a2b::CheckFlagTable(), cwh_stmt_call_helper(), cwh_stmt_return_altentry(), cwh_stmt_return_scalar(), Find_Return_Registers(), Formal_Position(), CFG_NODE_INFO::Get_else_index(), CFG_NODE_INFO::Get_if_index(), Get_Return_Info(), Get_Return_Mtypes(), Get_Return_Pregs(), SAVED_SCOPE::Get_Scope(), WN_Verifier::Is_return_register_of_call(), LABEL::LABEL(), Make_Reduction_Identity(), LINEX::Map_from_SOE(), ir_a2b::MapEnumToStr(), PREG::PREG(), PUinfo_Get_ReturnPreg(), References_Some_Label(), Rename_INITV_Labels(), CFG_NODE_INFO::Set_else_index(), CFG_NODE_INFO::Set_if_index(), Set_ST_type(), ST::ST(), ST_ATTR::ST_ATTR(), ST_type(), ST_Verify_Class_Sclass(), ST_Verify_Fields(), ST_Verify_Sclass_Export(), t_from_mtype(), TY_hash_func(), TY_is_unique(), TY_Verify_Kind_Mtype(), growing_table::Un_register(), PU::Verify(), TY::Verify(), ST_ATTR::Verify(), FLD::Verify(), INITV::Verify(), 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 1168 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(), and Source_File_Name.
Referenced by catch_signal(), cleanUpPUInfo(), ir_bwrite_signal_handler(), and vstr_sprintf().

| static ERROR_DESC* Find_Error_Desc | ( | INT | ecode | ) | [static] |
Definition at line 584 of file errors.cxx.
References EC_Undef_Code, ED_code, INT, Phase_List, and Phase_Num.
Referenced by ErrMsg_Report().
| INT Get_Current_Phase_Number | ( | void | ) |
Definition at line 1258 of file errors.cxx.
References Current_Phase_Number.
Definition at line 530 of file errors.cxx.
References Error_Count, Error_Counts, ES_WARNING, and Phase_Error.
Referenced by main().
| const char* Get_Error_Phase | ( | void | ) |
Definition at line 513 of file errors.cxx.
References Current_Phase.
Referenced by Read_Local_Info(), 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().
| BOOL Had_Internal_Error | ( | void | ) |
| void Handle_Signals | ( | void | ) |
Definition at line 274 of file errors.cxx.
References FPCSR_FLUSH_ZERO, get_fpc_csr(), set_fpc_csr(), setup_signal_handler(), SGI_SET_FP_PRECISE, SGI_SET_FP_PRESERVE, and syssgi().
Referenced by main(), and sgi_cmd_line().

| static BOOL Init_Error_File | ( | void | ) | [static] |
Definition at line 339 of file errors.cxx.
References Error_File, Error_File_Name, FALSE, NULL, Same_File(), and TRUE.
Referenced by Count_Limit_DevWarn(), DevWarn(), and Emit_Message().

| void Init_Error_Handler | ( | INT | Max_Errors_Allowed | ) |
Definition at line 549 of file errors.cxx.
References Current_Phase, Error_Count, Error_Counts, Error_File, Error_File_Name, ERROR_LINE_UNKNOWN, ES_MAX, FALSE, INT, Max_Errors, NULL, Phase_Error, Source_File_Name, and Source_Line.
Referenced by main(), and sgi_cmd_line().
| void Rag_Handle_Woff_Args | ( | char * | wstring | ) |
Definition at line 1215 of file errors.cxx.
References Dont_Print_Warning, INT, MAX, MIN, RAG_EN_FIRST, RAG_EN_LAST, and TRUE.
Referenced by DEBUG_Configure(), and Process_Command_Line().
| void Set_Current_Phase_Number | ( | INT | phase | ) |
Definition at line 1252 of file errors.cxx.
References Current_Phase_Number.
Referenced by Set_Error_Phase().
| void Set_Error_Descriptor | ( | INT | phase, | |
| ERROR_DESC * | descriptor | |||
| ) |
Definition at line 1285 of file errors.cxx.
References error_desc_table::descriptors, FALSE, FmtAssert, and INT.
Referenced by load_components(), and main().
| void Set_Error_File | ( | const char * | fname | ) |
Definition at line 312 of file errors.cxx.
References Error_File, Error_File_Name, Is_File(), NULL, and unlink.
Referenced by Cleanup_Files(), Diag_Set_File(), main(), Prepare_Source(), and sgi_cmd_line().

| void Set_Error_Line | ( | INT | lineno | ) |
Definition at line 430 of file errors.cxx.
References Source_Line.
Referenced by Cleanup_Files(), Close_File(), cwh_stmt_init_srcpos(), main(), PDGCS_initialize(), Set_Error_Srcpos(), and sgi_cmd_line().
| void Set_Error_Phase | ( | const char * | phase | ) |
Definition at line 446 of file errors.cxx.
References Cur_PU_Name, Current_Phase, fprintf(), Get_Trace(), Set_Current_Phase_Number(), 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(), 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(), Initialize_Stack_Frame(), Ipl_Processing(), main(), Open_Output_Info(), open_specified_input(), PDGCS_do_proc(), PDGCS_end_procs(), PDGCS_initialize(), PDGCS_new_proc(), PDGCS_terminate(), Preorder_Process_PUs(), Read_Global_Info(), Read_Local_Info(), sgi_cmd_line(), W2C_Init(), W2C_Outfile_Translate_Pu(), W2C_Translate_Purple_Main(), W2C_Translate_Wn(), W2C_Translate_Wn_Str(), W2F_Translate_Purple_Main(), and Write_Global_Info().

| void Set_Error_Source | ( | const char * | filename | ) |
Definition at line 386 of file errors.cxx.
References NULL, source_file_name, Source_File_Name, and strcpy.
Referenced by Cleanup_Files(), cwh_stmt_init_srcpos(), main(), and Set_Error_Srcpos().
| void Set_Error_Srcpos | ( | SRCPOS | srcpos | ) |
Definition at line 408 of file errors.cxx.
References IR_Srcpos_Filename(), NULL, Set_Error_Line(), Set_Error_Source(), and Srcpos_To_Line.

| void Set_Error_Trace | ( | FILE * | stream | ) |
Definition at line 368 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 259 of file errors.cxx.
References catch_signal().
Referenced by Handle_Signals().

| const char* StrSignal | ( | int | sig | ) |
Definition at line 1487 of file errors.cxx.
References NULL, and sys_siglist.
Referenced by catch_signal().
const char* Compiler_File = NULL [static] |
Definition at line 118 of file errors.cxx.
Referenced by Abort_Compiler_Location(), and Emit_Message().
INT Compiler_Line = 0 [static] |
Definition at line 119 of file errors.cxx.
Referenced by Abort_Compiler_Location(), and Emit_Message().
| INT Conformance_Level = ES_IGNORE |
Definition at line 115 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), and ErrMsg_Report_User().
const char* Current_Phase = NULL [static] |
Definition at line 134 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 1249 of file errors.cxx.
Referenced by Get_Current_Phase_Number(), and Set_Current_Phase_Number().
BOOL dev_warn_enabled = TRUE [static] |
Definition at line 1310 of file errors.cxx.
Referenced by Count_Limit_DevWarn(), DevWarn(), and DevWarn_Toggle().
char dont_print[RAG_EN_LAST-RAG_EN_FIRST+1] [static] |
Definition at line 194 of file errors.cxx.
INT Error_Count = 0 [static] |
Definition at line 138 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 137 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 122 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 123 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 142 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), and Had_Internal_Error().
INT Max_Errors = 100 [static] |
Definition at line 140 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 114 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 139 of file errors.cxx.
Referenced by ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), Get_Error_Count(), and Init_Error_Handler().
SEVERITY_DESCRIPTOR Severities[] [static] |
{
{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 158 of file errors.cxx.
char* Source_File_Name = &source_file_name[0] [static] |
Definition at line 130 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] |
Definition at line 129 of file errors.cxx.
Referenced by Set_Error_Source().
INT Source_Line = ERROR_LINE_UNKNOWN [static] |
Definition at line 131 of file errors.cxx.
Referenced by ErrMsg(), Fail_Assertion(), Init_Error_Handler(), and Set_Error_Line().
FILE* Trace_File = NULL [static] |
Definition at line 126 of file errors.cxx.
Referenced by Count_Limit_DevWarn(), DevWarn(), Emit_Message(), and Set_Error_Trace().
1.6.1