]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: -M and modules again
authorJason Merrill <jason@redhat.com>
Sat, 16 Nov 2024 20:25:04 +0000 (15:25 -0500)
committerJason Merrill <jason@redhat.com>
Sun, 17 Nov 2024 15:23:21 +0000 (16:23 +0100)
commit3e89a4d5138e585713604135d4c2601244055e82
tree7d218fae45df69ef3ca018f8d553e7315c6d6428
parentdbfbd3aa2c1fb6293defcb1ad16099bb8aa4a0cb
c++: -M and modules again

While experimenting with testing module std I noticed that gcc -M broke on
it; it seems I need to set directives_only even sooner than I did in
r15-4219.

gcc/c-family/ChangeLog:

* c-ppoutput.cc (preprocess_file): Don't set directives_only here.

gcc/cp/ChangeLog:

* module.cc (module_preprocess_options): Set directives_only here.
gcc/c-family/c-ppoutput.cc
gcc/cp/module.cc