tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Is the CVS repository dead yet?


From: grischka
Subject: Re: [Tinycc-devel] Is the CVS repository dead yet?
Date: Tue, 24 Mar 2009 21:30:39 +0100

----- Original Message ----- From: "shinichiro.h" <address@hidden>
To: <address@hidden>; <address@hidden>
Sent: Tuesday, March 24, 2009 5:48 PM
Subject: Re: [Tinycc-devel] Is the CVS repository dead yet?

Thanks for forwarding this! But unfortunately, it seems that this is
the fix of another bug. The bug I looked into was the following:

#include <stdio.h>
int A = 1;
#define A 1+A
#define B(x) x
int main() {
   printf("%d\n", B(A));
}

This code should output 2, but TCC generates code which outputs 3.

Yes, the output from "tcc -E ..." is:

int A = 1;
int main() {
printf("%d\n",1+1+A);
}

I've looked into this once and was unable to fix it, and I'm pretty sure there never was a fix anywhere so far :(

--- grischka





reply via email to

[Prev in Thread] Current Thread [Next in Thread]