Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
main.c File Reference
#include "defines.h"
#include <sys/time.h>
#include <sys/resource.h>
#include <time.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 "arith.h"
#include "globals.h"
#include "tokens.h"
#include "sytb.h"
#include "main.h"
#include "type.h"
#include "intrin.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

const char * fe_vers_ID (void)
const char * fe_vers_number (void)
const char * fe_vers_name (void)
void print_buffered_messages (void)
static void check_defines_compatibility (void)
static void check_enums_for_change (void)
static void get_machine_chars (void)
static int init_compiler (int, char *[])
static void init_date_time_info (void)
static void init_release_level (void)
static void make_table_changes (void)
static void print_id_line (void)
static void set_compile_info_for_target (void)
int main (int argc, char *argv[])

Variables

static char USMID [] = "\n@(#)5.0_pl/sources/main.c 5.15 10/14/99 15:25:09\n"

Function Documentation

static void check_defines_compatibility ( void  ) [static]

Definition at line 970 of file main.c.

References Func_Entry, Func_Exit, Internal, on_off_flags_entry::module_to_mod, NULL, on_off_flags, PRINTMSG(), and TRACE.

Referenced by init_compiler().

Here is the call graph for this function:

const char * fe_vers_ID ( void  )

Definition at line 1184 of file main.c.

Referenced by print_id_line().

const char * fe_vers_name ( void  )

Definition at line 1174 of file main.c.

const char * fe_vers_number ( void  )

Definition at line 1194 of file main.c.

References frontend_version.

Referenced by print_id_line().

static void get_machine_chars ( void  ) [static]

Definition at line 1294 of file main.c.

References exit_compiler(), target_machine_entry::fld, Func_Entry, Func_Exit, getenv(), GETPMC(), host_ieee, idx, Log_Error, target_machine_entry::mcieee, name, NULL, PRINTMSG(), RC_USER_ERROR, strcpy, target_machine, and TRACE.

Referenced by init_compiler().

Here is the call graph for this function:

static int init_compiler ( int  argc,
char *  argv[] 
) [static]

Definition at line 598 of file main.c.

References AR_Int_16_S, AR_Int_16_U, AR_Int_8_S, AR_Int_8_U, assembly_listing_file, BD_DEFERRED_1_IDX, BD_DEFERRED_7_IDX, bit_size_tbl, Ch_Class_EOF, check_defines_compatibility(), check_enums_for_change(), cif_name, CLEAR_TBL_NTRY, clearing_blk_stk, cmd_line_flags, Cmdline_Parsing, comp_date_time, comp_phase, debug_file_name, Deferred_Shape, dump_flags, enter_predefined_macros(), exit_compiler(), FALSE, file_path_tbl, Func_Entry, Func_Exit, GB_ARRAY_CLASS, GB_RANK, get_machine_chars(), global_attr_tbl, global_bounds_tbl, global_ir_list_tbl, global_ir_tbl, global_line_tbl, global_name_tbl, global_sh_tbl, global_type_tbl, GN_NAME_IDX, GN_NAME_LEN, idx, init_cif(), init_cond_comp(), init_date_time_info(), init_lex(), init_msg_processing(), init_parse_prog_unit(), init_PDGCS(), init_release_level(), init_src_input(), init_sytb(), init_type(), input_arith_type, Integer_1, on_off_flags_entry::integer_1_and_2, Integer_2, Internal, issue_deferred_msgs(), LA_CH_CLASS, LARGE_WORD_FOR_TBL_SRCH, linear_to_arith, Log_Summary, Log_Warning, Logical_1, Logical_2, make_table_changes(), max_field_len, name_pool_entry::name_long, NULL, NULL_CHAR, num_errors, on_off_flags, operator_str, Pass1_Parsing, dump_flags_entry::preinline, on_off_flags_entry::preprocess_only, preprocess_only_driver(), print_id_line(), PRINTMSG(), RC_OKAY, RC_USER_ERROR, release_level, set_compile_info_for_target(), set_up_token_tables(), sgi_cmd_line(), some_scp_in_err, src_file, storage_bit_prec_tbl, storage_bit_size_tbl, str_pool, str_pool_idx, strcpy, stride_mult_unit_in_bits, TBL_ALLOC, TBL_REALLOC_CK, The_Last_Opr, TRACE, cmd_line_flags_entry::verify_option, and verify_semantic_tbls().

