preprocessor: Update mkdeps for modules

Nathan Sidwell nathan@acm.org
Wed Nov 18 14:46:57 GMT 2020


This is	slightly different to the original patch I posted.  This adds
separate module target and dependency functions (rather than a single
bi-modal function).

         libcpp/
         * include/cpplib.h (struct cpp_options): Add modules to
         dep-options.
         * include/mkdeps.h (deps_add_module_target): Declare.
         (deps_add_module_dep): Declare.
         * mkdes.c (class mkdeps): Add modules, module_name, cmi_name,
         is_header_unit fields.  Adjust cdtors.
         (deps_add_module_target, deps_add_module_dep): New.
         (make_write): Write module dependencies, if enabled.

pushing to trunk

-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 08a-cpp-mkdeps.diff
Type: text/x-patch
Size: 5055 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201118/20f2322c/attachment.bin>


More information about the Gcc-patches mailing list