Bug 29559

Summary: '-O1 -ftree-vrp -fwrapv' misscompiles stable gnupg-1.4.5.
Product: gcc Reporter: Pawel Sikora <pawel_sikora>
Component: otherAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WONTFIX    
Severity: normal CC: gcc-bugs, rguenth
Priority: P3    
Version: 4.1.2   
Target Milestone: ---   
Host: Target: powerpc-linux
Build: Known to work: 4.2.0
Known to fail: 4.1.2 Last reconfirmed:

Description Pawel Sikora 2006-10-23 10:32:15 UTC
with '-O1 -ftree-vrp -fwrapv' the armencrypt.test from
gnupg-1.4.5 release producing an output until ENOSPC.

with '-O1 -fno-tree-vrp' test passes.

$ cd gnupg-1.4.5/checks/
$ srcdir=. ./armencrypt.test
$ ls -l x
-rw-------  1 builder2 users 108946 Oct 23 10:32 x

this bug is specific for big-endian.

gcc-4.1.2-20060928.
Comment 1 Pawel Sikora 2006-10-23 10:35:27 UTC
(In reply to comment #0)
> with '-O1 -ftree-vrp -fwrapv' the armencrypt.test from
> gnupg-1.4.5 release producing an output until ENOSPC.
> 
> with '-O1 -fno-tree-vrp' test passes.
        ^^^^^^^^^^^^^^^^^ fix: -O1 -fno-tree-vrp -fwrapv

> 
> $ cd gnupg-1.4.5/checks/
> $ srcdir=. ./armencrypt.test
> $ ls -l x
> -rw-------  1 builder2 users 108946 Oct 23 10:32 x
> 
> this bug is specific for big-endian.
> 
> gcc-4.1.2-20060928.
> 

Comment 2 Richard Biener 2006-10-23 11:45:05 UTC
Testcase? ;)
Comment 3 Pawel Sikora 2006-10-23 11:51:18 UTC
(In reply to comment #2)
> Testcase? ;)

ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.5.tar.bz2  ;)

working on reduced version...
Comment 4 Pawel Sikora 2007-02-14 08:10:34 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Testcase? ;)
> 
> ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.5.tar.bz2  ;)
> 
> working on reduced version...
> 

work cancelled ( -enotime ). i'm using 4.2 now...
Comment 5 Pawel Sikora 2007-03-19 09:25:40 UTC
4.2/ppc works for me and no one have time to track this down on 4.1,
so closing...