From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23456 invoked by alias); 2 Jan 2003 21:02:24 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 23442 invoked from network); 2 Jan 2003 21:02:21 -0000 Received: from unknown (HELO mail-out1.apple.com) (17.254.0.52) by 209.249.29.67 with SMTP; 2 Jan 2003 21:02:21 -0000 Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out1.apple.com (8.11.3/8.11.3) with ESMTP id h02L25w01122 for ; Thu, 2 Jan 2003 13:02:05 -0800 (PST) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Thu, 2 Jan 2003 13:01:38 -0800 Received: from apple.com (snowdrop.apple.com [17.201.21.115]) by scv1.apple.com (8.11.3/8.11.3) with ESMTP id h02L25s22201; Thu, 2 Jan 2003 13:02:05 -0800 (PST) Date: Thu, 02 Jan 2003 21:02:00 -0000 Subject: Re: Change in preprocessor behavior Content-Type: multipart/alternative; boundary=Apple-Mail-4-957103490 Mime-Version: 1.0 (Apple Message framework v551) Cc: Devang Patel , Stephen Lindholm , gcc@gcc.gnu.org To: Mike Stump From: Devang Patel In-Reply-To: Message-Id: <74FEAA08-1E95-11D7-9172-0003935AAA26@apple.com> X-SW-Source: 2003-01/txt/msg00067.txt.bz2 --Apple-Mail-4-957103490 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Content-length: 2442 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 --Apple-Mail-4-957103490 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII Content-length: 2505 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 --Apple-Mail-4-957103490--