gcc/libcpp
Nathan Sidwell 918e8b10a7 libcpp: dependency emission tidying
This patch cleans up the interface to the dependency generation a
little.  We now only check the option in one place, and the
cpp_get_deps function returns nullptr if there are no dependencies.  I
also reworded the -MT and -MQ help text to be make agnostic -- as
there are ideas about emitting, say, JSON.

	libcpp/
	* include/mkdeps.h: Include cpplib.h
	(deps_write): Adjust first parm type.
	* mkdeps.c: Include internal.h
	(make_write): Adjust first parm type.  Check phony option
	directly.
	(deps_write): Adjust first parm type.
	* init.c (cpp_read_main_file): Use get_deps.
	* directives.c (cpp_get_deps): Check option before initializing.
	gcc/c-family/
	* c.opt (MQ,MT): Reword description to be make-agnostic.
	gcc/fortran/
	* cpp.c (gfc_cpp_add_dep): Only add dependency if we're recording
	them.
	(gfc_cpp_init): Likewise for target.
2020-11-03 05:16:19 -08:00
..
include libcpp: dependency emission tidying 2020-11-03 05:16:19 -08:00
po Daily bump. 2020-07-21 00:16:28 +00:00
aclocal.m4 libcpp: Enable Intel CET on Intel CET enabled host for jit 2020-05-12 09:17:45 -07:00
ChangeLog Daily bump. 2020-11-02 20:53:00 +00:00
ChangeLog.jit
charset.c diagnostics: Support conversion of tabs to spaces [PR49973] [PR86904] 2020-07-14 12:05:56 -04:00
config.in
configure Require CET support only for the final GCC build 2020-07-30 05:36:24 -07:00
configure.ac libcpp, libdecnumber: configure and substitute AR 2020-05-23 21:59:02 +00:00
directives.c libcpp: dependency emission tidying 2020-11-03 05:16:19 -08:00
errors.c Update copyright years. 2020-01-01 12:51:42 +01:00
expr.c cpplib: Macro use location and comparison 2020-11-02 08:56:38 -08:00
files.c libcpp: Directly peek for initial line marker 2020-10-08 12:16:21 -07:00
generated_cpp_wcwidth.h Byte vs column awareness for diagnostic-show-locus.c (PR 49973) 2019-12-09 20:03:47 +00:00
identifiers.c [PR 80005] Fix __has_include 2020-01-20 05:39:59 -08:00
init.c libcpp: dependency emission tidying 2020-11-03 05:16:19 -08:00
internal.h cpplib: Macro use location and comparison 2020-11-02 08:56:38 -08:00
lex.c preprocessor: Further fix for EOF in macro args [PR97471] 2020-10-20 08:01:34 -07:00
line-map.c c-family: Macro support in -Wmisleading-indentation [PR80076] 2020-09-17 14:27:22 -04:00
location-example.txt
macro.c cpplib: Macro use location and comparison 2020-11-02 08:56:38 -08:00
Makefile.in libcpp, libdecnumber: configure and substitute AR 2020-05-23 21:59:02 +00:00
makeucnid.c Update copyright years. 2020-01-01 12:51:42 +01:00
mkdeps.c libcpp: dependency emission tidying 2020-11-03 05:16:19 -08:00
pch.c preprocessor: Make __has_include a builtin macro [PR93452] 2020-01-28 08:02:17 -08:00
symtab.c Update copyright years. 2020-01-01 12:51:42 +01:00
system.h preprocessor: Random cleanups 2020-05-19 13:23:47 -07:00
traditional.c preprocessor: Teach traditional about has_include [PR95889] 2020-07-29 07:47:21 -07:00
ucnid.h Update copyright years. 2020-01-01 12:51:42 +01:00
ucnid.tab Update copyright years. 2020-01-01 12:51:42 +01:00