#include <stdio.h>#include <stdlib.h>#include <string.h>#include "lib_phase_dir.h"#include "lang_defs.h"#include "file_utils.h"#include "string_utils.h"#include "errors.h"

Go to the source code of this file.
| #define MAX_LANG_NAMES 5 |
| #define MAX_SUFFIXES 8 |
Definition at line 228 of file lang_defs.c.
Referenced by get_source_kind_from_suffix(), and is_object_source_kind().
| typedef struct lang_struct lang_info_t |
| typedef struct phase_struct phase_info_t |
| typedef struct source_struct source_info_t |
Definition at line 404 of file lang_defs.c.
References concat_strings(), dir, phase_struct::dir, i, P_LAST, P_NONE, strcmp(), and strlen().
Definition at line 422 of file lang_defs.c.
References concat_strings(), dir, and phase_struct::dir.
Referenced by add_library_options().
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 | ) |
Definition at line 521 of file lang_defs.c.
References concat_strings(), get_phase_dir(), get_phase_name(), strcat(), strcpy, and tmp.
Referenced by check_existence_of_phases(), find_crt_path(), init_crt_paths(), init_stdc_plus_plus_path(), read_gcc_output(), run_ar(), run_compiler(), run_dsm_prelink(), run_ld(), run_pixie(), and run_prof().
| 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 | ) |
Definition at line 306 of file lang_defs.c.
References lang_struct::mask.
Referenced by add_language_for_option(), add_new_option(), create_lang_field(), read_table(), set_language_for_option(), and write_get_option().
| languages_t get_named_language | ( | char * | name | ) |
Definition at line 541 of file lang_defs.c.
References free(), i, internal_error(), L_as, L_LAST, L_NONE, last_phase, malloc, MAX_LANG_NAMES, lang_struct::name, NIL, NULL, p, P_any_as, strcmp(), strdup, strlen(), strstr(), and tolower().
Referenced by main().
| phases_t get_phase | ( | char | key | ) |
Definition at line 312 of file lang_defs.c.
References buf, i, int, P_LAST, P_NONE, sprintf(), and warn_no_longer_supported().
Referenced by change_last_phase(), change_phase_path(), create_phase_field(), and parse_W_option().
| char* get_phase_dir | ( | phases_t | index | ) |
Definition at line 455 of file lang_defs.c.
References phase_struct::dir, NULL, P_ipa_link, PATH_BUF_LEN, read_cmd_out(), result, sprintf(), and string_copy().
Referenced by add_special_options(), check_existence_of_phases(), find_crt_path(), find_obj_path(), get_full_phase_name(), init_stdc_plus_plus_path(), print_phase_path(), print_search_path(), run_ld(), run_phase(), and set_library_paths().
| 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().
Definition at line 328 of file lang_defs.c.
References phase_struct::mask.
Referenced by add_new_option(), add_phase_for_option(), change_phase_path(), copy_phase_options(), create_phase_field(), remove_phase_for_option(), run_compiler(), and run_phase().
| 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().
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 | ) |
Definition at line 618 of file lang_defs.c.
References default_source_kind, get_source_kind_from_suffix(), get_suffix(), ignore_suffix, invoked_lang, L_as, L_CC, L_cc, L_f77, L_f90, S_C, S_c, S_f, S_f90, S_NONE, and S_s.
Referenced by check_output_name(), if(), and main().
| 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 | ) |
| 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().
Definition at line 342 of file lang_defs.c.
References is_matching_phase(), P_cppf_fe, P_f_cpp, and P_f_fe.
Referenced by copy_phase_options(), is_matching_phase(), option_matches_phase(), run_compiler(), and run_phase().
| 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.
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().
Definition at line 354 of file lang_defs.c.
References phase_struct::dir, FALSE, phase_struct::find_dir_by_path, i, ldpath_for_pixie, P_LAST, P_ld, P_NONE, and string_copy().
Referenced by change_phase_path().
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 | |||
| ) |
Definition at line 371 of file lang_defs.c.
References concat_strings(), dir, phase_struct::dir, i, is_directory(), ldpath_for_pixie, P_LAST, P_ld, P_NONE, and strcmp().
| phases_t current_phase = P_NONE |
Definition at line 276 of file lang_defs.c.
Referenced by add_file_args(), construct_given_name(), and construct_name().
| source_kind_t default_source_kind = S_NONE |
Definition at line 278 of file lang_defs.c.
Referenced by get_source_kind(), and set_explicit_lang().
| phases_t first_phase = P_any_cpp |
Definition at line 273 of file lang_defs.c.
Referenced by determine_phase_order(), and tekhex_object_p().
| boolean ignore_suffix = FALSE |
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 271 of file lang_defs.c.
Referenced by add_file_args(), add_final_ld_args(), add_language_option(), add_object(), add_special_options(), append_objects_to_list(), dash_F_option(), determine_ld_phase(), determine_phase_order(), for(), get_source_kind(), get_source_lang(), if(), main(), mark_used(), parse_C_option(), parse_R_option(), parse_u_option(), parse_U_option(), print_defaults(), print_help_msg(), Process_Cray_Mp(), Process_Promp(), run_ld(), save_ipl_commands(), set_dsm_default_options(), and write_command_string_into_file().
lang_info_t language_info[] [static] |
Initial value:
{
{'N', 0x00000000, {""}},
{'A', 0x0fffffff, {""}},
{'p', 0x00000001, {"cpp"}},
{'I', 0x80000000, {"int"}},
}
Definition at line 71 of file lang_defs.c.
| phases_t last_phase = P_cord |
Definition at line 274 of file lang_defs.c.
Referenced by add_file_args(), add_special_options(), change_last_phase(), check_for_driver_controls(), check_makedepend_flags(), dash_F_option(), determine_phase_order(), get_named_language(), if(), and main().
| char* ldpath_for_pixie = NULL |
Definition at line 57 of file lang_defs.c.
Referenced by add_file_args(), set_phase_dir(), and substitute_phase_dirs().
Initial value:
0xfff0000000000000LL
Definition at line 225 of file lang_defs.c.
Referenced by init_phase_info().
Initial value:
0x0000f19fffffff90LL
Definition at line 221 of file lang_defs.c.
Referenced by init_phase_info().
phase_info_t phase_info[] [static] |
Definition at line 101 of file lang_defs.c.
Initial value:
0x000fffffffffffffLL
Definition at line 223 of file lang_defs.c.
Referenced by init_phase_info().
| phases_t remember_last_phase = P_NONE |
Definition at line 275 of file lang_defs.c.
Referenced by add_file_args(), construct_given_name(), construct_name(), get_object_file(), if(), run_compiler(), and write_command_string_into_file().
source_info_t source_info[] [static] |
Definition at line 233 of file lang_defs.c.
| source_kind_t source_kind = S_NONE |
Definition at line 277 of file lang_defs.c.
Referenced by add_file_args(), add_special_options(), determine_phase_order(), fix_name_by_phase(), for(), if(), main(), run_compiler(), set_explicit_lang(), and set_f90_source_form().
Definition at line 272 of file lang_defs.c.
Referenced by add_command_line_arg(), add_file_args(), add_final_ld_args(), copy_phase_options(), determine_phase_order(), fix_name_by_lang(), for(), if(), run_compiler(), and set_explicit_lang().
1.5.6