cppfiles.c (stack_include_file): Correct test of whether a dependency should be output.
authorNeil Booth <neil@daikokuya.co.uk>
Mon, 22 Jul 2002 20:08:29 +0000 (20:08 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 22 Jul 2002 20:08:29 +0000 (20:08 +0000)
* cppfiles.c (stack_include_file): Correct test of whether
a dependency should be output.

From-SVN: r55657

gcc/ChangeLog
gcc/cppfiles.c

index 16453e5..3e16c79 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
+
+       * cppfiles.c (stack_include_file): Correct test of whether
+       a dependency should be output.
+
 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
 
        * collect2.c (is_ctor_dtor): Add other possible JOINER values.
index 85c9b6e..903e02d 100644 (file)
@@ -319,7 +319,7 @@ stack_include_file (pfile, inc)
              (inc->foundhere ? inc->foundhere->sysp : 0));
 
   /* For -M, add the file to the dependencies on its first inclusion.  */
-  if (CPP_OPTION (pfile, print_deps) > sysp && !inc->include_count)
+  if (CPP_OPTION (pfile, print_deps) > !!sysp && !inc->include_count)
     deps_add_dep (pfile->deps, inc->name);
 
   /* Not in cache?  */