https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473
Bug ID: 69473 Summary: system identification macros not documented Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Bug 28314 points out that while the __linux macro is defined on the i?86-*-linux* target it is not defined on powerpc*-*-linux*. In the discussion of the bug it was noted that neither this macro, nor any of the other Linux identification macros, is documented in the GCC manual and thus shouldn't be relied on by programs. However, since GCC exposes the macro to users and since it is obviously relied on by many programs, it should be documented in the GCC manual, along with all other system identification macros (such as _AIX for example) that GCC defines. This bug is a request to add such documentation. While the GCC sources (and tests such as gcc/testsuite/gcc.dg/cpp/assert4.c) should serve as the basis of the documentation, the following site is a useful collection of such macros that can be used for reference: http://sourceforge.net/p/predef/wiki/OperatingSystems/