Bug 29559 - '-O1 -ftree-vrp -fwrapv' misscompiles stable gnupg-1.4.5.
Summary: '-O1 -ftree-vrp -fwrapv' misscompiles stable gnupg-1.4.5.
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 4.1.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 10:32 UTC by Pawel Sikora
Modified: 2007-03-19 09:25 UTC (History)
2 users (show)

See Also:
Host:
Target: powerpc-linux
Build:
Known to work: 4.2.0
Known to fail: 4.1.2
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...