From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3334 invoked by alias); 4 Jan 2003 20:12:57 -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 3161 invoked from network); 4 Jan 2003 20:12:53 -0000 Received: from unknown (HELO mail3.panix.com) (166.84.1.74) by 209.249.29.67 with SMTP; 4 Jan 2003 20:12:53 -0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail3.panix.com (Postfix) with ESMTP id 6AE4298355; Sat, 4 Jan 2003 15:12:41 -0500 (EST) Received: (from zackw@localhost) by panix5.panix.com (8.11.6/8.8.8/PanixN1.0) id h04KCfR10463; Sat, 4 Jan 2003 15:12:41 -0500 (EST) Date: Sat, 04 Jan 2003 20:19:00 -0000 From: Zack Weinberg To: Stephen Lindholm Cc: gcc@gcc.gnu.org Subject: Re: Change in preprocessor behavior Message-ID: <20030104201241.GA10143@panix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-SW-Source: 2003-01/txt/msg00166.txt.bz2 On Mon, Dec 30, 2002 at 02:38:50PM -0800, Stephen Lindholm wrote: > > The stringize and token-pasting operators seem to no longer work in the > "cpp" phases of compilation, but they worked in "cpp" in early versions of > gcc (2.95.3). I can't find it written that those operations must occur in > phases 1-4, but # and ## are "preprocessing-op-or-punc" and it would seem > that they should therefore be processed in phase 4. Others have addressed why "cpp" on Mac OS X isn't behaving as you expect; I would only like to add that "cc -E" or "gcc -E" should do what you want with all versions of GCC and with a number of other Unix compilers as well. zw