Re[2]: Compiled mc on OS-X (Jaguar)



Hello!

On Mon, 11 Nov 2002, Nerijus Baliunas wrote:

> On Sun, 10 Nov 2002 21:10:11 -0500 (EST) Pavel Roskin <proski gnu org> wrote:
> 
> > What's the name and the version of your C compiler?
> 
> In Jaguar it's gcc 3.1, IIRC.

Thanks.  However, the bug is in the preprocessor (cpp), and gcc can use 
the native cpp.

That's what I get from gcc 3.2 if I remove the last argument together with 
the comma:

vfs.c:448:93: macro "MC_OP" requires 5 arguments, but only 4 given
vfs.c:450: syntax error before "int"
vfs.c:689:88: macro "MC_OP" requires 5 arguments, but only 4 given
vfs.c:691: syntax error before "off_t"

And that's the error message reported by Wim:

Error 4 parameters given when 5 expected

This looks quite different.  I have downloaded the sources of gcc-3.1, and 
I can find "arguments, but only", but not "parameters given when" in the 
sources.  That's a clear evidence that cpp is not from gcc.

That's the test case that should fail on Jaguar:

#define f(x,y) 1 
#define g(x) f(x,) 
g(1);

Just put it to test.c and run "cpp test.c" - it works for me (Red Hat 
Linux 8.0, gcc 3.2), but should fail on Jaguar.

I guess this cpp should be a part of Darwin, but I really don't know.  I
cannot check it because access to Darwin sources requires a registration.

-- 
Regards,
Pavel Roskin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]