This is the mail archive of the gcc-cvs@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]

r169527 - in /branches/google/integration/gcc: ...


Author: dnovillo
Date: Wed Feb  2 14:46:22 2011
New Revision: 169527

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169527
Log:
	* c-family/c-opts.c (c_common_finish): Emit deps even if
	the file has syntax errors.

diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c
index befd644..e116921 100644
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -1093,7 +1093,11 @@ c_common_finish (void)
   FILE *deps_stream = NULL;

   /* Don't write the deps file if there are errors.  */
-  if (cpp_opts->deps.style != DEPS_NONE && !seen_error ())
+  /* FIXME.  We are emitting the deps file even if there were errors.
+     This is a temporary workaround to avoid confusing Google's build
+     system.  It assumes that deps files are always emitted even
+     in the presence of errors.  */
+  if (cpp_opts->deps.style != DEPS_NONE /*&& !seen_error ()*/)
     {
       /* If -M or -MM was seen without -MF, default output to the
 	 output stream.  */

Modified:
    branches/google/integration/gcc/ChangeLog.google
    branches/google/integration/gcc/c-family/c-opts.c


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