Re: [Tinycc-devel] tinycc Changelog bcheck.c il-gen.c libtcc1.c tcc.c

2007-11-14 Thread KHMan
grischka wrote: > CVSROOT: /sources/tinycc > Module name: tinycc > Changes by: grischka 07/11/14 17:34:31 > > Modified files: > . : Changelog bcheck.c il-gen.c libtcc1.c tcc.c > > Log message: > Import some changesets from Rob Landley's fork (part 1) > [snip

Re: [Tinycc-devel] Commit-2

2007-11-14 Thread KHMan
grischka wrote: > Here is the second batch of changesets from Rob's repo > that I plan to commit next. > > Additionally (not in Rob's repo) the long long constant > propagation by Ben Hinkle and a newer version of tccpe.c. Guess we'll need a reverse sync at the end. Some documentation or notes al

[Tinycc-devel] Query: anyone with a patch for Cygwin?

2007-11-14 Thread KHMan
Hi all, Does anyone have a patch to make tcc configure and compile on Cygwin? I can't seem to compile tcc cleanly on Cygwin. It would be a nice thing for those poor us stuck in between *nix and win32. I was thinking of tweaking the msys/mingw configuration to do that. -- Cheers, Kein-Hong Man (e

Re: [Tinycc-devel] Strange sizeof construct

2007-11-14 Thread Chris Lattner
On Nov 14, 2007, at 5:39 PM, Mike wrote: "(arr)[0]" would be valid yes. But "40[0]" should be invalid, right? Yes, and it is. "40[arr]" is valid of course. -Chris ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mai

Re: [Tinycc-devel] Strange sizeof construct

2007-11-14 Thread Mike
"(arr)[0]" would be valid yes. But "40[0]" should be invalid, right? Chris Lattner wrote: On Nov 14, 2007, at 5:18 PM, Mike wrote: >>> printf("%d\n",sizeof(arr)[0]); // ok, but why? Why should that be valid syntax? Is C99 really weird or what? (its a immediate value being used in place of a

Re: [Tinycc-devel] Strange sizeof construct

2007-11-14 Thread Chris Lattner
On Nov 14, 2007, at 5:18 PM, Mike wrote: >>> printf("%d\n",sizeof(arr)[0]); // ok, but why? Why should that be valid syntax? Is C99 really weird or what? (its a immediate value being used in place of a pointer.) The C99 grammar says that sizeof is: unary-expression: sizeof unary-expressio

Re: [Tinycc-devel] Strange sizeof construct

2007-11-14 Thread Mike
>>> printf("%d\n",sizeof(arr)[0]); // ok, but why? Why should that be valid syntax? Is C99 really weird or what? (its a immediate value being used in place of a pointer.) -Mike Marc Andre Tanner wrote: On Wed, Nov 14, 2007 at 12:39:18AM +0100, grischka wrote: Could a C guru out there please te

Re: [Tinycc-devel] Strange sizeof construct

2007-11-14 Thread Marc Andre Tanner
On Wed, Nov 14, 2007 at 12:39:18AM +0100, grischka wrote: > > Could a C guru out there please tell me why the following works? > > Extra points if you can explain why it makes sense. > > > > #include > > > > int main(){ > > int arr[10]; > > printf("%d\n",sizeof arr[0]); // ok > > printf("%d\n"

[Tinycc-devel] Commit-2

2007-11-14 Thread grischka
Hi all, Here is the second batch of changesets from Rob's repo that I plan to commit next. Additionally (not in Rob's repo) the long long constant propagation by Ben Hinkle and a newer version of tccpe.c. If someone knows about specific concerns with one of these, please tell. After that we wil

[Tinycc-devel] tinycc Changelog bcheck.c il-gen.c libtcc1.c tcc.c

2007-11-14 Thread grischka
CVSROOT:/sources/tinycc Module name:tinycc Changes by: grischka 07/11/14 17:34:31 Modified files: . : Changelog bcheck.c il-gen.c libtcc1.c tcc.c Log message: Import some changesets from Rob Landley's fork (part 1) CVSWeb URLs: http://cvs.savann