Wrong optimization in current CVS

Richard Henderson rth@redhat.com
Fri Nov 17 01:42:00 GMT 2000


On Thu, Nov 16, 2000 at 01:07:58AM +0100, Franz Sirl wrote:
> > OK to commit as execute/20001115-1.c?

Not ok.

> struct iso_directory_record {
>            unsigned char name_len [1];
>            char name [0];
> } entry;

entry.name has no storage, therefore ...

>    if (de->name_len[0] == 1 && de->name[0] == 0)

... dereferencing it is incorrect.

You should be able to design a different test case that 
shows this off without being in error.


r~


More information about the Gcc-bugs mailing list