#include "config.h"#include "system.h"#include <signal.h>#include "obstack.h"#include "intl.h"#include "prefix.h"#include "gcc.h"#include "flags.h"#include "configargs.h"#include "multilib.h"#include "specs.h"

Go to the source code of this file.
Data Types | |
| type | user_specs |
| type | compiler |
| type | option_map |
| type | prefix_list |
| type | path_prefix |
| type | spec_list |
| type | temp_name |
| type | temp_file |
| type | switchstr |
| type | infile |
Defines | |
| #define | HOST_EXECUTABLE_SUFFIX "" |
| #define | TARGET_OBJECT_SUFFIX ".o" |
| #define | DIR_UP ".." |
| #define | LIBRARY_PATH_ENV "LIBRARY_PATH" |
| #define | kill(p, s) raise(s) |
| #define | MIN_FATAL_STATUS 1 |
| #define | ASM_SPEC "" |
| #define | ASM_FINAL_SPEC "" |
| #define | CPP_SPEC "" |
| #define | CC1_SPEC "" |
| #define | CC1PLUS_SPEC "" |
| #define | LINK_SPEC "" |
| #define | LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}" |
| #define | LIBGCC_SPEC "-lgcc" |
| #define | STARTFILE_SPEC "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}" |
| #define | SWITCHES_NEED_SPACES "" |
| #define | ENDFILE_SPEC "" |
| #define | LINKER_NAME "collect2" |
| #define | ASM_DEBUG_SPEC "" |
| #define | LINK_GCC_C_SEQUENCE_SPEC "%G %L %G" |
| #define | LINK_PIE_SPEC "%{pie:} " |
| #define | LINK_COMMAND_SPEC "\%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %(linker) %l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\ %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\ %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}}\ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}" |
| #define | LINK_LIBGCC_SPEC "%D" |
| #define | STARTFILE_PREFIX_SPEC "" |
| #define | MULTILIB_DEFAULTS { "" } |
| #define | DRIVER_SELF_SPECS "" |
| #define | SWITCH_TAKES_ARG(CHAR) DEFAULT_SWITCH_TAKES_ARG(CHAR) |
| #define | WORD_SWITCH_TAKES_ARG(STR) DEFAULT_WORD_SWITCH_TAKES_ARG (STR) |
| #define | MD_EXEC_PREFIX "" |
| #define | MD_STARTFILE_PREFIX "" |
| #define | MD_STARTFILE_PREFIX_1 "" |
| #define | STANDARD_EXEC_PREFIX "/usr/local/lib/gcc-lib/" |
| #define | STANDARD_STARTFILE_PREFIX "/usr/local/lib/" |
| #define | TOOLDIR_BASE_PREFIX "/usr/local/" |
| #define | STANDARD_BINDIR_PREFIX "/usr/local/bin" |
| #define | INIT_STATIC_SPEC(NAME, PTR) { NAME, NULL, PTR, (struct spec_list *) 0, sizeof (NAME) - 1, 0 } |
| #define | SWITCH_OK 0 |
| #define | SWITCH_FALSE -1 |
| #define | SWITCH_IGNORE -2 |
| #define | SWITCH_LIVE 1 |
Enumerations | |
| enum | path_prefix_priority { PREFIX_PRIORITY_B_OPT, PREFIX_PRIORITY_LAST, PREFIX_PRIORITY_B_OPT, PREFIX_PRIORITY_LAST, PREFIX_PRIORITY_B_OPT, PREFIX_PRIORITY_LAST, PREFIX_PRIORITY_B_OPT, PREFIX_PRIORITY_LAST } |
Functions/Subroutines | |
| static void init_spec | PARAMS ((void)) |
| static void store_arg | PARAMS ((const char *, int, int)) |
| static char *load_specs | PARAMS ((const char *)) |
| static void read_specs | PARAMS ((const char *, int)) |
| static void set_spec | PARAMS ((const char *, const char *)) |
| static struct compiler *lookup_compiler | PARAMS ((const char *, size_t, const char *)) |
| static char *build_search_list | PARAMS ((struct path_prefix *, const char *, int)) |
| static void putenv_from_prefixes | PARAMS ((struct path_prefix *, const char *)) |
| static char *find_a_file | PARAMS ((struct path_prefix *, const char *, int, int)) |
| static void add_prefix | PARAMS ((struct path_prefix *, const char *, const char *, int, int, int *, int)) |
| static void translate_options | PARAMS ((int *, const char *const **)) |
| static char *skip_whitespace | PARAMS ((char *)) |
| static int check_live_switch | PARAMS ((int, int)) |
| static int do_spec_1 | PARAMS ((const char *, int, const char *)) |
| static int is_directory | PARAMS ((const char *, const char *, int)) |
| static void give_switch | PARAMS ((int, int, int)) |
| static void | translate_options (int *argcp, const char *const **argvp) |
| static char * | skip_whitespace (char *p) |
| static void | init_spec () |
| static void | set_spec (char *name, const char *spec) const |
| static void | alloc_args () |
| static void | clear_args () |
| static void | store_arg (char *arg, int delete_always, int delete_failure) const |
| static char * | load_specs (char *filename) const |
| static void | read_specs (char *filename, int main_p) const |
| void | record_temp_file (char *filename, int always_delete, int fail_delete) const |
| static void | delete_if_ordinary (char *name) const |
| static void | delete_temp_files () |
| static void | delete_failure_queue () |
| static void | clear_failure_queue () |
| static char * | build_search_list (struct path_prefix *paths, const char *prefix, int check_dir_p) |
| static void | putenv_from_prefixes (struct path_prefix *paths, const char *env_var) |
| static int | access_check (char *name, int mode) const |
| static char * | find_a_file (struct path_prefix *pprefix, const char *name, int mode, int multilib) |
| static void | add_prefix (struct path_prefix *pprefix, const char *prefix, const char *component, int priority, int require_machine_suffix, int *warn, int os_multilib) |
| static int | execute () |
| static void | display_help () |
| static void | add_preprocessor_option (char *option, int len) const |
| static void | add_assembler_option (char *option, int len) const |
| static void | add_linker_option (char *option, int len) const |
| static void | process_command (int argc, const char *const *argv) |
Variables | |
| static const char | dir_separator_str [] = { DIR_SEPARATOR, 0 } |
| int | is_cpp_driver |
| static int | pass_exit_codes |
| static int | print_search_dirs |
| static const char * | print_file_name = NULL |
| static const char * | print_prog_name = NULL |
| static int | print_multi_directory |
| static int | print_multi_os_directory |
| static int | print_multi_lib |
| static int | print_help_list |
| static int | verbose_flag |
| static int | verbose_only_flag |
| static int | target_help_flag |
| static int | report_times |
| static int | save_temps_flag |
| static const char * | compiler_version |
| static const char *const | spec_version = DEFAULT_TARGET_VERSION |
| static const char * | spec_machine = DEFAULT_TARGET_MACHINE |
| static const char * | cross_compile = "0" |
| static int | error_count = 0 |
| static int | greatest_status = 1 |
| static struct obstack | obstack |
| static struct obstack | collect_obstack |
| static const char * | cpp_unique_options |
| static const char * | cpp_options |
| static const char * | cpp_debug_options = "%{d*}" |
| static const char * | cc1_options |
| static const char * | asm_options |
| static const char * | invoke_as |
| static struct obstack | multilib_obstack |
| static const char * | multilib_select |
| static const char * | multilib_matches |
| static const char * | multilib_defaults |
| static const char * | multilib_exclusions |
| static const char *const | multilib_defaults_raw [] = MULTILIB_DEFAULTS |
| static const char *const | driver_self_specs [] = { DRIVER_SELF_SPECS } |
| static struct user_specs * | user_specs_head |
| static struct user_specs * | user_specs_tail |
| static struct compiler * | compilers |
| static int | n_compilers |
| static struct compiler | default_compilers [] |
| static const int | n_default_compilers = ARRAY_SIZE (default_compilers) - 1 |
| static int | n_linker_options |
| static char ** | linker_options |
| static int | n_assembler_options |
| static char ** | assembler_options |
| static int | n_preprocessor_options |
| static char ** | preprocessor_options |
| static struct option_map | option_map [] |
| static struct path_prefix | exec_prefixes = { 0, 0, "exec" } |
| static struct path_prefix | startfile_prefixes = { 0, 0, "startfile" } |
| static struct path_prefix | include_prefixes = { 0, 0, "include" } |
| static const char * | machine_suffix = 0 |
| static const char * | just_machine_suffix = 0 |
| static const char * | gcc_exec_prefix |
| static const char *const | standard_exec_prefix = STANDARD_EXEC_PREFIX |
| static const char *const | standard_exec_prefix_1 = "/usr/lib/gcc/" |
| static const char * | md_exec_prefix = MD_EXEC_PREFIX |
| static const char * | md_startfile_prefix = MD_STARTFILE_PREFIX |
| static const char * | md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1 |
| static const char *const | standard_startfile_prefix = STANDARD_STARTFILE_PREFIX |
| static const char *const | standard_startfile_prefix_1 = "/lib/" |
| static const char *const | standard_startfile_prefix_2 = "/usr/lib/" |
| static const char *const | tooldir_base_prefix = TOOLDIR_BASE_PREFIX |
| static const char * | tooldir_prefix |
| static const char *const | standard_bindir_prefix = STANDARD_BINDIR_PREFIX |
| static const char * | multilib_dir |
| static const char * | multilib_os_dir |
| static struct spec_list | static_specs [] |
| static struct spec_list * | specs = (struct spec_list *) 0 |
| static struct spec_function | static_spec_functions [] |
| static int | processing_spec_function |
| static const char ** | argbuf |
| static int | argbuf_length |
| static int | argbuf_index |
| static struct temp_name * | temp_names |
| static int | execution_count |
| static int | signal_count |
| static const char * | programname |
| static const char * | temp_filename |
| static int | temp_filename_length |
| static struct temp_file * | always_delete_queue |
| static struct temp_file * | failure_delete_queue |
| static struct switchstr * | switches |
| static int | n_switches |
| static struct infile * | infiles |
| int | n_infiles |
| static int | added_libraries |
| const char ** | outfiles |
| static int | warn_B |
| static int * | warn_std_ptr = 0 |
| #define ASM_DEBUG_SPEC "" |
Referenced by init_spec().
| #define ASM_FINAL_SPEC "" |
| #define ASM_SPEC "" |
| #define CC1_SPEC "" |
| #define CC1PLUS_SPEC "" |
| #define CPP_SPEC "" |
| #define ENDFILE_SPEC "" |
| #define kill | ( | p, | |||
| s | ) | raise(s) |
Definition at line 132 of file gcc.c.
Referenced by _PXFKILL(), catch_signal(), Catch_Signal(), DAVINCI::cleanup(), daVinci::cleanup(), close_one(), close_server(), df_analyse_1(), df_rd_transfer_function(), df_ru_transfer_function(), df_ur_transfer_function(), df_urec_transfer_function(), ErrMsg_Report(), ErrMsg_Report_Nonuser(), ErrMsg_Report_User(), fatal_error(), handler(), ir_bwrite_signal_handler(), Ir_Lno_Signal_Handler(), DaVinci::Kill_Davinci(), ld_kill_compilation(), Perform_Interprocedural_Optimization(), pex_unix_wait(), DAG_BUILDER::Set_TN_BB_Bitset_Table(), and sigdie().
| #define LIBGCC_SPEC "-lgcc" |
| #define LINK_COMMAND_SPEC "\%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %(linker) %l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\ %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\ %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}}\ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}" |
| #define LINK_LIBGCC_SPEC "%D" |
Referenced by fatal_ice(), and pfatal_pexecute().
| #define LINK_PIE_SPEC "%{pie:} " |
| #define LINK_SPEC "" |
| #define LINKER_NAME "collect2" |
| #define STARTFILE_PREFIX_SPEC "" |
Referenced by fatal_ice(), and pfatal_pexecute().
| #define STARTFILE_SPEC "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}" |
| #define SWITCH_FALSE -1 |
| #define SWITCH_IGNORE -2 |
Definition at line 2791 of file gcc.c.
Referenced by do_spec_1(), give_switch(), set_collect_gcc_options(), and used_arg().
| #define SWITCH_LIVE 1 |
| #define SWITCH_OK 0 |
| #define SWITCHES_NEED_SPACES "" |
| #define WORD_SWITCH_TAKES_ARG | ( | STR | ) | DEFAULT_WORD_SWITCH_TAKES_ARG (STR) |
| enum path_prefix_priority |
| static int access_check | ( | char * | name, | |
| int | mode | |||
| ) | const [static] |
Definition at line 2282 of file gcc.c.
References access, S_ISDIR, stat::st_mode, and X_OK.
Referenced by cp_parser_nested_name_specifier_opt(), cp_parser_template_id(), file_at_path(), find_a_file(), and process_command().
| static void add_assembler_option | ( | char * | option, | |
| int | len | |||
| ) | const [static] |
Definition at line 2971 of file gcc.c.
References save_string(), xmalloc(), and xrealloc().
Referenced by process_command().
| static void add_linker_option | ( | char * | option, | |
| int | len | |||
| ) | const [static] |
Definition at line 2989 of file gcc.c.
References save_string(), xmalloc(), and xrealloc().
Referenced by do_spec_1(), and process_command().
| static void add_prefix | ( | struct path_prefix * | pprefix, | |
| const char * | prefix, | |||
| const char * | component, | |||
| int | priority, | |||
| int | require_machine_suffix, | |||
| int * | warn, | |||
| int | os_multilib | |||
| ) | [static] |
Definition at line 2481 of file gcc.c.
References len, prefix_list::next, NULL, prefix_list::os_multilib, pl, prefix_list::prefix, prev, prefix_list::priority, prefix_list::require_machine_suffix, strlen(), update_path(), prefix_list::used_flag_ptr, and xmalloc().
| static void add_preprocessor_option | ( | char * | option, | |
| int | len | |||
| ) | const [static] |
Definition at line 2952 of file gcc.c.
References save_string(), xmalloc(), and xrealloc().
Referenced by process_command().
Definition at line 1732 of file gcc.c.
References xmalloc().
Referenced by eval_spec_function(), and main().
| static char* build_search_list | ( | struct path_prefix * | paths, | |
| const char * | prefix, | |||
| int | check_dir_p | |||
| ) | [static] |
Definition at line 2209 of file gcc.c.
References collect_obstack, FALSE, first_time, is_directory(), len, prefix_list::next, obstack_1grow, obstack_finish, obstack_grow, PATH_SEPARATOR, prefix_list::prefix, prefix_list::require_machine_suffix, strlen(), and TRUE.
Referenced by main(), and putenv_from_prefixes().
Definition at line 2188 of file gcc.c.
References delete_if_ordinary(), temp_file::name, and temp_file::next.
Referenced by fatal_error(), and main().
| static void delete_if_ordinary | ( | char * | name | ) | const [static] |
Definition at line 2153 of file gcc.c.
References c, EOF, fflush(), getchar(), i, perror_with_name(), printf(), S_ISREG, stat::st_mode, and unlink.
Referenced by delete_failure_queue(), and delete_temp_files().
Definition at line 2176 of file gcc.c.
References delete_if_ordinary(), temp_file::name, and temp_file::next.
Referenced by fatal(), fatal_error(), main(), and pfatal_with_name().
| static int execute | ( | void | ) | [static] |
Definition at line 2527 of file gcc.c.
References abort, alloca, bug_report_url, commands, double, fatal(), fflush(), find_a_file(), fprintf(), fputc(), free(), getchar(), getrusage(), i, MIN_FATAL_STATUS, notice(), NULL, p, pexecute(), PEXECUTE_FIRST, PEXECUTE_LAST, PEXECUTE_SEARCH, PEXECUTE_VERBOSE, pfatal_pexecute(), pid, PTR, pwait(), SIGPIPE, strcmp(), strsignal(), timeval::tv_sec, timeval::tv_usec, WEXITSTATUS, WIFEXITED, WIFSIGNALED, WTERMSIG, and X_OK.
Referenced by do_spec(), and do_spec_1().
| static char* find_a_file | ( | struct path_prefix * | pprefix, | |
| const char * | name, | |||
| int | mode, | |||
| int | multilib | |||
| ) | [static] |
Definition at line 2303 of file gcc.c.
References access, access_check(), ACONCAT, DEFAULT_LINKER, free(), HOST_EXECUTABLE_SUFFIX, IS_ABSOLUTE_PATHNAME, len, prefix_list::next, NULL, prefix_list::os_multilib, pl, prefix_list::prefix, prefix_list::require_machine_suffix, strcat(), strcmp(), strcpy, strlen(), prefix_list::used_flag_ptr, X_OK, xmalloc(), and xstrdup().
Definition at line 1489 of file gcc.c.
References ARRAY_SIZE, ASM_DEBUG_SPEC, i, LINK_EH_SPEC, spec_list::name, spec_list::name_len, next, spec_list::next, notice(), obstack_1grow, obstack_finish, obstack_grow, obstack_grow0, p, spec_list::ptr, spec_list::ptr_spec, sl, strlen(), strncmp(), tf, and xcalloc().
Referenced by main(), and process_command().
| static char* load_specs | ( | char * | filename | ) | const [static] |
Definition at line 1775 of file gcc.c.
References c, close, free(), notice(), O_RDONLY, open, pfatal_with_name(), read, skip, stat::st_size, and xmalloc().
Referenced by read_specs().
| static void give_switch PARAMS | ( | (int, int, int) | ) | [static] |
| static int is_directory PARAMS | ( | (const char *, const char *, int) | ) | [static] |
| static int do_spec_1 PARAMS | ( | (const char *, int, const char *) | ) | [static] |
| static int check_live_switch PARAMS | ( | (int, int) | ) | [static] |
| static char* skip_whitespace PARAMS | ( | (char *) | ) | [static] |
| static void translate_options PARAMS | ( | (int *, const char *const **) | ) | [static] |
| static void add_prefix PARAMS | ( | (struct path_prefix *, const char *, const char *, int, int, int *, int) | ) | [static] |
| static char* find_a_file PARAMS | ( | (struct path_prefix *, const char *, int, int) | ) | [static] |
| static void putenv_from_prefixes PARAMS | ( | (struct path_prefix *, const char *) | ) | [static] |
| static char* build_search_list PARAMS | ( | (struct path_prefix *, const char *, int) | ) | [static] |
| static struct compiler* lookup_compiler PARAMS | ( | (const char *, size_t, const char *) | ) | [static, read] |
| static void set_spec PARAMS | ( | (const char *, const char *) | ) | [static] |
| static void read_specs PARAMS | ( | (const char *, int) | ) | [static] |
| static char* load_specs PARAMS | ( | (const char *) | ) | [static] |
Definition at line 635 of file mips-tfile.c.
| static void store_arg PARAMS | ( | (const char *, int, int) | ) | [static] |
Definition at line 77 of file cplus-dem.c.
| static void process_command | ( | int | argc, | |
| const char *const * | argv | |||
| ) | [static] |
Definition at line 3010 of file gcc.c.
References _, A, add_prefix(), alloca, and, B, C, c, codes, collect_obstack, concat(), concat_length(), DIR_SEPARATOR, errno, execvp(), exit(), fatal(), Foundation, fputs(), free(), GET_ENVIRONMENT, have_c, have_o, help(), i, Inc, init_spec(), is, IS_DIR_SEPARATOR, lang_specific_driver(), len, LIBRARY_PATH_ENV, make_relative_prefix(), missing(), n, spec_list::name, spec_list::next, NO, not, NULL, o, obstack_finish, obstack_grow, opt, or, p, PATH_SEPARATOR, pipe(), PREFIX_PRIORITY_LAST, print, printf(), progname, spec_list::ptr_spec, putenv, q, S, s, save, set_std_prefix(), sl, source, specified, strcat(), strcmp(), strcpy, strlen(), strncmp(), strncpy(), target, time, translate_options(), version_string, warning, x, xmemdup(), xstrdup(), and xstrerror().
Referenced by main().
| static void putenv_from_prefixes | ( | struct path_prefix * | paths, | |
| const char * | env_var | |||
| ) | [static] |
Definition at line 2271 of file gcc.c.
References build_search_list(), and putenv.
Referenced by main().
| static void read_specs | ( | char * | filename, | |
| int | main_p | |||
| ) | const [static] |
Definition at line 1840 of file gcc.c.
References spec_list::alloc_p, FALSE, fatal(), find_a_file(), free(), in, ISALPHA, ISSPACE, load_specs(), memset, spec_list::name, spec_list::name_len, spec_list::next, notice(), out, p, p1, p2, p3, PTR, spec_list::ptr_spec, R_OK, save_string(), set_spec(), skip_whitespace(), sl, compiler::spec, strcmp(), strncmp(), compiler::suffix, and xrealloc().
Referenced by include_spec_function(), main(), and read_specs().
| void record_temp_file | ( | char * | filename, | |
| int | always_delete, | |||
| int | fail_delete | |||
| ) | const |
Definition at line 2112 of file gcc.c.
References temp_file::name, temp_file::next, strcmp(), xmalloc(), and xstrdup().
Referenced by do_spec_1(), lang_specific_driver(), and store_arg().
| static void set_spec | ( | char * | name, | |
| const char * | spec | |||
| ) | const [static] |
Definition at line 1633 of file gcc.c.
References spec_list::alloc_p, ARRAY_SIZE, concat(), free(), i, ISSPACE, spec_list::name, spec_list::name_len, next, spec_list::next, notice(), NULL, PTR, spec_list::ptr, spec_list::ptr_spec, sl, strcmp(), strlen(), xmalloc(), and xstrdup().
Referenced by main(), and read_specs().
| static void store_arg | ( | char * | arg, | |
| int | delete_always, | |||
| int | delete_failure | |||
| ) | const [static] |
Definition at line 1754 of file gcc.c.
References record_temp_file(), and xrealloc().
Referenced by do_spec_1(), and do_spec_2().
| static void translate_options | ( | int * | argcp, | |
| const char *const ** | argvp | |||
| ) | [static] |
Definition at line 1028 of file gcc.c.
References option_map::arg_info, ARRAY_SIZE, c, concat(), option_map::equivalent, error(), i, NULL, p, replacements, sp, spaces(), strchr, strcmp(), strlen(), strncmp(), SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG, xmalloc(), xrealloc(), and xstrdup().
Referenced by process_command().
int added_libraries [static] |
struct temp_file* always_delete_queue [static] |
int argbuf_index [static] |
int argbuf_length [static] |
const char* asm_options [static] |
char** assembler_options [static] |
const char* cc1_options [static] |
Initial value:
"%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\ %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*}\ -auxbase%{c|S:%{o*:-strip %*}%{!o*: %b}}%{!c:%{!S: %b}}\ %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi}\ %{v:-version} %{pg:-p} %{p} %{f*} %{undef}\ %{Qn:-fno-ident} %{--help:--help}\ %{--target-help:--target-help}\ %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ %{fsyntax-only:-o %j} %{-param*}"
struct obstack collect_obstack [static] |
Definition at line 262 of file gcc.c.
Referenced by build_search_list(), main(), process_command(), and set_collect_gcc_options().
const char* compiler_version [static] |
const char* cpp_debug_options = "%{d*}" [static] |
const char* cpp_options [static] |
const char* cpp_unique_options [static] |
Initial value:
"%{C:%{!E:%eGNU C does not support -C without using -E}}\ %{CC:%{!E:%eGNU C does not support -CC without using -E}}\ %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I\ %{MD:-MD %{!o:%b.d}%{o*:%.d%*}}\ %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}}\ %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*}\ %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}}\ %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\ %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\ %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i\ %{E|M|MM:%W{o*}}"
const char* cross_compile = "0" [static] |
struct compiler default_compilers[] [static] |
const char dir_separator_str[] = { DIR_SEPARATOR, 0 } [static] |
Definition at line 124 of file gcc.c.
Referenced by add_standard_paths(), find_a_file(), for_each_path(), is_directory(), main(), and process_command().
const char* const driver_self_specs[] = { DRIVER_SELF_SPECS } [static] |
int error_count = 0 [static] |
Definition at line 247 of file gcc.c.
Referenced by _VBOUNDS_ERROR(), Check_Exprs(), Check_Trip_Counts(), Check_Vertices_Traverse(), cl(), compute_predicate_codes(), main(), merge_accept_insn(), process_command(), PAR_STAT::Sanity_Check(), PAR_STAT::Sanity_Check_Node(), synthesize_method(), undefined_symbol(), validate_pattern(), WFE_Expand_Top_Level_Decl(), and WGEN_Expand_Top_Level_Decl().
struct path_prefix exec_prefixes = { 0, 0, "exec" } [static] |
int execution_count [static] |
struct temp_file* failure_delete_queue [static] |
const char* gcc_exec_prefix [static] |
int greatest_status = 1 [static] |
struct path_prefix include_prefixes = { 0, 0, "include" } [static] |
const char* invoke_as [static] |
| int is_cpp_driver |
const char* just_machine_suffix = 0 [static] |
char** linker_options [static] |
const char* machine_suffix = 0 [static] |
const char* md_exec_prefix = MD_EXEC_PREFIX [static] |
const char* md_startfile_prefix = MD_STARTFILE_PREFIX [static] |
const char* md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1 [static] |
const char* multilib_defaults [static] |
const char* const multilib_defaults_raw[] = MULTILIB_DEFAULTS [static] |
const char* multilib_dir [static] |
const char* multilib_exclusions [static] |
const char* multilib_matches [static] |
struct obstack multilib_obstack [static] |
const char* multilib_os_dir [static] |
const char* multilib_select [static] |
int n_assembler_options [static] |
int n_compilers [static] |
const int n_default_compilers = ARRAY_SIZE (default_compilers) - 1 [static] |
| int n_infiles |
Definition at line 2817 of file gcc.c.
Referenced by lang_specific_driver(), and lang_specific_pre_link().
int n_linker_options [static] |
int n_preprocessor_options [static] |
int n_switches [static] |
struct option_map option_map[] [static] |
int pass_exit_codes [static] |
char** preprocessor_options [static] |
const char* print_file_name = NULL [static] |
int print_help_list [static] |
int print_multi_directory [static] |
int print_multi_lib [static] |
int print_multi_os_directory [static] |
const char* print_prog_name = NULL [static] |
int print_search_dirs [static] |
int processing_spec_function [static] |
const char* programname [static] |
int report_times [static] |
int save_temps_flag [static] |
int signal_count [static] |
const char* spec_machine = DEFAULT_TARGET_MACHINE [static] |
const char* const spec_version = DEFAULT_TARGET_VERSION [static] |
Definition at line 1442 of file gcc.c.
Referenced by c_parser_declaration_or_fndef(), c_parser_parameter_declaration(), c_parser_struct_declaration(), c_parser_type_name(), ffeintrin_fulfill_generic(), ffeintrin_is_intrinsic(), grokparms(), groktypename(), regenerate_decl_from_template(), shadow_tag_warned(), split_specs_attrs(), strip_attrs(), tsubst(), and tsubst_exception_specification().
const char* const standard_bindir_prefix = STANDARD_BINDIR_PREFIX [static] |
const char* const standard_exec_prefix = STANDARD_EXEC_PREFIX [static] |
const char* const standard_exec_prefix_1 = "/usr/lib/gcc/" [static] |
const char* const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX [static] |
const char* const standard_startfile_prefix_1 = "/lib/" [static] |
const char* const standard_startfile_prefix_2 = "/usr/lib/" [static] |
struct path_prefix startfile_prefixes = { 0, 0, "startfile" } [static] |
struct spec_function static_spec_functions[] [static] |
Initial value:
{
{ "if-exists", if_exists_spec_function },
{ "if-exists-else", if_exists_else_spec_function },
{ 0, 0 }
}
struct spec_list static_specs[] [static] |
int target_help_flag [static] |
const char* temp_filename [static] |
int temp_filename_length [static] |
struct temp_name * temp_names [static] |
Referenced by do_spec_1().
const char* const tooldir_base_prefix = TOOLDIR_BASE_PREFIX [static] |
const char* tooldir_prefix [static] |
struct user_specs* user_specs_head [static] |
struct user_specs * user_specs_tail [static] |
int verbose_flag [static] |
int verbose_only_flag [static] |
int* warn_std_ptr = 0 [static] |
1.5.6