
Go to the source code of this file.
| #define ASSERT_DBG_FATAL | ( | a_truth, | |||
| diag_args | ) | ((void) 1) |
Definition at line 307 of file diagnostics.h.
Referenced by Append_Array_Segment(), Append_Clause_Expressions(), Append_Clause_Symbols(), Append_Distribution(), Append_MP_Schedtype(), Append_Nest_Clauses(), Append_Pragma_Clauses(), Append_Reduction_Clause(), Emit_To_PUinfo_Pragmas(), INIT2F_array(), INIT2F_structured(), INIT2F_substring(), INITO2F_translate(), INITVKIND_ty(), Is_Valid_Doacross(), Select_Best_Fld_Path(), Set_Tcon_Value(), ST2F_decl_const(), ST2F_decl_error(), ST2F_decl_func(), ST2F_decl_var(), ST2F_deref_translate(), ST2F_func_header(), ST2F_use_block(), ST2F_use_const(), ST2F_use_error(), ST2F_use_func(), ST2F_use_var(), TY2F_array(), TY2F_Get_Fld_Path(), TY2F_invalid(), TY2F_Purple_Assumed_Sized_Array(), TY2F_scalar(), TY2F_struct(), TY2F_Translate_Common(), TY2F_Translate_Equivalence(), TY2F_Translate_Structure(), TY2F_void(), WN2F_agoto(), WN2F_alloca(), WN2F_altentry(), WN2F_array(), WN2F_ashr(), WN2F_binaryop(), WN2F_block(), WN2F_bnor(), WN2F_call(), WN2F_ceil(), WN2F_comment(), WN2F_compgoto(), WN2F_complex(), WN2F_condbr(), WN2F_const(), WN2F_cvt(), WN2F_cvtl(), WN2F_dealloca(), WN2F_do_loop(), WN2F_do_while(), WN2F_Entry_Point(), WN2F_eq(), WN2F_eval(), WN2F_floor(), WN2F_func_entry(), WN2F_Function_Call_Lhs(), WN2F_Get_DoLoop_StepSize(), WN2F_goto(), WN2F_if(), WN2F_iload(), WN2F_imagpart(), WN2F_implied_do(), WN2F_intconst(), WN2F_intrinsic_call(), WN2F_intrinsic_op(), WN2F_io(), WN2F_istore(), WN2F_label(), WN2F_lda(), WN2F_ldid(), WN2F_lshr(), WN2F_madd(), WN2F_mload(), WN2F_mstore(), WN2F_msub(), WN2F_ne(), WN2F_nmadd(), WN2F_nmsub(), WN2F_paren(), WN2F_parm(), WN2F_pragma(), WN2F_pragma_list_end(), WN2F_prefetch(), WN2F_process_pragma(), WN2F_realpart(), WN2F_recip(), WN2F_return(), WN2F_rsqrt(), WN2F_stid(), WN2F_tas(), WN2F_translate_purple_main(), WN2F_unaryop(), and WN2F_while_do().
| #define ASSERT_DBG_WARN | ( | a_truth, | |||
| diag_args | ) | ((void) 1) |
Definition at line 306 of file diagnostics.h.
Referenced by INIT2F_Get_Array_Segment(), INIT2F_ptr_or_scalar(), INIT2F_translate(), INITVKIND_translate(), TCON2F_hollerith(), TCON2F_translate(), TY2F_pointer(), WN2F_array(), WN2F_array_bounds(), WN2F_call(), WN2F_ceil(), WN2F_floor(), WN2F_Get_DoLoop_Bound(), WN2F_Get_DoLoop_StepSize(), WN2F_Get_Next_LoopBoundOp(), WN2F_iloadx(), WN2F_intrinsic_call(), WN2F_io_control(), WN2F_io_format(), WN2F_io_item(), WN2F_io_list(), WN2F_io_unit(), WN2F_istorex(), WN2F_mstore(), WN2F_Offset_Memref(), WN2F_Offset_Symref(), WN2F_select(), WN2F_String_Argument(), and WN2F_Translate_Arithmetic_Operand().
| #define ASSERT_FATAL | ( | a_truth, | |||
| diag_args | ) | DIAG_ASSERT_NOLOC(a_truth, Diag_Fatal, diag_args) |
Definition at line 304 of file diagnostics.h.
Referenced by TY2F_Translate_ArrayElt(), WN2F_io_control(), WN2F_ios_definefile(), WN2F_pragma(), and WN2F_Translate_DoLoop_Bound().
| #define ASSERT_WARN | ( | a_truth, | |||
| diag_args | ) | DIAG_ASSERT_NOLOC(a_truth, Diag_Warning, diag_args) |
Definition at line 302 of file diagnostics.h.
Referenced by Append_Pragma_Clauses(), Emit_To_PUinfo_Pragmas(), Put_Pragma_Start_With_Caveats(), WN2F_Convert(), LOC_INFO::WN2F_Find_And_Mark_Nested_Address(), WN2F_Function_Call_Lhs(), WN2F_io_control(), WN2F_ios_accept(), WN2F_ios_backspace(), WN2F_ios_close(), WN2F_ios_cr(), WN2F_ios_decode(), WN2F_ios_delete(), WN2F_ios_encode(), WN2F_ios_endfile(), WN2F_ios_find(), WN2F_ios_inquire(), WN2F_ios_namelist(), WN2F_ios_open(), WN2F_ios_print(), WN2F_ios_read(), WN2F_ios_rewind(), WN2F_ios_rewrite(), WN2F_ios_type(), WN2F_ios_unlock(), WN2F_ios_write(), WN2F_Offset_Memref(), WN2F_Offset_Symref(), WN2F_return(), WN2F_Translate_StringLEN(), WN2F_unsupported(), and WN_intrinsic_name().
| #define DIAG_ASSERT_LOC | ( | a_truth, | |||
| diag_handler, | |||||
| diag_args | ) |
Value:
((a_truth) ? \
(void) 1 : \
(Diag_Set_Location(__FILE__, __LINE__), diag_handler diag_args))
Definition at line 321 of file diagnostics.h.
| #define DIAG_ASSERT_LOC_SRCPOS | ( | a_truth, | |||
| diag_handler, | |||||
| diag_args, | |||||
| wn | ) |
Value:
((a_truth) ? \
(void) 1 : \
(Diag_Set_Location(__FILE__, __LINE__), \
Diag_Set_Srcpos(WN_Get_Linenum(wn)), \
diag_handler diag_args))
Definition at line 326 of file diagnostics.h.
| #define DIAG_ASSERT_NOLOC | ( | a_truth, | |||
| diag_handler, | |||||
| diag_args | ) | ((a_truth) ? (void) 1 : diag_handler diag_args) |
Definition at line 333 of file diagnostics.h.
| #define DIAG_ASSERT_NOLOC_SRCPOS | ( | a_truth, | |||
| diag_handler, | |||||
| diag_args, | |||||
| wn | ) |
Value:
((a_truth) ? \
(void) 1 : \
(Diag_Set_Srcpos(WN_Get_Linenum(wn)), \
diag_handler diag_args))
Definition at line 336 of file diagnostics.h.
| #define DIAG_USER_SRCPOS | ( | a_truth, | |||
| diag_handler, | |||||
| diag_args, | |||||
| wn | ) |
Value:
((a_truth) ? \
(void) 1 : \
(Diag_Set_Srcpos(WN_Get_Linenum(wn)), \
diag_handler diag_args))
Definition at line 315 of file diagnostics.h.
| #define USER_FATAL | ( | a_truth, | |||
| diag_args, | |||||
| wn | ) | DIAG_USER_SRCPOS(a_truth, Diag_User_Fatal, diag_args, wn) |
Definition at line 283 of file diagnostics.h.
| #define USER_WARNING | ( | a_truth, | |||
| diag_args, | |||||
| wn | ) | DIAG_USER_SRCPOS(a_truth, Diag_User_Warning, diag_args, wn) |
Definition at line 280 of file diagnostics.h.
| enum Diag_Code |
Definition at line 174 of file diagnostics.h.
Definition at line 243 of file diagnostics.cxx.
References Diag_File, fclose(), and NULL.
Referenced by W2F_Fini().
Definition at line 352 of file diagnostics.cxx.
References Diag_File_Location, Diag_Line_Location, Diag_Msg, Diag_Phase_Name, exit(), NULL, sprintf(), va_end, va_start, vfprintf(), and void.
Definition at line 445 of file diagnostics.cxx.
References Diag_File_Location, Diag_Line_Location, Diag_Msg, Diag_Phase_Name, Diag_SrcLine_Location, exit(), NULL, sprintf(), va_end, va_start, vfprintf(), and void.
Definition at line 78 of file diagnostics.cxx.
References DIAG_A_STRING, DIAG_CANNOT_CLOSE_FILE, DIAG_CANNOT_OPEN_FILE, DIAG_FIRST, DIAG_LAST, Diag_Msg, DIAG_PRP_CANNOT_ASSIGN_OBJECT, DIAG_PRP_CANNOT_HANDLE_CONSTRUCT, DIAG_PRP_DEFINED_MEM_SPACE, DIAG_PRP_EDIT_OUTPUT, DIAG_PRP_EXPECTED_CONSTRAINT, DIAG_PRP_EXPECTED_PURPLE_REGION, DIAG_PRP_FILE_AT_END, DIAG_PRP_FILE_CANNOT_CLOSE, DIAG_PRP_FILE_CANNOT_OPEN, DIAG_PRP_FILE_ERROR, DIAG_PRP_FILE_HEADER_ERROR, DIAG_PRP_FILE_MMAP, DIAG_PRP_FILE_NOT_CLOSED, DIAG_PRP_FILE_NOT_OPEN, DIAG_PRP_FILE_OVERWRITTEN, DIAG_PRP_ICALL, DIAG_PRP_ILLEGAL_SET, DIAG_PRP_INVALID_LEXEME_KIND, DIAG_PRP_INVALID_TRACE_ITEM_KIND, DIAG_PRP_ITEM_INPUT_ERROR, DIAG_PRP_MEM_VALUE, DIAG_PRP_NAME_OVERFLOW, DIAG_PRP_OPTION_ILLEGAL, DIAG_PRP_OPTION_MISSING_SRC, DIAG_PRP_PLACEHOLDER_ERROR, DIAG_PRP_PREG_VALUE, DIAG_PRP_PREREQUISITE_CALL, DIAG_PRP_PROGRAM_MMAP, DIAG_PRP_PU_MMAP, DIAG_PRP_REF_PARAM, DIAG_PRP_RVALUE_ERROR, DIAG_PRP_UNEXPECTED_OPCODE, DIAG_PRP_UNEXPECTED_TYPE, DIAG_PRP_VALUE_SPACE, DIAG_PRP_VARIABLE_DEF, DIAG_UNIMPLEMENTED, DIAG_UNKNOWN_CMD_LINE_OPTION, DIAG_W2C_CANNOT_HANDLE_OPC, DIAG_W2C_EXPECTED_IDNAME, DIAG_W2C_UNEXPECTED_OPC, DIAG_W2F_BUFFER_ERROR, DIAG_W2F_CANNOT_DEREF, DIAG_W2F_CANNOT_HANDLE_OPC, DIAG_W2F_CANNOT_LDA_PREG, DIAG_W2F_DECLARE_RETURN_PARAM, DIAG_W2F_EXPECTED_IDNAME, DIAG_W2F_EXPECTED_PTR, DIAG_W2F_EXPECTED_PTR_TO_CHARACTER, DIAG_W2F_INCOMPATIBLE_TYS, DIAG_W2F_MISPLACED_PRAGMA, DIAG_W2F_NONEXISTENT_FLD_PATH, DIAG_W2F_UNEXPECTED_BTYPE, DIAG_W2F_UNEXPECTED_CALLSITE, DIAG_W2F_UNEXPECTED_CONTEXT, DIAG_W2F_UNEXPECTED_CVT, DIAG_W2F_UNEXPECTED_DOLOOP_BOUNDOP, DIAG_W2F_UNEXPECTED_IMPLIED_DOLOOP, DIAG_W2F_UNEXPECTED_INITV, DIAG_W2F_UNEXPECTED_IOC, DIAG_W2F_UNEXPECTED_IOF, DIAG_W2F_UNEXPECTED_IOL, DIAG_W2F_UNEXPECTED_IOS, DIAG_W2F_UNEXPECTED_IOU, DIAG_W2F_UNEXPECTED_NUM_KIDS, DIAG_W2F_UNEXPECTED_OPC, DIAG_W2F_UNEXPECTED_PRAGMA, DIAG_W2F_UNEXPECTED_RETURNSITE, DIAG_W2F_UNEXPECTED_STORECLASS, DIAG_W2F_UNEXPECTED_SUBSTRING_REF, DIAG_W2F_UNEXPECTED_SYM_CONST, DIAG_W2F_UNEXPECTED_SYMBOL, DIAG_W2F_UNEXPECTED_SYMCLASS, DIAG_W2F_UNEXPECTED_TYPE_KIND, DIAG_W2F_UNEXPECTED_TYPE_SIZE, DIAG_W2F_UNEXPEXTED_NULL_PTR, DIAG_W2F_UNEXPEXTED_OFFSET, DIAG_W2F_UNEXPEXTED_RETURNREG_USE, Diag_Warn_Count, and INT.
Referenced by W2F_Init().
| void Diag_Set_File | ( | const char * | filename | ) |
Definition at line 261 of file diagnostics.cxx.
References Diag_File, fclose(), fopen, fprintf(), Is_File(), NULL, Same_File(), Set_Error_File(), and unlink.
Definition at line 307 of file diagnostics.cxx.
References Diag_File_Location, and Diag_Line_Location.
Definition at line 295 of file diagnostics.cxx.
References Diag_Max_Diags.
Referenced by W2F_Init().
| void Diag_Set_Phase | ( | const char * | phase_name | ) |
Definition at line 254 of file diagnostics.cxx.
References Diag_Phase_Name, Set_Error_Phase(), strcpy, and void.
Referenced by W2F_Init(), W2F_Outfile_Translate_Pu(), W2F_Translate_Wn(), and W2F_Translate_Wn_Str().
Definition at line 314 of file diagnostics.cxx.
References Diag_SrcCol_Location, Diag_SrcLine_Location, USRCPOS_column, USRCPOS_linenum, and USRCPOS_srcpos.
Definition at line 394 of file diagnostics.cxx.
References Diag_Msg, Diag_SrcCol_Location, Diag_SrcLine_Location, exit(), sprintf(), va_end, va_start, vfprintf(), and void.
Definition at line 376 of file diagnostics.cxx.
References Diag_Msg, Diag_SrcCol_Location, Diag_SrcLine_Location, sprintf(), va_end, va_start, vfprintf(), and void.
Definition at line 324 of file diagnostics.cxx.
References Diag_File_Location, Diag_Line_Location, Diag_Max_Diags, Diag_Msg, Diag_Phase_Name, Diag_Warn_Count, NULL, sprintf(), va_end, va_start, vfprintf(), and void.
Definition at line 413 of file diagnostics.cxx.
References Diag_File_Location, Diag_Line_Location, Diag_Max_Diags, Diag_Msg, Diag_Phase_Name, Diag_SrcLine_Location, Diag_Warn_Count, NULL, sprintf(), va_end, va_start, vfprintf(), and void.
1.5.6