The objc/lang-specs.h file lists objc-cpp-output as an input language. However, the -x documentation lists objective-c-cpp-output as an input language.
The objcp/lang-specs.h file lists both objective-c++-cpp-output and objc++-cpp-output as input languages. However, the -x documentation lists only objective-c++-cpp-output. The two languages are inconsistent with each other, and both are inconsistent with the documentation. These inconsistencies should be fixed. It isn't obvious how the Objective C/C++ maintainers would want this fixed, hence this PR. There are also inconsistencies within the languages lists here. For Objective C, we have objective-c, objective-c-header, and objc-cpp-output. It looks odd for the last one to be different from the first two. I think it would make sense to have only one name for the *-cpp-output input languages, and consistency would argue that it should be the objective-c-cpp-output. But since we already have confusion here over the name, maybe we just have to support both the long and short *-cpp-output names for now. -- Summary: inconsistent objective-c objective-c++ language list Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: objc AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: wilson at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24358