osprey/driver/lang_defs.h File Reference

#include "basic.h"

Include dependency graph for lang_defs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PATH_BUF_LEN   4096

Typedefs

typedef long long mask_t

Enumerations

enum  languages_t {
  L_NONE, L_ALL, L_cpp, L_cc,
  L_CC, L_f77, L_f90, L_as,
  L_ld, L_internal, L_LAST
}
enum  source_kind_t {
  S_NONE, S_c, S_C, S_f,
  S_F, S_f90, S_F90, S_r,
  S_i, S_ii, S_s, S_S,
  S_I, S_B, S_N, S_O,
  S_o, S_LAST
}
enum  phases_t {
  P_NONE, P_All, P_m4, P_ratfor,
  P_cpp, P_gcpp, P_gcpp_plus, P_c_cpp,
  P_cplus_cpp, P_f_cpp, P_f90_cpp, P_any_cpp,
  P_pfa, P_pca, P_mpc, P_any_optfe,
  P_f_fe, P_cppf_fe, P_f90_fe, P_cppf90_fe,
  P_c_gfe, P_cplus_gfe, P_any_fe, P_pseudo_f_fe,
  P_pseudo_c_fe, P_lister, P_inline, P_ipl,
  p_any_ipl, P_be, P_as, P_gas,
  P_any_as, P_dsm_prelink, P_ipa_link, P_collect,
  P_ld, P_ldplus, P_any_ld, P_cord,
  P_pixie, P_prof, P_ar, P_startup,
  P_include, P_library, P_alt_library, P_LAST
}
enum  mem_model_t {
  M_SMALL, M_MEDIUM, M_LARGE, M_KERNEL,
  M_LAST
}

Functions/Subroutines

phases_t earliest_phase (phases_t a, phases_t b)
languages_t get_language (char key)
phases_t get_phase (char key)
mask_t get_language_mask (languages_t i)
mask_t get_phase_mask (phases_t i)
void substitute_phase_dirs (char *orig_dir, char *new_dir, char *leaf)
void set_phase_dir (mask_t mask, char *path)
void prefix_all_phase_dirs (mask_t mask, char *path)
void get_phases_real_path (void)
void append_all_phase_dirs (mask_t mask, char *path)
void append_phase_dir (phases_t index, char *path)
char * get_phase_dir (phases_t index)
char * get_phase_ld_library_path (phases_t index)
char * get_phase_name (phases_t index)
char * get_full_phase_name (phases_t index)
void set_phase_name (phases_t index, char *s)
languages_t get_named_language (char *name)
char * get_lang_name (languages_t index)
source_kind_t get_source_kind_from_suffix (char *suf)
source_kind_t get_source_kind (char *src)
boolean is_object_source_kind (char *src)
char * get_suffix_string (source_kind_t sk)
languages_t get_source_lang (source_kind_t sk)
boolean is_matching_language (mask_t lang_mask, languages_t l)
boolean is_matching_phase (mask_t phase_mask, phases_t p)
char * read_cmd_out (char *cmd, char *out_buf)

Variables

languages_t invoked_lang
languages_t source_lang
source_kind_t source_kind
source_kind_t default_source_kind
phases_t first_phase
phases_t last_phase
phases_t remember_last_phase
phases_t current_phase
mask_t OPEN64_PHASE_MASK
mask_t PHASE_MASK
mask_t LIB_MASK
boolean ignore_suffix
boolean show_but_not_run
mem_model_t mem_model


Define Documentation

#define PATH_BUF_LEN   4096

Definition at line 254 of file lang_defs.h.

Referenced by find_toolroot(), get_phase_dir(), and init_phase_info().


Typedef Documentation

typedef long long mask_t

Definition at line 183 of file lang_defs.h.


Enumeration Type Documentation

Enumerator:
L_NONE 
L_ALL 
L_cpp 
L_cc 
L_CC 
L_f77 
L_f90 
L_as 
L_ld 
L_internal 
L_LAST 

Definition at line 51 of file lang_defs.h.

Enumerator:
M_SMALL 
M_MEDIUM 
M_LARGE 
M_KERNEL 
M_LAST 

Definition at line 238 of file lang_defs.h.

enum phases_t

Enumerator:
P_NONE 
P_All 
P_m4 
P_ratfor 
P_cpp 
P_gcpp 
P_gcpp_plus 
P_c_cpp 
P_cplus_cpp 
P_f_cpp 
P_f90_cpp 
P_any_cpp 
P_pfa 
P_pca 
P_mpc 
P_any_optfe 
P_f_fe 
P_cppf_fe 
P_f90_fe 
P_cppf90_fe 
P_c_gfe 
P_cplus_gfe 
P_any_fe 
P_pseudo_f_fe 
P_pseudo_c_fe 
P_lister 
P_inline 
P_ipl 
p_any_ipl 
P_be 
P_as 
P_gas 
P_any_as 
P_dsm_prelink 
P_ipa_link 
P_collect 
P_ld 
P_ldplus 
P_any_ld 
P_cord 
P_pixie 
P_prof 
P_ar 
P_startup 
P_include 
P_library 
P_alt_library 
P_LAST 

Definition at line 88 of file lang_defs.h.

