]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/incpath.c
cppdefault.c: Define cpp_PREFIX, cpp_PREFIX_len, and gcc_exec_prefix.
authorCarlos O'Donell <carlos@codesourcery.com>
Mon, 20 Nov 2006 17:15:27 +0000 (17:15 +0000)
committerCarlos O'Donell <carlos@gcc.gnu.org>
Mon, 20 Nov 2006 17:15:27 +0000 (17:15 +0000)
commit76642aabbd91c89cfae1c3ba2fa61785b6fbabd6
tree97ba2bb27388441e1c8a03a879e691c010485917
parent9d691ba7501c741571edc1618c434316b1eb0170
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
gcc/ChangeLog
gcc/Makefile.in
gcc/c-incpath.c
gcc/cppdefault.c
gcc/cppdefault.h