From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert de Bath Subject: Re: More dev86 changes (0.16.7) Date: Sat, 10 Aug 2002 21:28:14 +0100 (BST) Sender: linux-8086-owner@vger.kernel.org Message-ID: <37f23ff36ac7348a@mayday.cix.co.uk> References: <20020810193601.GA11440@codepoet.org> Mime-Version: 1.0 Return-path: In-Reply-To: <20020810193601.GA11440@codepoet.org> List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Manuel Novoa III Cc: Linux-8086 On Sat, 10 Aug 2002, Manuel Novoa III wrote: > Hello Robert, > > Sorry it took so long to do some testing, but I've been swamped. > > Tried to build some of my uClibc stuff and found a bug with the new cpp > that is illustrated with the following test case. > > test.c: > > #define X (1UL) > > #if X == 0 > #error this shouldn't happen Oops, you _really_ shouldn't put that "single quote" there, ansi preprocessors that follow the standard explicitly will whinge. > #endif > > With the new cpp, what shouldn't happen... does. > Here's the output for "ncc -ansi -E test.c". > > test.c:3: warning: Unexpected text following preprocessor command > test.c:5: error: #error this shouldn't happen > # 1 "test.c" > > Output without -ansi is: > > # 1 "test.c" > test.c:3: warning: Unexpected text following preprocessor command > test.c:5: error: #error this shouldn't happen Okay, "UL" is now added as a valid type specifier for integers. However specifing the type will make no difference as the integer type for preprocessor expressions is supposed to be the largest available integer however you express it. I'm not even sure specifing a type is actually legal, but I think it's covered by the phrase "identifier-nondigit" in the syntax table. > Also, with the old cpp one could use "-I" to not include the default > include dirs. This feature seems to be lacking in the new version. That is a bug in the new bcc.c that's been there since it first appeared, (Errm, 0.16.2) ho hum nobody noticed before. (Including me!!!) Okay fixed, and I'll be uploading a new version tomorrow with those and a few other changes. -- Rob. (Robert de Bath )