diff options
author | gingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-15 10:25:36 +0000 |
---|---|---|
committer | gingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-15 10:25:36 +0000 |
commit | 8c8b54b81bdc5000d9ae40cdf2d67cd2ab91f664 (patch) | |
tree | 3f2f27c410346ffc56226b6b4ab99b55b2da6904 /gcc/incpath.c | |
parent | a634a51ae15ffa06e4847f365b5be5cd05add797 (diff) | |
download | gcc-8c8b54b81bdc5000d9ae40cdf2d67cd2ab91f664.tar.gz |
2011-11-15 Tristan Gingold <gingold@adacore.com>
* incpath.c (get_added_cpp_dirs): New function.
* incpath.h (get_added_cpp_dirs): Declare.
* config/vms/vms-c.c (vms_c_register_includes): New function.
(vms_std_modules): New variable.
* config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
(vms_c_register_includes): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181380 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/incpath.c')
-rw-r--r-- | gcc/incpath.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/incpath.c b/gcc/incpath.c index 07a765f3fc0..6b683a053dc 100644 --- a/gcc/incpath.c +++ b/gcc/incpath.c @@ -460,6 +460,15 @@ register_include_chains (cpp_reader *pfile, const char *sysroot, cpp_set_include_chains (pfile, heads[QUOTE], heads[BRACKET], quote_ignores_source_dir); } + +/* Return the current chain of cpp dirs. */ + +struct cpp_dir * +get_added_cpp_dirs (int chain) +{ + return heads[chain]; +} + #if !(defined TARGET_EXTRA_INCLUDES) || !(defined TARGET_EXTRA_PRE_INCLUDES) static void hook_void_charptr_charptr_int (const char *sysroot ATTRIBUTE_UNUSED, const char *iprefix ATTRIBUTE_UNUSED, |