I don't see how or why this is a good idea. What's wrong with simply
choosing one conforming compiler and making sure to invoke it in
standards-compliant mode? Simply running gcc with
the -Wall -pedantic -ansi options should help the poster distinguish
between C and any implementation-specific extensions, and he won't have to
waste effort of installing, learning, and maintaining two separate
compiler distributions.
in an ideal world a single "perfect" compiler would suffice.
The Perfect Compiler would diagnose all syntax and constraint errors.
It would warn about the use of any extension and even warn about
dubious or potentially error prone constrcuts. Unfortuatly no such
compiler exists 9not even gcc with all those flags) so using a
selection of compilers (and maybe other tools like lint) gets you
closeer
to the Perfect Compiler.
And I think it's a bit of a stretch to imply that the GCC folks try to lock
customers into using their product -- it's free to distribute and even to
modify into a very different product. Unlike vendors of proprietary
systems, they don't stand to benefit much from customer lock-in, except to
the degree that the community at large benefits from wider adoption of
their system.
We recommend, rather, that users take advantage of the extensions of
GNU C and disregard the limitations of other compilers. Aside from
certain supercomputers and obsolete small machines, there is less
and less reason ever to use any other C compiler other than for
bootstrapping GNU CC.
(Using and Porting GNU CC)
-pedantic
This option is not intended to be useful; it exists only to satisfy
pedants who would otherwise claim that GNU CC fails to support the
ANSI standard.
(Using and Porting GNU CC)