Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#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"
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" |
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().
static void check_enums_for_change | ( | void | ) | [static] |
Definition at line 1642 of file main.c.
References Alloc_Opr, Aloc_Opr, Char_Opr, Copyin_Bound_Opr, Defined_Un_Opr, Dv_Set_A_Contig, End_Singleprocess_Par_Opr, Endparallel_Open_Mp_Opr, Eqv_Opr, Fetch_And_Nand_Opr, Fissionable_Star_Opr, Func_Entry, Func_Exit, Init_Reloc_Opr, Internal, Io_Item_Type_Code_Opr, Local_Pe_Dim_Opr, Minval_Opr, Nint_Opr, NULL, Null_Opr, Omp_In_Parallel_Opr, Prefertask_Cdir_Opr, PRINTMSG(), Rrspacing_Opr, Set_Ieee_Exception_Opr, Stop_Opr, TRACE, and Wait_Cmic_Opr.
Referenced by init_compiler().
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 | ) |
const char * fe_vers_number | ( | void | ) |
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().
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().
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().
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.
static void make_table_changes | ( | void | ) | [static] |
Definition at line 1069 of file main.c.
References AR_Complex_IEEE_NR_128, AR_Complex_IEEE_NR_32, AR_Complex_IEEE_NR_64, AR_Float_IEEE_NR_128, AR_Float_IEEE_NR_32, AR_Float_IEEE_NR_64, Complex_16, Complex_4, Complex_8, eq_ne_tbl, Func_Entry, Func_Exit, gt_lt_tbl, input_arith_type, lg_tbl, linear_to_arith, LOGICAL_DEFAULT_TYPE, NULL, Num_Linear_Types, Real_16, Real_4, Real_8, strcpy, target_ieee, TRACE, and exp_tbl_entry::type.
Referenced by init_compiler().
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().
static void set_compile_info_for_target | ( | void | ) | [static] |
Definition at line 1375 of file main.c.
References char_len_in_bytes, CRI_Ch_Ptr_8, FALSE, target_machine_entry::fld, Func_Entry, Func_Exit, max_character_length, target_machine_entry::mc_subtype1, target_machine_entry::mcieee, NULL, storage_bit_size_tbl, target_ieee, Target_Irix, Target_Linux, target_machine, Target_Max, target_os, target_safevl, Target_Solaris, target_sv1, Target_Sv2, target_t3e, target_triton, Target_Unicos, TRACE, TRUE, true_value, and two_word_fcd.
Referenced by init_compiler().