aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index d83045b..d1cb317 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -1416,7 +1416,7 @@ 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 && errorcount == 0)
+ if (cpp_opts->deps.style != DEPS_NONE && !seen_error ())
{
/* If -M or -MM was seen without -MF, default output to the
output stream. */