================ @@ -514,6 +514,14 @@ the Itanium C++ ABI are covered. The declarations in a module unit which are not in the global module fragment have new linkage names. +By default, Clang keeps internal-linkage functions from global module +fragments in different named module units distinct and includes the +module-unit owner in their mangled names. This is a practical, non-conforming +strategy for C-style `static inline` functions in real-world headers. Specify +`-Xclang -fno-modules-unique-gmf-internal-linkage` to restore the ordinary ---------------- cjc0013 wrote:
Updated this to make the option available through the `clang` driver. - Both `-fmodules-unique-gmf-internal-linkage` and `-fno-modules-unique-gmf-internal-linkage` are now driver and `cc1` options. The driver forwards the last specified form to `cc1`. - `StandardCPlusPlusModules.md` now documents the direct driver spelling without `-Xclang`. - Added a dedicated driver regression covering both forms and both option orderings. Validation: - exact-tree assertions Clang rebuild: 87/87 actions completed; final formatter-adjusted relink: 4/4 actions completed - driver regressions: 2 passed - focused GMF regression: 1 passed - adjacent C++20 module regressions: 13 passed - changed-line `clang-format` and `git diff --check`: clean https://github.com/llvm/llvm-project/pull/219238 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
