c++: Rename new -flang-note-module-read option [PR 99166]
authorNathan Sidwell <nathan@acm.org>
Thu, 25 Feb 2021 16:33:05 +0000 (08:33 -0800)
committerNathan Sidwell <nathan@acm.org>
Thu, 25 Feb 2021 16:58:26 +0000 (08:58 -0800)
commit9592deabf3c6b9e23aa7a5b84724672cb7c8d560
tree113d5d6764192a7d1aad3d3824a5afc99ad3b603
parent9f08c08531b61b68a41c9c5403ec0cc288ae3aba
c++: Rename new -flang-note-module-read option [PR 99166]

I realized that the just-added flang-note-module-read option should
also cover module writes, and was therefore misnamed.  This addresses
that, replacing it with a -flang-note-module-cmi pair of options.  As
this was such a recent addition, I didn't leave the old option
available.

PR c++/99166
gcc/c-family/
* c.opt (-flang-info-module-cmi): Renamed option.
gcc/
* doc/invoke.texi (flang-info-module-cmi): Renamed option.
gcc/cp/
* module.cc (module_state::inform_cmi_p): Renamed field.
(module_state::do_import): Adjust.
(init_modules, finish_module_processing): Likewise.
(handle_module_option): Likewise.
gcc/testsuite/
* g++.dg/modules/pr99166_a.X: Adjust.
* g++.dg/modules/pr99166_b.C: Adjust.
* g++.dg/modules/pr99166_c.C: Adjust.
* g++.dg/modules/pr99166_d.C: Adjust.
gcc/c-family/c.opt
gcc/cp/module.cc
gcc/doc/invoke.texi
gcc/testsuite/g++.dg/modules/pr99166_a.X
gcc/testsuite/g++.dg/modules/pr99166_b.C
gcc/testsuite/g++.dg/modules/pr99166_c.C
gcc/testsuite/g++.dg/modules/pr99166_d.C