aboutsummaryrefslogtreecommitdiff
path: root/gcc/incpath.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-11-15 10:25:36 +0000
committerTristan Gingold <gingold@gcc.gnu.org>2011-11-15 10:25:36 +0000
commit0ea069123cedf42fe171371a809b8d33adf411b9 (patch)
tree3f2f27c410346ffc56226b6b4ab99b55b2da6904 /gcc/incpath.c
parente50e723eec48cdf285b27e51fead37b385d5f891 (diff)
downloadgcc-0ea069123cedf42fe171371a809b8d33adf411b9.zip
gcc-0ea069123cedf42fe171371a809b8d33adf411b9.tar.gz
gcc-0ea069123cedf42fe171371a809b8d33adf411b9.tar.bz2
incpath.c (get_added_cpp_dirs): New function.
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. From-SVN: r181380
Diffstat (limited to 'gcc/incpath.c')
-rw-r--r--gcc/incpath.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/incpath.c b/gcc/incpath.c
index 07a765f..6b683a0 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,