Whoops, that broke bootstrap. Pushing this fix.
libcpp/
* init.c (cpp_read_main_file): Use cpp_get_deps result.
--
Nathan Sidwell
diff --git c/libcpp/init.c w/libcpp/init.c
index 5b2607e3767..6c52f50de39 100644
--- c/libcpp/init.c
+++ w/libcpp/init.c
@@ -669,7 +669,7
Hi Nathan,
I now get:
../../repos/gcc/libcpp/init.c:670:15: error: unused variable ‘deps’
[-Werror=unused-variable]
670 | if (mkdeps *deps = cpp_get_deps (pfile))
| ^~~~
see last three lines of the quoted patch below.
Tobias
On 03.11.20 14:02, Nathan Sidwell wrote:
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, sa