]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: more modules and -M
authorJason Merrill <jason@redhat.com>
Wed, 9 Oct 2024 16:28:46 +0000 (12:28 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 9 Oct 2024 21:28:35 +0000 (17:28 -0400)
commitdcee0b6547211a428b75adb03a461285fed0f20d
treeaa1b1ce860c57bd1b52f0d4cfd2d70ec926b73ee
parentd264b75eb29cfc1916e3c1ccc7a3251a40458392
c++: more modules and -M

In r15-4119-gc877a27f04f648 I told preprocess_file to use the
directives-only scan with modules, but it seems that I also need to set the
cpp_option so that communication between _cpp_handle_directive and
scan_translation_unit_directives_only works properly in
c-c++-common/cpp/embed-6.c.

gcc/c-family/ChangeLog:

* c-ppoutput.cc (preprocess_file): Set directives_only flag.
gcc/c-family/c-ppoutput.cc