This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Write dependency information (-M*) even if there are errors
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Boris Kolpackov <boris at codesynthesis dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 7 Aug 2017 06:12:41 -0500
- Subject: Re: [PATCH] Write dependency information (-M*) even if there are errors
- Authentication-results: sourceware.org; auth=none
- References: <firstname.lastname@example.org>
Patches should go to gcc-patches.
Just a trivial remark:
> --- gcc/c-family/c-opts.c (revision 250514)
> +++ gcc/c-family/c-opts.c (working copy)
> @@ -1152,8 +1152,11 @@
> FILE *deps_stream = NULL;
> - /* Don't write the deps file if there are errors. */
> - if (cpp_opts->deps.style != DEPS_NONE && !seen_error ())
> + /* Note that we write the dependencies even if there are errors. This is
> + useful for handling outdated generated headers that now trigger errors
> + (for example, with #error) that would be resolved by re-generating
> + them. In a sense this complements -MG. */
Two spaces after a full stop (all three times).