summaryrefslogtreecommitdiff
path: root/gcc/cppdefault.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2007-03-12 15:59:06 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2007-03-12 15:59:06 +0000
commit6d4817e3740f021599e620067452c223f7b3b397 (patch)
treeb1c057375072b5526bd29466adc19cb4108c1305 /gcc/cppdefault.h
parent91b0b94a042721a2a8dff04f0a177a37c4f08cad (diff)
cppdefault.c (cpp_EXEC_PREFIX): New variable.
* cppdefault.c (cpp_EXEC_PREFIX): New variable. * cppdefault.h (cpp_PREFIX): Document. (cpp_PREFIX_len): Likewise. (cpp_EXEC_PREFIX): New variable. * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX. * c-incpath.c (add_standard_paths): Correct logic for relocating paths within prefix. From-SVN: r122843
Diffstat (limited to 'gcc/cppdefault.h')
-rw-r--r--gcc/cppdefault.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cppdefault.h b/gcc/cppdefault.h
index 2da6d05f564..398cc857424 100644
--- a/gcc/cppdefault.h
+++ b/gcc/cppdefault.h
@@ -52,8 +52,16 @@ extern const struct default_include cpp_include_defaults[];
extern const char cpp_GCC_INCLUDE_DIR[];
extern const size_t cpp_GCC_INCLUDE_DIR_len;
+/* The configure-time prefix, i.e., the value supplied as the argument
+ to --prefix=. */
extern const char cpp_PREFIX[];
+/* The length of the configure-time prefix. */
extern const size_t cpp_PREFIX_len;
+/* The configure-time execution prefix. This is typically the lib/gcc
+ subdirectory of cpp_PREFIX. */
+extern const char cpp_EXEC_PREFIX[];
+/* The run-time execution prefix. This is typically the lib/gcc
+ subdirectory of the actual installation. */
extern const char *gcc_exec_prefix;
/* Return true if the toolchain is relocated. */