----- Original Message -----
From: "shinichiro.h" <shinichiro.ham...@gmail.com>
To: <i...@euronet.nl>; <tinycc-devel@nongnu.org>
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
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tinycc-devel