From 76642aabbd91c89cfae1c3ba2fa61785b6fbabd6 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Mon, 20 Nov 2006 17:15:27 +0000 Subject: cppdefault.c: Define cpp_PREFIX, cpp_PREFIX_len, and gcc_exec_prefix. gcc/ 2006-11-20 Carlos O'Donell Mark Mitchell * 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 From-SVN: r119017 --- gcc/cppdefault.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/cppdefault.h') 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 */ -- cgit v1.1