aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2021-02-25 08:33:05 -0800
committerNathan Sidwell <nathan@acm.org>2021-02-25 08:58:26 -0800
commit9592deabf3c6b9e23aa7a5b84724672cb7c8d560 (patch)
tree113d5d6764192a7d1aad3d3824a5afc99ad3b603 /gcc/doc
parent9f08c08531b61b68a41c9c5403ec0cc288ae3aba (diff)
downloadgcc-9592deabf3c6b9e23aa7a5b84724672cb7c8d560.zip
gcc-9592deabf3c6b9e23aa7a5b84724672cb7c8d560.tar.gz
gcc-9592deabf3c6b9e23aa7a5b84724672cb7c8d560.tar.bz2
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.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index ea315f1..546e954 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -242,7 +242,7 @@ in the following sections.
-fext-numeric-literals @gol
-flang-info-include-translate@r{[}=@var{header}@r{]} @gol
-flang-info-include-translate-not @gol
--flang-info-module-read@r{[}=@var{module}@r{]} @gol
+-flang-info-module-cmi@r{[}=@var{module}@r{]} @gol
-stdlib=@var{libstdc++,libc++} @gol
-Wabi-tag -Wcatch-value -Wcatch-value=@var{n} @gol
-Wno-class-conversion -Wclass-memaccess @gol
@@ -3390,9 +3390,9 @@ translations relating to that specific header. If @var{header} is of
the form @code{"user"} or @code{<system>} it will be resolved to a
specific user or system header using the include path.
-@item -flang-info-module-read
-@itemx -flang-info-module-read=@var{module}
-@opindex flang-info-module-read
+@item -flang-info-module-cmi
+@itemx -flang-info-module-cmi=@var{module}
+@opindex flang-info-module-cmi
Inform of Compiled Module Interface pathnames. The first will note
all read CMI pathnames. The @var{module} form will not reading a
specific module's CMI. @var{module} may be a named module or a
@@ -33063,7 +33063,7 @@ option may be helpful in determining whether include translation is
happening---if it is working correctly, it behaves as if it isn't
there at all.
-The @option{-flang-info-module-read} option can be used to determine
+The @option{-flang-info-module-cmi} option can be used to determine
where the compiler is reading a CMI from. Without the option, the
compiler is silent when such a read is successful. This option has an
optional argument, which will restrict the notification to just the
@@ -33142,7 +33142,8 @@ pairs, one per line. Only the mappings for the direct imports and any
module export name need be provided. If other mappings are provided,
they override those stored in any imported CMI files. A repository
root may be specified in the mapping file by using @samp{$root} as the
-module name in the first active line.
+module name in the first active line. Use of this option will disable
+any default module->CMI name mapping.
@end table