This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch:3.3 branch] Fix sysroot logic in cppinit.c


Danny Smith <danny_r_smith_2001@yahoo.co.nz> writes:

| Hi
| 
| This patch to gcc-3.3 branch:
| 
| 2003-11-06  H.J. Lu <hongjiu.lu@intel.com>
| 
| 	* cppinit.c (init_standard_includes): Updated.
| <...>
| which backported the sysroot functionality from 3.4 causes problems
| with relocatability of gcc toolset on mingw targets.
| 
| In cppinit.c (init_standard_includes), the conditional 
| 
|  	      if (p->add_sysroot && CPP_OPTION (pfile, sysroot))
|   		continue;
| 
| is always true, because CPP_OPTION (pfile, sysroot) expands to
| this default (in cppdefault.c)
| 
| const char *cpp_SYSROOT = "";
| 
| We need to check that *cpp_SYSROOT is not '\0'.
| 
| In 3.4 branch, the logic is slightly diferemt and  check for a NULL pointer
| is sufficient.
| 
| The following patch is agaainst gcc-3.3.3 release.

Did I say OK? If not, please apply.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]