From owner-freebsd-arch Mon Jul 9 7:58:23 2001 Delivered-To: freebsd-arch@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 67A3A37B403 for ; Mon, 9 Jul 2001 07:58:20 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.3/8.11.3) id f69EwDm27345; Mon, 9 Jul 2001 09:58:13 -0500 (CDT) (envelope-from dan) Date: Mon, 9 Jul 2001 09:58:12 -0500 From: Dan Nelson To: Bruce Evans Cc: Harti Brandt , arch@FreeBSD.ORG Subject: Re: -fno-builtin Message-ID: <20010709095812.A20489@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.19i X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jul 09), Bruce Evans said: > len = strlen( > #ifdef FOO > "foo" > #else > "default" > #endif > ); > > This causes errors like: > > z.c:11: warning: preprocessing directive not recognized within macro arg > z.c:11: warning: preprocessing directive not recognized within macro arg > z.c:11: warning: preprocessing directive not recognized within macro arg > z.c: In function `main': > z.c:6: undefined or invalid # directive > z.c:8: undefined or invalid # directive > z.c:10: undefined or invalid # directive > > I only learned of this example a week or two ago. gcc-3.0 was > reported to make a very fundamental function (printf?) a macro. glibc, actually. Do a google search for "glibc printf macro" and you'll see a couple threads discussing it. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message