tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470


From: Rob Landley
Subject: Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470
Date: Wed, 5 Sep 2007 18:08:48 -0500
User-agent: KMail/1.9.6

On Wednesday 05 September 2007 3:28:57 pm Joshua Phillips wrote:
> I have made some fixes to tcc that may be useful...
>
> Fixed variable-length array in struct:
>     struct foo {
>        int a;
>        void *b[];
>     };
>     sizeof(struct foo) is now 4 instead of 0.
>

Applied, and added a test to the testcase.

> Fix bug when casting between integer pointers of different sizes
>     as described in http://www.landley.net/code/tinycc/bugs/gildabah.c

Huh.  You know, on arm this test is going to go "boom" anyway due to unaligned 
access, but oh well.  We don't have to be able to run the _tests_ on all 
platforms, just the compiler. :)

> Fix dereferences used in inline assembly output
>     as described in http://www.landley.net/code/tinycc/bugs/asm.c

Added, with test case.

> I have tested these changes, and "make test" still works 100%.
> I have the changes under Mercurial (repository cloned from
> landley.net), which I'd prefer to use, for now I've attached a diff
> with all the changes to revision 470.

Try revision 475. :)

Thank you very much,

Rob
-- 
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.




reply via email to

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