On Thursday, January 2, 2003, at 12:42 PM, Mike Stump wrote:
[snip]
I cannot explain why. My best guess is that you are
not using 1175, or that you didn't use gcc_select to select gcc3.
What does gcc_select say when you run it?
I guess, it's because of /usr/bin/cpp.
On Mac OS X, /usr/bin/cpp is a shell script. It messages few arguments
and then invokes GCC cpp. Comments in that shell script says ...
"
...
# Transitional front end to CCCP to make it behave like (Reiser) CCP:
# specifies -traditional
# doesn't search gcc-include
#
# Please beware that this program exists only to provide legacy BSD
# software access to cccp. Direct access to the C pre-processor
# is deprecated; it is only supported for use by the cc(1) C
# compiler. Use of cccp for anything other than C code is a bad
# idea. Don't do it. If you want a macro processor, use m4(1).
#
...
"
:-)
And
"cpp -v test2.c" says
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1
20020420 (prerelease)
/usr/libexec/gcc/darwin/ppc/3.1/tradcpp0 -lang-c -v -$ -iprefix
/usr/libexec/gcc/darwin/ppc/default/../libexec/gcc/darwin/ppc/3.1/
-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -D__ppc__ -D__POWERPC__
-D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__
-D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__
-D__BIG_ENDIAN__ -D__APPLE__ -D__NO_INLINE__ -D__STDC_HOSTED__=1
-D__DYNAMIC__ -D__GNUC__ -D__CONSTANT_CFSTRINGS__ test2.c
GNU traditional CPP version 3.1 20020420 (prerelease)
...
where as "cpp -v test2.cc" says
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1
20020420 (prerelease)
/usr/libexec/gcc/darwin/ppc/3.1/cpp0 -lang-c++ -D__DEPRECATED
-D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -$ -iprefix
/usr/libexec/gcc/darwin/ppc/default/../libexec/gcc/darwin/ppc/3.1/
-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -D__ppc__ -D__POWERPC__
-D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__
-D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__
-D__BIG_ENDIAN__ -D__APPLE__ -D__NO_INLINE__ -D__STDC_HOSTED__=1
-D__DYNAMIC__ -D__GNUC__ -D__CONSTANT_CFSTRINGS__ test2.cc
GNU CPP version 3.1 20020420 (prerelease) (cpplib) (Darwin/PowerPC)
....
(On Mac OS X, /usr/bin/cpp is not part of system compiler)
-Devang