[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Bug Report (offset+cast)
From: |
Rob Landley |
Subject: |
Re: [Tinycc-devel] Bug Report (offset+cast) |
Date: |
Fri, 11 May 2007 20:54:47 -0400 |
User-agent: |
KMail/1.9.1 |
On Friday 11 May 2007 11:43 am, Dave Dodge wrote:
> Well, the term "correctly" is a bit suspect. You can't convert an
> arbitrary char* to a short* and dereference it without risking
> undefined behavior, because among other things there's no guarantee
> that the pointed-to location will be aligned properly as a short.
If there's a situation where we're going to produce wrong code, I think we
should at the _very_ least warn, and more likely error out the compile.
Producing working code and letting the trap occur at runtime is another
option...
Rob
- Re: [Tinycc-devel] Bug Report (offset+cast), (continued)
- Re: [Tinycc-devel] Bug Report (offset+cast), David A. Wheeler, 2007/05/11
- Re: [Tinycc-devel] Bug Report (offset+cast), Gil Dabah, 2007/05/11
- Re: [Tinycc-devel] Bug Report (offset+cast), Dave Dodge, 2007/05/11
- Re: [Tinycc-devel] Bug Report (offset+cast), kf, 2007/05/11
- Re: [Tinycc-devel] Bug Report (offset+cast), Gil Dabah, 2007/05/11
- Re: [Tinycc-devel] Bug Report (offset+cast), David A. Wheeler, 2007/05/11
- Re: [Tinycc-devel] Bug Report (offset+cast), Dave Dodge, 2007/05/11
- Re: [Tinycc-devel] Bug Report (offset+cast), Rob Landley, 2007/05/11
- Re: [Tinycc-devel] Bug Report (offset+cast), Dave Dodge, 2007/05/12
- Re: [Tinycc-devel] Bug Report (offset+cast), Rob Landley, 2007/05/12
- Re: [Tinycc-devel] Bug Report (offset+cast),
Rob Landley <=
Re: [Tinycc-devel] Bug Report (offset+cast), Rob Landley, 2007/05/11