Correctly support all unary expression with sizeof
commit8de9b7a6314a4e93e88518b0b2f0e084cbc448b0
authorThomas Preud'homme <thomas.preudhomme@celest.fr>
Sat, 10 Apr 2010 23:53:40 +0000 (11 01:53 +0200)
committerThomas Preud'homme <thomas.preudhomme@celest.fr>
Thu, 15 Apr 2010 17:05:53 +0000 (15 19:05 +0200)
tree22b5b68bfe683115a2e64201ca34f34ca1b6ddd9
parent6655e06ec851e3541f2f47187f95956e5003c7b8
Correctly support all unary expression with sizeof

Unary expression can start with a parenthesis. Thus, the current test
to detect which sizeof form is being parsed is inaccurate. This patch
makes tcc able to handle things like sizeof (x)[1] where x is declared
as char x[5]; wich is a valid unary expression
tccgen.c