c++/objective-c++; Do not claim feature(modules), it is clang-specific.

It appears that we misinterpreted the modules feature and that it is intended
to signal that the compiler supports "clang modules".  These are a similar
approach to PCH and tightly coupled to clang AST - so not something that we
are realistically likely to implement.

Unfortunately, the macOS SDKs use this feature test to decide on some
header declaration ordering where it needs to change for clang modules.

This causes a fail to build the std. module sources on macOS meaning that we
get an empty std.cc. Our intention should be parity with/without -fmodules.

The solution is not to claim feature(modules) - C++20 modules are gated on
__cpp_module and so do not need it.

gcc/cp/ChangeLog:

	* cp-objcp-common.cc: Remove claim to support clang modules.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
1 file changed