Enumerator:
S_NONE 
S_c 
S_C 
S_f 
S_F 
S_f90 
S_F90 
S_r 
S_i 
S_ii 
S_s 
S_S 
S_I 
S_B 
S_N 
S_O 
S_o 
S_LAST 

Definition at line 66 of file lang_defs.h.


Function Documentation

void append_all_phase_dirs ( mask_t  mask,
char *  path 
)

Definition at line 404 of file lang_defs.c.

References concat_strings(), dir, phase_struct::dir, i, P_LAST, P_NONE, strcmp(), and strlen().

void append_phase_dir ( phases_t  index,
char *  path 
)

Definition at line 422 of file lang_defs.c.

References concat_strings(), dir, and phase_struct::dir.

Referenced by add_library_options().

phases_t earliest_phase ( phases_t  a,
phases_t  b 
)

Definition at line 284 of file lang_defs.c.

Referenced by change_last_phase(), dash_F_option(), and if().

char* get_full_phase_name ( phases_t  index  ) 

char* get_lang_name ( languages_t  index  ) 

Definition at line 531 of file lang_defs.c.

References concat_strings(), and lang_struct::name.

Referenced by for().

languages_t get_language ( char  key  ) 

Definition at line 293 of file lang_defs.c.

References i, internal_error(), L_LAST, and L_NONE.

Referenced by create_lang_field().

mask_t get_language_mask ( languages_t  i  ) 

languages_t get_named_language ( char *  name  ) 

phases_t get_phase ( char  key  ) 

char* get_phase_dir ( phases_t  index  ) 

char* get_phase_ld_library_path ( phases_t  index  ) 

Definition at line 493 of file lang_defs.c.

References phase_struct::dir.

Referenced by run_phase().

mask_t get_phase_mask ( phases_t  i  ) 

char* get_phase_name ( phases_t  index  ) 

Definition at line 503 of file lang_defs.c.

References concat_strings(), and phase_struct::name.

Referenced by get_full_phase_name(), and if().

void get_phases_real_path ( void   ) 

Definition at line 475 of file lang_defs.c.

References dir, phase_struct::dir, i, p, P_LAST, P_NONE, PATH_MAX, realpath(), strcmp(), and string_copy().

Referenced by init_phase_info().

source_kind_t get_source_kind ( char *  src  ) 

source_kind_t get_source_kind_from_suffix ( char *  suf  ) 

Definition at line 601 of file lang_defs.c.

References i, MAX_SUFFIXES, NULL, S_LAST, S_NONE, S_o, strcmp(), and source_struct::suffix.

Referenced by for(), and get_source_kind().

languages_t get_source_lang ( source_kind_t  sk  ) 

Definition at line 663 of file lang_defs.c.

References invoked_lang, L_as, L_cc, L_CC, L_f77, L_f90, L_NONE, S_B, S_C, S_c, S_F, S_f, S_F90, S_f90, S_I, S_i, S_ii, S_N, S_O, S_o, S_r, S_S, and S_s.

Referenced by for(), if(), and run_compiler().

char* get_suffix_string ( source_kind_t  sk  ) 

Definition at line 638 of file lang_defs.c.

References source_struct::suffix.

Referenced by add_file_args(), and main().

boolean is_matching_language ( mask_t  lang_mask,
languages_t  l 
)

Definition at line 335 of file lang_defs.c.

Referenced by is_internal_option(), and option_matches_language().

boolean is_matching_phase ( mask_t  phase_mask,
phases_t  p 
)

boolean is_object_source_kind ( char *  src  ) 

Definition at line 646 of file lang_defs.c.

References FALSE, get_suffix(), MAX_SUFFIXES, NULL, S_o, strcmp(), source_struct::suffix, and TRUE.

void prefix_all_phase_dirs ( mask_t  mask,
char *  path 
)

Definition at line 392 of file lang_defs.c.

References concat_strings(), dir, phase_struct::dir, i, P_LAST, and P_NONE.

Referenced by init_phase_info().

char* read_cmd_out ( char *  cmd,
char *  out_buf 
)

Referenced by get_phase_dir().

void set_phase_dir ( mask_t  mask,
char *  path 
)

void set_phase_name ( phases_t  index,
char *  s 
)

Definition at line 514 of file lang_defs.c.

References phase_struct::name.

Referenced by if(), and init_frontend_phase_names().

void substitute_phase_dirs ( char *  orig_dir,
char *  new_dir,
char *  leaf 
)


Variable Documentation

Definition at line 276 of file lang_defs.c.

Referenced by add_file_args(), construct_given_name(), and construct_name().

Definition at line 278 of file lang_defs.c.

Referenced by get_source_kind(), and set_explicit_lang().

phases_t first_phase

Definition at line 273 of file lang_defs.c.

Referenced by determine_phase_order(), and tekhex_object_p().

Definition at line 279 of file lang_defs.c.

Referenced by check_for_driver_controls(), get_source_kind(), and set_explicit_lang().

Definition at line 225 of file lang_defs.c.

Referenced by init_phase_info().

Definition at line 1597 of file opt_actions.c.

Definition at line 221 of file lang_defs.c.

Referenced by init_phase_info().

Definition at line 223 of file lang_defs.c.

Referenced by init_phase_info().

Definition at line 85 of file run.c.

Referenced by add_file_args(), my_execv(), and my_putenv().


Generated on Wed Apr 8 15:07:18 2009 for Open64 by  doxygen 1.5.6