diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-10-11 18:09:59 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-10-11 18:09:59 +0000 |
commit | b90c93381261e3c7fff0bf25fad4c22407ab9b73 (patch) | |
tree | 9ea0969a69bf3e506dfd77d4a35fb7ef8c761a34 /gcc/config/vms | |
parent | 42851ff81dbe1ccaa16dbcc070513c181ff61eb7 (diff) | |
download | gcc-b90c93381261e3c7fff0bf25fad4c22407ab9b73.zip gcc-b90c93381261e3c7fff0bf25fad4c22407ab9b73.tar.gz gcc-b90c93381261e3c7fff0bf25fad4c22407ab9b73.tar.bz2 |
[PATCH] Include path enumeration
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00693.html
gcc/
* incpath.h (enum incpath_kind): Name enum, prefix values.
(add_path, add_cpp_dir_path, get_added_cpp_dirs): Use incpath_kind.
* incpath.c (heads, tails): Use INC_MAX.
(add_env_var_paths, add_standard_paths): Use incpath_kind.
(merge_include_chains, split_quote_chain,
register_include_chains): Update incpath_kind names.
(add_cpp_dir_path, add_path, get_added_cpp_dirs): Use incpath_kind.
* config/darwin-c.c (add_system_framework_path): Update incpath_kind
names.
(add_framework_path, darwin_register_objc_includes): Likewise.
* config/vms/vms-c.c (vms_c_register_includes): Likewise.
gcc/c-family/
* c-opts.c (add_prefixed_path): Change chain to incpath_kind.
(c_common_handle_option): Update incpath_kind names.
gcc/fortran/
* cpp.c (gfc_cpp_add_include_path): Update incpath_e names.
(gfc_cpp_add_include_path_after): Likewise.
From-SVN: r253654
Diffstat (limited to 'gcc/config/vms')
-rw-r--r-- | gcc/config/vms/vms-c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/vms/vms-c.c b/gcc/config/vms/vms-c.c index c666ad1..278c8e2 100644 --- a/gcc/config/vms/vms-c.c +++ b/gcc/config/vms/vms-c.c @@ -418,7 +418,7 @@ vms_c_register_includes (const char *sysroot, if (!stdinc) return; - for (dir = get_added_cpp_dirs (SYSTEM); dir != NULL; dir = dir->next) + for (dir = get_added_cpp_dirs (INC_SYSTEM); dir != NULL; dir = dir->next) { const char * const *lib; for (lib = vms_std_modules; *lib != NULL; lib++) @@ -441,7 +441,7 @@ vms_c_register_includes (const char *sysroot, p->sysp = 1; p->construct = vms_construct_include_filename; p->user_supplied_p = 0; - add_cpp_dir_path (p, SYSTEM); + add_cpp_dir_path (p, INC_SYSTEM); } else free (path); |