--- Comment #10 from pluto at agmk dot net 2006-09-20 23:31 ---
i have a reduced testcase:
$ cat tmp.c
void foo( unsigned long bb, unsigned short tn, unsigned e, unsigned* w )
{
unsigned n = tn + bb;
do {
e = (e > n) ? e : *w;
n -= (e > n)
--- Comment #9 from pluto at agmk dot net 2006-09-20 20:44 ---
Created an attachment (id=12302)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12302&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28230
--- Comment #8 from pluto at agmk dot net 2006-09-20 20:44 ---
(In reply to comment #7)
> and one more misscompiled program -> gzip-1.3.5.
> this time 4.1.2 with -O2 -fwrapv produces wrong code.
>
> $ dd if=/dev/zero of=foo count=10
> $ gzip foo
> $ gzip -d foo.gz
> $ gzip: foo.gz: inva
--- Comment #7 from pluto at agmk dot net 2006-09-19 13:08 ---
and one more misscompiled program -> gzip-1.3.5.
this time 4.1.2 with -O2 -fwrapv produces wrong code.
$ dd if=/dev/zero of=foo count=10
$ gzip foo
$ gzip -d foo.gz
$ gzip: foo.gz: invalid compressed data--format violated