#include <stdio.h>#include <stdlib.h>#include <sys/stat.h>#include <cmplrs/rcodes.h>#include "gspin-wgen-interface.h"#include "defs.h"#include "glob.h"#include "erglob.h"#include "err_host.tab"#include "config.h"#include "file_util.h"#include "wgen_misc.h"

Go to the source code of this file.
Defines | |
| #define | DEF_DEBUG_LEVEL 0 |
Functions/Subroutines | |
| void | WGEN_Weak_Finish (void) |
| void | WGEN_Expand_Top_Level_Decl (gs_t) |
| void | WGEN_Expand_Defers (void) |
| void | WGEN_Expand_Decl (gs_t, BOOL) |
| void | Process_Command_Line (INT argc, char **argv) |
| void | Process_Cc1_Command_Line (gs_t arg_list) |
| int | main (INT argc, char **argv, char **envp) |
Variables | |
| BOOL | List_Enabled |
| INT | Opt_Level |
| BOOL | Enable_WFE_DFE |
| BOOL | TARGET_64BIT = TRUE |
| BOOL | wgen_invoke_inliner = FALSE |
| int | lineno = 0 |
| char * | Spin_File_Name = NULL |
| FILE * | Spin_File = NULL |
| BOOL | flag_no_common = FALSE |
| int | pstatic_as_global = 0 |
| int | key_exceptions = 0 |
| BOOL | opt_regions = 0 |
| BOOL | lang_cplus = FALSE |
| BOOL | c_omit_external = TRUE |
| gs_t | program |
| INT | Debug_Level = DEF_DEBUG_LEVEL |
| int main | ( | INT | argc, | |
| char ** | argv, | |||
| char ** | envp | |||
| ) |
Definition at line 309 of file main.c.
References argc_save, argv_save, BOOL, check_gnu_errors(), compile_file(), Disable_Simplification_For_FE, EMPTY, Enable_WFE_DFE, ENOENT, ENOTDIR, envp_save, errno, error_count, exit(), gnu_init(), gs_operand(), GS_PROGRAM_DECLARATIONS, gs_read_file(), host_errlist, INT, lang_cplus, NULL, Opt_Level, Orig_Src_File_Name, Phases, printf(), Process_Cc1_Command_Line(), Process_Command_Line(), RC_INTERNAL_ERROR, RC_NEED_INLINER, RC_OKAY, RC_USER_ERROR, Set_Error_Tables(), Spin_File_Name, stat, Terminate(), TRUE, WFE_Check_Errors(), WFE_Compile_File_Invoked, WFE_File_Finish(), WFE_File_Init(), WFE_Finish(), WFE_Init(), WGEN_Check_Errors(), WGEN_Expand_Decl(), WGEN_Expand_Defers(), WGEN_Expand_Top_Level_Decl(), WGEN_File_Finish(), WGEN_File_Init(), WGEN_Finish(), WGEN_Init(), and WGEN_Weak_Finish().
Definition at line 149 of file main.c.
References BOOL, c_omit_external, Debug_Level, DEF_O_LEVEL, FALSE, FmtAssert, Get_Numeric_Flag(), gs_index(), gs_length(), gs_s(), i, INT, key_exceptions, lang_cplus, Last_Pathname_Component(), MAX_DEBUG_LEVEL, MAX_OPT_LEVEL, NULL, Opt_Level, Orig_Src_File_Name, pstatic_as_global, Show_Progress, Src_Count, Src_File_Name, strcmp(), strncmp(), TARGET_64BIT, and TRUE.
Referenced by main().
Definition at line 81 of file main.c.
References add_phase_args(), BOOL, Common_Option_Groups, Create_Cycle_Output, CXX_Exceptions_On, dashdash_flag, Debug_Level, DEF_O_LEVEL, DEF_SDATA_ELT_SIZE, Dsm_Recompile, EC_File_Flag, EC_File_Name, EC_No_Sources, EC_Unknown_Flag, Echo_Flag, ErrMsg(), ES_ADVISORY, ES_ERROR, ES_WARNING, exit(), FALSE, Feedback_File_Name, fprintf(), Get_Numeric_Flag(), Get_Trace(), Global_File_Name, Handle_Phase_Specific_Options(), i, Initialize_Timing(), INT, INT16, Irb_File_Name, Last_Pathname_Component(), List_Enabled, List_Phase_Numbers(), Lst_File_Name, MAX_DEBUG_LEVEL, MAX_MSG_LEVEL, MAX_OPT_LEVEL, Max_Sdata_Elt_Size, MAX_SDATA_ELT_SIZE, Min_Error_Severity, mp_io, NULL, Obj_File_Name, Olimit_opt, Opt_Level, PHASE_CG, PHASE_IPL, Process_Command_Line_Group(), Process_Trace_Option(), Rag_Handle_Woff_Args(), RC_USER_ERROR, Run_autopar, Run_Dsm_Check, Run_Dsm_Cloner, Run_Dsm_Common_Check, Run_MemCtr, Run_w2fc_early, Set_Instrumentation_File_Name(), Set_Trace(), Show_Progress, Spin_File_Name, Src_Count, Src_File_Name, strcmp(), strncmp(), TINFO_TFLAGS, TKIND_INFO, Tlog_Enabled, Tlog_File_Name, TP_PTRACE1, TP_PTRACE1_ALL, TP_PTRACE2, Tracing_Enabled, Trc_File_Name, TRUE, warnings_are_errors, and Whirl2C_File_Name.
Definition at line 701 of file wgen_decl.cxx.
Referenced by Create_ST_For_Tree(), Create_TY_For_Tree(), main(), WGEN_Expand_Decl(), WGEN_Expand_Expr(), WGEN_Expand_Stmt(), WGEN_Expand_Top_Level_Decl(), and WGEN_Process_Var_Decl().
Definition at line 5033 of file wgen_decl.cxx.
References BOOL, changed, check_gnu_errors(), Debug_Level, DECL_ST, deferred_function_i, DST_enter_member_function(), emit_typeinfos, EMPTY, Enable_WFE_DFE, error_count, expanded_decl(), FALSE, FmtAssert, Get_ST, Get_TY(), global_namespace, GS_FUNCTION_DECL, GS_NAMESPACE_DECL, gs_operand(), GS_RECORD_TYPE, gs_s(), gs_tree_code(), GS_VAR_DECL, INT32, Is_True, lang_cplus, NULL, Pop_Deferred_Function(), program, SCLASS_EXTERN, SCLASS_UGLOBAL, set_DECL_ST(), Set_ST_sclass, skip, ST_sclass, TRUE, TYPE_DST_IDX(), WGEN_Assemble_Alias(), WGEN_Assemble_Asm(), WGEN_Expand_Decl(), WGEN_Expand_Function_Body(), WGEN_Generate_Thunk(), WGEN_Process_Namespace_Decl(), and WGEN_Process_Var_Decl().
Referenced by main().
| BOOL c_omit_external = TRUE |
Definition at line 60 of file main.c.
Referenced by Process_Cc1_Command_Line(), and WGEN_Expand_Decl().
| INT Debug_Level = DEF_DEBUG_LEVEL |
Definition at line 67 of file main.c.
Referenced by Add_DST_variable(), Cg_Dwarf_Gen_Asm_File_Table(), CGGRP_Bundle_BB(), Choose_Stack_Model(), Configure_Source(), Create_Local_Symbol(), Create_ST_For_Tree(), Create_TY_For_Tree(), cwh_dst_enter_pu(), cwh_dst_get_command_line_options(), cwh_dst_init_file(), DST_build(), DST_Create_Subprogram(), DST_get_command_line_options(), EMT_Begin_File(), EMT_Emit_PU(), EMT_End_File(), Fix_g_O(), Formal_Sym(), Get_ST(), Init_Entry_Exit_Code(), Is_Dwarf_Section_To_Emit(), List_Compile_Options(), Localize_Variable(), Preorder_Process_PUs(), Process_Cc1_Command_Line(), Process_Command_Line(), put_compile_unit(), put_pubname(), r_assemble_op(), Rename_Privatized_COMMON(), Setup_Text_Section_For_PU(), WFE_Expand_Top_Level_Decl(), WFE_Init(), WFE_Start_Function(), and WGEN_Expand_Top_Level_Decl().
| BOOL flag_no_common = FALSE |
Definition at line 55 of file main.c.
Referenced by Create_ST_For_Tree(), darwin_override_options(), Get_ST(), and start_decl().
| int key_exceptions = 0 |
Definition at line 57 of file main.c.
Referenced by cxx_init_options(), Do_Handlers(), Do_Temp_Cleanups(), Process_Cc1_Command_Line(), WFE_Expand_EH_Spec(), WFE_Expand_Expr(), WFE_Expand_Handlers_Or_Cleanup(), WFE_Expand_Return(), WFE_Expand_Try(), WFE_Finish_Function(), WFE_Start_Function(), WFE_Stmt_Pop(), WGEN_Expand_Break(), WGEN_Expand_Continue(), WGEN_Expand_EH_Spec(), WGEN_Expand_Expr(), WGEN_Expand_Goto(), WGEN_Expand_Handlers_Or_Cleanup(), WGEN_Expand_Return(), WGEN_Expand_Try(), WGEN_Finish_Function(), WGEN_Start_Function(), and WGEN_Stmt_Pop().
| BOOL lang_cplus = FALSE |
Definition at line 59 of file main.c.
Referenced by AGGINIT::Add_Inito_For_Tree(), c_split_parallel_clauses(), Create_ST_For_Tree(), Do_Temp_Cleanups(), DST_build(), DST_Create_var(), DST_enter_struct_union(), expand_start_do_loop(), expand_start_parallel_or_combined_parallel(), get_first_real_field(), get_first_real_or_virtual_field(), get_virtual_field(), main(), next_real_field(), Process_Cc1_Command_Line(), Push_Temp_Cleanup(), Setup_MP_Enclosing_Region(), WGEN_Assemble_Alias(), WGEN_Expand_Decl(), WGEN_expand_end_for(), WGEN_expand_end_parallel(), WGEN_expand_end_sections(), WGEN_expand_end_single(), WGEN_Expand_Expr(), WGEN_Expand_Function_Body(), WGEN_expand_start_for(), WGEN_expand_start_parallel(), WGEN_expand_start_sections(), WGEN_expand_start_single(), WGEN_Expand_Stmt(), WGEN_Expand_Top_Level_Decl(), WGEN_Finish_Function(), WGEN_generate_non_pod_lastlocal_finalization(), WGEN_Init(), WGEN_Initialize_Decl(), WGEN_process_omp_clause(), and WGEN_Start_Function().
Definition at line 63 of file config_list.cxx.
Referenced by LIST_Configure(), Lnoptimizer(), main(), Prepare_Listing_File(), and Process_Command_Line().
Definition at line 919 of file config.cxx.
Referenced by Adjust_Opt_Level(), WOPT_SWITCHES::Adjust_Optimization(), CG_Process_Command_Line(), CG_PU_Initialize(), Choose_Stack_Model(), IP_ALIAS_CLASSIFICATION::Classify_deref_of_expr(), combine_adjacent_loads(), cwh_intrin_ieee_intrin_call_helper(), cwh_intrin_ieee_intrin_helper(), delete_duplicate_op(), delete_subset_mem_op(), EBO_tn_available(), Expand_Expr(), Fix_g_O(), Formal_Sym(), Init_Entry_Exit_Code(), ipl_main(), main(), Phase_Fini(), Phase_Init(), Preorder_Process_PUs(), Process_Cc1_Command_Line(), Process_Command_Line(), SUMMARIZE< program >::Process_procedure(), REGISTER_Reset_FP(), Save_or_restore_options(), sgi_cmd_line(), simp_div(), WFE_Expand_Expr(), WFE_Init(), WGEN_Expand_Expr(), WGEN_Expand_Math_Errno_Sqrt(), and WGEN_Start_Function().
| BOOL opt_regions = 0 |
Definition at line 58 of file main.c.
Referenced by cxx_init_options(), WFE_Expand_Expr(), WFE_Expand_Stmt(), WFE_Expand_Try(), WFE_Finish_Function(), WFE_Stmt_Append(), WFE_Stmt_Pop(), WFE_Stmt_Push(), WGEN_Expand_Expr(), WGEN_Expand_Stmt(), WGEN_Finish_Function(), WGEN_Stmt_Append(), WGEN_Stmt_Pop(), and WGEN_Stmt_Push().
| gs_t program |
Definition at line 64 of file main.c.
Referenced by SUMMARIZE< program >::Find_proc_info_index(), pex_msdos_exec_child(), SUMMARIZE< program >::Process_actual(), SUMMARIZE< program >::Process_callsite(), Recompute_Addr_Taken(), SUMMARIZE< program >::Record_ref(), SUMMARIZE< program >::Record_ref_all_formal(), Set_Addr_Taken_Attrib(), set_addr_taken_expr(), SUMMARIZE< program >::Set_global_addr_taken_attrib(), SUMMARIZE< IPL >::SUMMARIZE(), SUMMARIZE< program >::Update_Addr_Passed_Count(), WGEN_Expand_Expr(), WGEN_Expand_Top_Level_Decl(), WGEN_Start_Function(), and WGEN_Weak_Finish().
| int pstatic_as_global = 0 |
Definition at line 56 of file main.c.
Referenced by Create_ST_For_Tree(), Process_Cc1_Command_Line(), set_DECL_ST(), and WGEN_Init().
| char* Spin_File_Name = NULL |
| BOOL TARGET_64BIT = TRUE |
| BOOL wgen_invoke_inliner = FALSE |
Definition at line 51 of file main.c.
Referenced by WGEN_Check_Errors(), WGEN_Expand_Expr(), and WGEN_Start_Function().
1.5.6