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 issue with dependency generation on win32


On Fri, May 04, 2007 at 01:14:08PM -0700, Brian Dessent wrote:
> Nathan Froyd wrote:
> 
> >         * c-incpath.c (add_path): Move path canonicalization to...
> >         (remove_duplicates): ...here.  Use lrealpath() to perform the
> >         canonicalization and strip trailing slashes so stat() doesn't
> >         fail.
> 
> It looks like this may also fix PR22133 (which has been sitting around
> waiting to be fixed for almost two years!)

Hmmm, I didn't know about that PR!

>From the SourceForge page referenced in the PR, it sounds like the issue
is fixed with the attached patch, which is shorter and cleaner.  Testing
locally on a W2K3 box indicates that the patch works with the dependency
generation problem I showed earlier (and it also works with cases such
as '-Iinclude\\', which my patch did not).

On the same page, Danny invited somebody to submit it to gcc-patches,
since he does not have an XP/W2K box to test against.  Since I do have
one here, I'm submitting the patch on his behalf.  (Consider the
previous patch withdrawn, please.)  OK to commit if testing completes
with no regressions?

-Nathan

2007-05-04  Danny Smith  <dannysmith@users.sourceforge.net>
	    Nathan Froyd  <froydnj@codesourcery.com>

	PR/22133
	* c-incpath.c (add_path): Strip trailing path separators.

Attachment: slashes.patch
Description: Text document


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