aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppdefault.h
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@codesourcery.com>2006-11-20 17:15:27 +0000
committerCarlos O'Donell <carlos@gcc.gnu.org>2006-11-20 17:15:27 +0000
commit76642aabbd91c89cfae1c3ba2fa61785b6fbabd6 (patch)
tree97ba2bb27388441e1c8a03a879e691c010485917 /gcc/cppdefault.h
parent9d691ba7501c741571edc1618c434316b1eb0170 (diff)
downloadgcc-76642aabbd91c89cfae1c3ba2fa61785b6fbabd6.zip
gcc-76642aabbd91c89cfae1c3ba2fa61785b6fbabd6.tar.gz
gcc-76642aabbd91c89cfae1c3ba2fa61785b6fbabd6.tar.bz2
cppdefault.c: Define cpp_PREFIX, cpp_PREFIX_len, and gcc_exec_prefix.
gcc/ 2006-11-20 Carlos O'Donell <carlos@codesourcery.com> Mark Mitchell <mark@codesourcery.com> * cppdefault.c: Define cpp_PREFIX, cpp_PREFIX_len, and gcc_exec_prefix. (cpp_relocated): New function. * cppdefault.h: Declare cpp_PREFIX, cpp_PREFIX_len, gcc_exec_prefix and cpp_relocated. * Makefile.in (PREPROCESSOR_DEFINES): Add -DPREFIX option. * c-incpath.c (add_standard_paths): Call cpp_relocated. If relocated, replace configured prefix with gcc_exec_prefix. Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r119017
Diffstat (limited to 'gcc/cppdefault.h')
-rw-r--r--gcc/cppdefault.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cppdefault.h b/gcc/cppdefault.h
index a3a2416..2da6d05 100644
--- a/gcc/cppdefault.h
+++ b/gcc/cppdefault.h
@@ -52,4 +52,11 @@ extern const struct default_include cpp_include_defaults[];
extern const char cpp_GCC_INCLUDE_DIR[];
extern const size_t cpp_GCC_INCLUDE_DIR_len;
+extern const char cpp_PREFIX[];
+extern const size_t cpp_PREFIX_len;
+extern const char *gcc_exec_prefix;
+
+/* Return true if the toolchain is relocated. */
+bool cpp_relocated (void);
+
#endif /* ! GCC_CPPDEFAULT_H */