Referenced by main().

Here is the call graph for this function:

static void init_date_time_info ( void  ) [static]

Definition at line 862 of file main.c.

References BLANK, COMMA, comp_date_time, EOS, Func_Entry, Func_Exit, NULL, and TRACE.

Referenced by init_compiler().

static void init_release_level ( void  ) [static]

Definition at line 1567 of file main.c.

References EOS, Func_Entry, Func_Exit, getenv(), NEWLINE, NULL, release_level, RELEASE_LEVEL_LEN, SLASH, strcpy, and TRACE.

Referenced by init_compiler().

Here is the call graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 120 of file main.c.

References assembly_output, AT_OBJ_NAME_PTR, ATP_PGM_UNIT, binary_output, Ch_Class_EOF, cif_end_unit_rec(), cif_fake_a_unit(), cif_first_pgm_unit, cif_need_unit_rec, cif_summary_rec(), clean_up_module_files(), cmd_line_flags, code_size, comp_phase, compiler_gen_date, compiler_gen_time, create_mod_info_file(), create_mod_info_tbl(), curr_glb_line, curr_scp_idx, cvrt_to_pdg(), data_size, dump_flags, exit(), exit_compiler(), file_path_tbl, final_src_input(), free_tables(), Function, global_attr_tbl, global_bounds_tbl, global_line_tbl, global_name_tbl, global_type_tbl, init_compiler(), opt_flags_entry::inline_lvl, Inline_Lvl_0, inline_processing(), Inlining, insert_global_directives, issue_deferred_msgs(), LA_CH_CLASS, Log_Summary, MAIN_SCP_IDX, max_field_len, MEM_REPORT, Module, opt_flags_entry::msgs, 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, output_mod_info_file(), OUTPUT_PASS_HEADER, parse_prog_unit(), Pass1_Parsing, Pdg_Conversion, dump_flags_entry::preinline, on_off_flags_entry::preprocess_only, PRINT_ALL_SYM_TBLS, print_buffered_messages(), PRINT_FORTRAN_OUT, PRINT_GL_TBL, PRINT_GN_TBL, print_id_line(), PRINT_IR_TBL, PRINT_IR_TBL3, PRINTMSG(), program_unit_name, RC_OKAY, RC_USER_ERROR, release_level, SCP_ATTR_IDX, SCP_FIRST_SH_IDX, SCP_IN_ERR, SCP_LAST_SH_IDX, scp_tbl, Semantics_Pass, semantics_pass_driver(), SH_COL_NUM, SH_GLB_LINE, some_scp_in_err, start_time, statement_number, stmt_start_col, stmt_start_line, str_pool, Subroutine, Syntax_Pass, terminate_PDGCS(), TRUE, and cmd_line_flags_entry::verify_option.

Here is the call graph for this function:

void print_buffered_messages ( void  )

Definition at line 1516 of file messages.c.

Referenced by exit_compiler(), flush_msg_file(), and main().

static void print_id_line ( void  ) [static]

Definition at line 1222 of file main.c.

References arith_vers_ID(), arith_vers_number(), comp_date_time, fe_vers_ID(), fe_vers_number(), Func_Exit, Log_Summary, NULL, opt_vers_ID(), opt_vers_number(), PRINTMSG(), release_level, and TRACE.

Referenced by init_compiler(), and main().

Here is the call graph for this function:


Variable Documentation

char USMID[] = "\n@(#)5.0_pl/sources/main.c 5.15 10/14/99 15:25:09\n" [static]

Definition at line 38 of file main.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines