From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9576 invoked by alias); 30 Dec 2002 23:46:48 -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 9566 invoked from network); 30 Dec 2002 23:46:46 -0000 Received: from unknown (HELO Xenon.Stanford.EDU) (171.64.66.201) by 209.249.29.67 with SMTP; 30 Dec 2002 23:46:46 -0000 Received: from mail by Xenon.Stanford.EDU with spam-scanned (Exim 4.10) id 18T9c9-0001DO-00 for gcc@gcc.gnu.org; Mon, 30 Dec 2002 15:46:35 -0800 Received: from lindholm (helo=localhost) by Xenon.Stanford.EDU with local-esmtp (Exim 4.10) id 18T9c4-00017K-00; Mon, 30 Dec 2002 15:46:28 -0800 Date: Mon, 30 Dec 2002 20:54:00 -0000 From: Stephen Lindholm To: Neil Booth cc: gcc@gcc.gnu.org Subject: Re: Change in preprocessor behavior In-Reply-To: <20021230225110.GC12512@daikokuya.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-75.0 required=7.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, SPAM_PHRASE_03_05,USER_AGENT_PINE version=2.43-cdscf X-Spam-Level: X-SW-Source: 2002-12/txt/msg01608.txt.bz2 I'm using the version of gcc which came with Mac OS X, and I compared it to the old version of gcc installed on the Solaris mail server. I did not install either of the two compilers myself. I did cut and paste the command line and output exactly as they were in the terminal window. I guess the OS X compiler came out of the box configured differently than I expected. I know it has some modifications to support Mac programming, but I did not expect the preprocessor to be configured differently. I guess I will just have to use a different computer for my preprocessing or install another version of gcc. Thank you for your help. On Mon, 30 Dec 2002, Neil Booth wrote: > Stephen Lindholm wrote:- > > > thrush:~% cpp test2 > > # 1 "test2" > > > > > > struct command commands[] = > > { > > { #quit, quit ## _command }, > > { #help, help ## _command }, > > }; > > Contrary to your claim, I suspect you're using cpp -traditional, no? > > Traditional preprocessors did not support # and ##, and 3.1 is more > "correct" in this respect. FWIW 3.3 has another new implementation of > traditional preprocessing which is the most faithful of GCC's > implementations to true traditional preprocessing. > > Neil. >