Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <stdarg.h>
#include <stdlib.h>
#include "defines.h"
#include <nl_types.h>
#include <nlcatmsg.h>
#include "host.m"
#include "host.h"
#include "target.m"
#include "target.h"
#include "globals.m"
#include "tokens.m"
#include "sytb.m"
#include "debug.m"
#include "messages.m"
#include "globals.h"
#include "tokens.h"
#include "sytb.h"
#include "messages.h"
#include "cif.h"
Go to the source code of this file.
Defines | |
#define | __NLS_INTERNALS 1 |
#define | CIF_VERSION 3 /* Must be defined before */ |
#define | END_UNIT 18 /* End Unit */ |
#define | FILE_STK_MAX 500 /* Just make something up. */ |
#define | MAX_SRC_LINE_SIZE 256 /* Stolen from src_input.m */ |
Functions | |
static int | compare_message_recs (const void *, const void *) |
static void | flush_msg_file (void) |
void | init_msg_processing (char *argv[]) |
void | PRINTMSG (int glb_line_num, int msg_num, msg_severities_type msg_severity, int column_num,...) |
void | output_msg (int glb_line_num, int msg_num, msg_severities_type msg_severity, int column_num, long arg1, long arg2, long arg3, long arg4) |
void | exit_compiler (int code) |
char * | global_to_local_file (int search_line) |
char * | global_to_local_path (int search_line) |
int | global_to_file_id (int search_line) |
int | global_to_file_line_number (int search_line) |
int | global_to_local_line_number (int search_line) |
void | print_buffered_messages (void) |
void | fold_f_abort_ (int *oper) |
void | fold_f_abort__ (int *oper) |
Variables | |
static char | USMID [] = "\n@(#)5.0_pl/sources/messages.c 5.9 10/14/99 14:08:59\n" |
#define __NLS_INTERNALS 1 |
Definition at line 45 of file messages.c.
#define CIF_VERSION 3 /* Must be defined before */ |
Definition at line 74 of file messages.c.
Referenced by print_buffered_messages().
#define END_UNIT 18 /* End Unit */ |
Referenced by flush_msg_file().
#define FILE_STK_MAX 500 /* Just make something up. */ |
Referenced by print_buffered_messages().
#define MAX_SRC_LINE_SIZE 256 /* Stolen from src_input.m */ |
Referenced by cc_get_stmt(), parse_cc_line(), print_buffered_messages(), and print_err_line().
static int compare_message_recs | ( | const void * | p1, |
const void * | p2 | ||
) | [static] |
Definition at line 2207 of file messages.c.
References Func_Entry, Func_Exit, NULL, result, and TRACE.
Referenced by print_buffered_messages().
void exit_compiler | ( | int | code | ) |
Definition at line 1205 of file messages.c.
References c_i_f, catclose, cif_actual_file, cif_flags, cif_name, cif_tmp_file, clean_up_module_files(), close_cif(), exit(), flush_msg_file(), Func_Entry, Func_Exit, msg_sys, NULL, print_buffered_messages(), RC_INTERNAL_ERROR, and TRACE.
Referenced by Cif_Error(), dump_func_trace_info(), dump_mem_trace_info(), get_machine_chars(), init_cif(), init_compiler(), init_debug_file(), init_msg_processing(), init_src_input(), main(), output_msg(), and PRINTMSG().
static void flush_msg_file | ( | void | ) | [static] |
Definition at line 1463 of file messages.c.
References AT_OBJ_NAME_PTR, c_i_f, cif_end_unit_rec(), cif_fake_a_unit(), cif_tmp_file, curr_scp_idx, END_UNIT, Func_Entry, Func_Exit, last_msg_file_rec, NULL, print_buffered_messages(), program_unit_name, SCP_ATTR_IDX, SCP_PARENT_IDX, and TRACE.
Referenced by exit_compiler(), and PRINTMSG().
void fold_f_abort_ | ( | int * | oper | ) |
Definition at line 2271 of file messages.c.
References Func_Entry, Func_Exit, Internal, NULL, PRINTMSG(), stmt_start_line, and TRACE.
Referenced by fold_f_abort__().
void fold_f_abort__ | ( | int * | oper | ) |
Definition at line 2288 of file messages.c.
References fold_f_abort_().
int global_to_file_id | ( | int | search_line | ) |
Definition at line 1351 of file messages.c.
References Func_Entry, Func_Exit, GL_CIF_FILE_ID, GLOBAL_LINE_TO_FILE_LINE, idx, NULL, and TRACE.
int global_to_file_line_number | ( | int | search_line | ) |
Definition at line 1389 of file messages.c.
References Func_Entry, Func_Exit, GLOBAL_LINE_TO_FILE_LINE, idx, NULL, and TRACE.
char* global_to_local_file | ( | int | search_line | ) |
Definition at line 1274 of file messages.c.
References Func_Entry, Func_Exit, GL_FILE_NAME_PTR, GLOBAL_LINE_TO_FILE_LINE, idx, NULL, and TRACE.
Referenced by cwh_stab_set_linenum(), cwh_stmt_init_srcpos(), and put_file_name_in_cn().
int global_to_local_line_number | ( | int | search_line | ) |
Definition at line 1428 of file messages.c.
References Func_Entry, Func_Exit, GLOBAL_LINE_TO_FILE_LINE, idx, NULL, and TRACE.
Referenced by cif_flush_include_recs(), cwh_stab_set_linenum(), cwh_stmt_init_srcpos(), and fei_doloop().
char* global_to_local_path | ( | int | search_line | ) |
Definition at line 1310 of file messages.c.
References Func_Entry, Func_Exit, GL_PATH_NAME_PTR, GLOBAL_LINE_TO_FILE_LINE, idx, NULL, and TRACE.
void init_msg_processing | ( | char * | argv[] | ) |
Definition at line 107 of file messages.c.
References catopen, command_name, exit_compiler(), fprintf(), free(), Func_Entry, Func_Exit, getenv(), len, MEM_ALLOC, msg_sys, NULL, RC_USER_ERROR, save_column_num, save_glb_line_num, SLASH, strcpy, and TRACE.
Referenced by init_compiler().
void output_msg | ( | int | glb_line_num, |
int | msg_num, | ||
msg_severities_type | msg_severity, | ||
int | column_num, | ||
long | arg1, | ||
long | arg2, | ||
long | arg3, | ||
long | arg4 | ||
) |
Definition at line 879 of file messages.c.
References __catgetmsg_error_code(), AT_OBJ_NAME_PTR, c_i_f, catgetmsg, catmsgfmt, cif_actual_file, cif_C_opts, cif_message_rec(), cif_name, CMD_PROVIDED_CIF, Cmdline_Parsing, last_msg_queue_entry::col_num, command_name, comp_phase, curr_scp_idx, dump_flags, exit_compiler(), EXPANDED_MSG_SIZE, FINAL_MSG_SIZE, fprintf(), Func_Entry, Func_Exit, GL_FILE_NAME_PTR, GLOBAL_LINE_TO_FILE_LINE, Internal, last_msg_queue, LAST_MSG_QUEUE_SIZE, Lex_Parsing, Limit, last_msg_queue_entry::line_num, Log_Error, Log_Summary, Log_Warning, MAX_HDR_SIZE, message_prefix, last_msg_queue_entry::msg_num, msg_severity_name, msg_sys, NEWLINE, NL_CAT_LOCALE, NL_SETD, NULL, NULL_IDX, ORIG_MSG_SIZE, Pass1_Parsing, print_err_line(), PRINTMSG(), program_unit_name, RC_USER_ERROR, relative_order, save_column_num, save_glb_line_num, SCP_ATTR_IDX, scp_tbl, dump_flags_entry::std_err, TRACE, and TRUE.
Referenced by PRINTMSG().
void print_buffered_messages | ( | void | ) |
Definition at line 1516 of file messages.c.
References c_i_f, catgetmsg, catmsgfmt, catopen, cif_actual_file, Cif_Cifconv(), CIF_CIFHDR, Cif_Close(), Cif_Errstring(), CIF_FILE, Cif_Getfiledir(), Cif_Getrecord(), Cif_Getunitdir(), CIF_MEM_FREE, CIF_MEM_MANAGED, Cif_Memmode(), CIF_MESSAGE, Cif_Msginsert(), cif_name, Cif_Recgroup(), cif_tmp_file, cif_tmp_file_name, CIF_VERSION, command_name, compare_message_recs(), dump_flags, EXIT, EXPANDED_MSG_SIZE, FALSE, fd, Cif_message::fid, FILE_STK_MAX, FINAL_MSG_SIZE, fprintf(), free(), Func_Entry, Func_Exit, getenv(), GL_CIF_FILE_ID, GL_FILE_NAME_PTR, GL_GLOBAL_LINE, global_line_tbl_idx, GLOBAL_LINE_TO_FILE_LINE, Info, Inline, Internal, len, MAX_HDR_SIZE, MAX_SRC_LINE_SIZE, message_prefix, msg_severity_name, opt_flags_entry::msgs, name, Cif_filedir::nfiles, NL_SETD, NULL, num_ansi, num_cautions, num_comments, num_errors, num_notes, num_optz_msgs, num_warnings, Cif_filedir::nunits, opt_flags, Optimization, ORIG_MSG_SIZE, PRINTMSG(), Scalar, dump_flags_entry::std_err, dump_flags_entry::stmt_dmp, Stream, Table, Tasking, TRACE, Cif_message::uline, Cif_filedir::ut, and Vector.
Referenced by exit_compiler(), flush_msg_file(), and main().
void PRINTMSG | ( | int | glb_line_num, |
int | msg_num, | ||
msg_severities_type | msg_severity, | ||
int | column_num, | ||
... | |||
) |
Definition at line 231 of file messages.c.
References on_off_flags_entry::abort_if_any_errors, on_off_flags_entry::abort_on_100_errors, dump_flags_entry::abort_on_ansi, Ansi, c_i_f, Caution, Caution_Lvl, cif_actual_file, cif_flags, cif_name, cif_summary_rec(), cif_tmp_file, cif_tmp_file_name, cif_tmp_so_no_msg, cmd_line_flags, Cmdline_Parsing, Comment, Comment_Lvl, comp_phase, curr_scp_idx, curr_stmt_sh_idx, dump_flags, error(), Error, exit_compiler(), FALSE, flush_msg_file(), free_tables(), Func_Entry, Func_Exit, GET_MESSAGE_TBL, Info, Inline, Internal, on_off_flags_entry::issue_ansi_messages, Limit, Log_Error, Log_Summary, Log_Warning, MAX_ERR_LIMIT, MAX_FE_MSG, MAX_MSG, dump_flags_entry::mem_report, message_error_tbl, MESSAGE_RECS, message_suppress_tbl, message_warning_tbl, dump_flags_entry::msg_checking, cmd_line_flags_entry::msg_lvl_suppressed, opt_flags_entry::msgs, Note, Note_Lvl, NULL, NULL_IDX, num_ansi, num_cautions, num_comments, num_errors, num_notes, num_optz_msgs, num_prog_unit_errors, num_warnings, on_off_flags, opt_flags, Optimization, output_msg(), Pdg_Conversion, pgm_unit_start_line, PRINT_ALL_SYM_TBLS, PRINT_BLK_STK, PRINT_CMD_LINE_TBLS, PRINT_DBG_STMT, PRINT_DBG_SYTB, PRINT_GL_TBL, PRINT_GN_TBL, PRINTMSG(), RC_INTERNAL_ERROR, RC_USER_ERROR, Scalar, SCP_PARENT_IDX, SH_ERR_FLG, SH_GLB_LINE, sh_tbl_idx, stmt_start_line, Stream, Table, Tasking, TRACE, TRUE, Vector, Warning, and Warning_Lvl.
char USMID[] = "\n@(#)5.0_pl/sources/messages.c 5.9 10/14/99 14:08:59\n" [static] |
Definition at line 37 of file messages.c.