From: Devang Patel <dpatel@apple.com>
To: Mike Stump <mrs@apple.com>
Cc: Devang Patel <dpatel@apple.com>,
Stephen Lindholm <lindholm@CS.Stanford.EDU>,
gcc@gcc.gnu.org
Subject: Re: Change in preprocessor behavior
Date: Thu, 02 Jan 2003 21:02:00 -0000 [thread overview]
Message-ID: <74FEAA08-1E95-11D7-9172-0003935AAA26@apple.com> (raw)
In-Reply-To: <A7F3825E-1E92-11D7-862F-003065A77310@apple.com>
[-- Attachment #1: Type: text/plain, Size: 2442 bytes --]
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
[-- Attachment #2: Type: text/enriched, Size: 2505 bytes --]
On Thursday, January 2, 2003, at 12:42 PM, Mike Stump wrote:
[snip]
<excerpt><fixed>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?
</fixed></excerpt><fixed>
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
</fixed>
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
next prev parent reply other threads:[~2003-01-02 21:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-30 20:53 Stephen Lindholm
2002-12-30 20:54 ` Neil Booth
2002-12-30 20:54 ` Stephen Lindholm
2003-01-02 21:04 ` Devang Patel
2002-12-30 20:54 ` Neil Booth
2003-01-02 20:42 ` Mike Stump
2003-01-02 21:02 ` Devang Patel [this message]
2003-01-04 20:19 ` Zack Weinberg
2002-12-31 10:24 Martin York
2022-06-21 0:34 Dave Blanchard
2022-06-21 7:28 ` Richard Biener
2022-06-21 12:57 ` Dave Blanchard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=74FEAA08-1E95-11D7-9172-0003935AAA26@apple.com \
--to=dpatel@apple.com \
--cc=gcc@gcc.gnu.org \
--cc=lindholm@CS.Stanford.EDU \
--cc=mrs@apple.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).