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] Fix PR/41943 include search path composition is bogus for *-*-mingw32 targets


On Sun, 6 Dec 2009, Kai Tietz wrote:

> Well, it happens even to linux (see Pinskia's comment), but it is

I don't see it happening there.  You need to give more evidence.

> pretty unlikely that somebody uses --prefix and --with-sysroot
> together. And I agree that such a path (which is generated

No, it's routine.  --prefix is a prefix on the host.  --with-sysroot is a 
host path.  The paths within the sysroot are target paths, as if from a 
native toolchain on the target, and should be unaffected by --prefix.

Why is the code you are changing even relevant for include paths?  
Sysroots are added to include paths in incpath.c, based on a table in 
cppdefault.c that says which paths are sysrooted and which are not.  So 
STANDARD_INCLUDE_DIR (/usr/include) is sysrooted but PREFIX_INCLUDE_DIR 
($prefix/include) is not (and is not even defined in the sysroot case), 
for example.

-- 
Joseph S. Myers
joseph@codesourcery.com


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