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: cppfiles.c follow-up


Neil Booth wrote:-

> > This patch is mostly comment fixes.  If I can't bootstrap in the next
> > hour or so, I'll apply it as obvious.
> 
> Reason being, I'm away for 4 days and I don't want to leave Java broken.

I've bottled.  I'm applying this now as obvious; I can't bootstrap but
have checked that libcpp.a builds.

Neil.

	* cppfiles.c (stack_file, open_file_failed): Use path for deps.

Index: cppfiles.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cppfiles.c,v
retrieving revision 1.179
diff -u -p -r1.179 cppfiles.c
--- cppfiles.c	30 Jul 2003 06:43:33 -0000	1.179
+++ cppfiles.c	30 Jul 2003 22:28:44 -0000
@@ -537,7 +537,7 @@ stack_file (cpp_reader *pfile, _cpp_file
   if (CPP_OPTION (pfile, deps.style) > !!sysp && !file->stack_count)
     {
       if (!file->main_file || !CPP_OPTION (pfile, deps.ignore_main_file))
-	deps_add_dep (pfile->deps, file->name);
+	deps_add_dep (pfile->deps, file->path);
     }
 
   if (!read_file (pfile, file))
@@ -731,7 +731,7 @@ open_file_failed (cpp_reader *pfile, _cp
 
   errno = file->err_no;
   if (print_dep && CPP_OPTION (pfile, deps.missing_files) && errno == ENOENT)
-    deps_add_dep (pfile->deps, file->name);
+    deps_add_dep (pfile->deps, file->path);
   else
     {
       /* If we are outputting dependencies but not for this file then


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