#include "config.h"#include "system.h"#include "coretypes.h"#include "machmode.h"#include "target.h"#include "tm.h"#include "cpplib.h"#include "prefix.h"#include "intl.h"#include "c-incpath.h"#include "cppdefault.h"

Go to the source code of this file.
Defines | |
| #define | INO_T_EQ(A, B) ((A) == (B)) |
| #define | INO_T_COPY(DEST, SRC) (DEST) = (SRC) |
| #define | TARGET_EXTRA_INCLUDES hook_void_charptr_charptr_int |
| #define | TARGET_EXTRA_PRE_INCLUDES hook_void_charptr_charptr_int |
Enumerations | |
| enum | { REASON_QUIET = 0, REASON_NOENT, REASON_DUP, REASON_DUP_SYS } |
Functions/Subroutines | |
| static void | add_env_var_paths (const char *, int) |
| static void | add_standard_paths (const char *, const char *, int) |
| static void | free_path (struct cpp_dir *, int) |
| static void | merge_include_chains (cpp_reader *, int) |
| static struct cpp_dir * | remove_duplicates (cpp_reader *, struct cpp_dir *, struct cpp_dir *, struct cpp_dir *, int) |
| void | split_quote_chain (void) |
| void | add_cpp_dir_path (cpp_dir *p, int chain) |
| void | add_path (char *path, int chain, int cxx_aware, bool user_supplied_p) |
| void | register_include_chains (cpp_reader *pfile, const char *sysroot, const char *iprefix, int stdinc, int cxx_stdinc, int verbose) |
| static void | hook_void_charptr_charptr_int (const char *sysroot ATTRIBUTE_UNUSED, const char *iprefix ATTRIBUTE_UNUSED, int stdinc ATTRIBUTE_UNUSED) |
Variables | |
| static struct cpp_dir * | heads [4] |
| static struct cpp_dir * | tails [4] |
| static bool | quote_ignores_source_dir |
| struct target_c_incpath_s | target_c_incpath = { TARGET_EXTRA_PRE_INCLUDES, TARGET_EXTRA_INCLUDES } |
| #define INO_T_COPY | ( | DEST, | |||
| SRC | ) | (DEST) = (SRC) |
Definition at line 45 of file c-incpath.c.
| #define TARGET_EXTRA_INCLUDES hook_void_charptr_charptr_int |
Definition at line 401 of file c-incpath.c.
| #define TARGET_EXTRA_PRE_INCLUDES hook_void_charptr_charptr_int |
Definition at line 404 of file c-incpath.c.
| anonymous enum |
Definition at line 60 of file c-incpath.c.
Definition at line 317 of file c-incpath.c.
Referenced by add_framework_path(), add_path(), and add_system_framework_path().
| static void add_env_var_paths | ( | const char * | env_var, | |
| int | chain | |||
| ) | [static] |
Definition at line 93 of file c-incpath.c.
References add_path(), GET_ENVIRONMENT, memcpy, p, path, PATH_SEPARATOR, q, SYSTEM, xmalloc(), and xstrdup().
Referenced by register_include_chains().
Definition at line 329 of file c-incpath.c.
| static void add_standard_paths | ( | const char * | sysroot, | |
| const char * | iprefix, | |||
| int | cxx_stdinc | |||
| ) | [static] |
Definition at line 123 of file c-incpath.c.
References add_path(), default_include::add_sysroot, default_include::component, concat(), default_include::cplusplus, cpp_GCC_INCLUDE_DIR, cpp_GCC_INCLUDE_DIR_len, cpp_include_defaults, default_include::cxx_aware, default_include::fname, len, NULL, p, str, strncmp(), SYSTEM, and update_path().
Referenced by register_include_chains().
Definition at line 64 of file c-incpath.c.
References _, fprintf(), free(), cpp_dir::name, REASON_DUP, REASON_DUP_SYS, REASON_NOENT, and REASON_QUIET.
Referenced by remove_duplicates().
| static void hook_void_charptr_charptr_int | ( | const char *sysroot | ATTRIBUTE_UNUSED, | |
| const char *iprefix | ATTRIBUTE_UNUSED, | |||
| int stdinc | ATTRIBUTE_UNUSED | |||
| ) | [static] |
Definition at line 393 of file c-incpath.c.
| static void merge_include_chains | ( | cpp_reader * | pfile, | |
| int | verbose | |||
| ) | [static] |
Definition at line 261 of file c-incpath.c.
References _, AFTER, BRACKET, fprintf(), cpp_dir::name, cpp_dir::next, p, QUOTE, remove_duplicates(), and SYSTEM.
Referenced by register_include_chains().
| void register_include_chains | ( | cpp_reader * | pfile, | |
| const char * | sysroot, | |||
| const char * | iprefix, | |||
| int | stdinc, | |||
| int | cxx_stdinc, | |||
| int | verbose | |||
| ) |
Definition at line 359 of file c-incpath.c.
References add_env_var_paths(), add_standard_paths(), BRACKET, cpp_options::cplusplus, cpp_get_options(), cpp_opts, cpp_set_include_chains(), target_c_incpath_s::extra_includes, target_c_incpath_s::extra_pre_includes, idx, merge_include_chains(), cpp_options::objc, QUOTE, quote_ignores_source_dir, SYSTEM, and target_c_incpath.
Referenced by c_common_post_options(), and read_scan_file().
| static struct cpp_dir * remove_duplicates | ( | cpp_reader * | pfile, | |
| struct cpp_dir * | head, | |||
| struct cpp_dir * | system, | |||
| struct cpp_dir * | join, | |||
| int | verbose | |||
| ) | [static, read] |
Definition at line 176 of file c-incpath.c.
References cpp_dir::construct, CPP_DL_ERROR, CPP_DL_WARNING, cpp_errno(), cpp_error_with_line(), cpp_get_options(), cur, cpp_dir::dev, ENOENT, errno, free_path(), cpp_dir::ino, INO_T_COPY, INO_T_EQ, cpp_dir::name, cpp_dir::next, NULL, REASON_DUP, REASON_DUP_SYS, REASON_NOENT, REASON_QUIET, S_ISDIR, stat::st_dev, stat::st_ino, stat::st_mode, tmp, cpp_dir::user_supplied_p, and cpp_options::warn_missing_include_dirs.
Referenced by merge_include_chains().
Definition at line 57 of file c-incpath.c.
Referenced by GTY(), note_prediction_to_br_prob(), and tree_bb_level_predictions().
bool quote_ignores_source_dir [static] |
Definition at line 59 of file c-incpath.c.
Referenced by register_include_chains(), and split_quote_chain().
Definition at line 58 of file c-incpath.c.
| struct target_c_incpath_s target_c_incpath = { TARGET_EXTRA_PRE_INCLUDES, TARGET_EXTRA_INCLUDES } |
1.5.6