This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
openssl reveals a problem
- To: gcc-bugs at gcc dot gnu dot org
- Subject: openssl reveals a problem
- From: "Roger W. Brown" <bregor at anusf dot anu dot edu dot au>
- Date: Wed, 08 Dec 1999 16:34:02 +1100 (EST)
This is not a full bug-report, rather a precursor to a
bug-report.
Recent builds of gcc-2.96, from the mainline-CVS source-tree,
fail the crypto validation tests in the openssl-0.9.4
package. gcc-2.95.2 passes all tests. For -O2 and -O3
optimization, the first failure is:
./destest
Doing cbcm
des_ede3_cbcm_encrypt decrypt error
37 36 35 34 33 32 31 20 4e 6f 77 20 69 73 20 74 68 65 20 74 69 6d 65 20 66 6f
72 20 00
8a 42 7b 85 d6 e2 df a0 5a 94 99 cb 34 89 b8 fe d1 0e f0 4a 83 ca e9 62 ae d8
c5 ca e5
-O1 and -O0 optimizations pass destest but fail later on.
Clearly, a lot of work will be necessary to isolate a
succinct example of the root cause.
If this is a known problem, or if anyone believes they can guess
the source of the trouble, or would like to recommend any compiler
patches that have not yet made it into the mainline tree; please
let me know.
For openssl-0.9.4 see: http://www.openssl.org
My test environment is:
i686-linux-2.2.13, binutils-2.9.5.0.21, glibc-2.1.2
PentiumPro CPUs
egcs/gcc is configured as:
CC="gcc -pipe -mpentiumpro" CXX="g++ -pipe -mpentiumpro" \
../configure --prefix=/usr/local/EGCS --enable-shared --enable-threads \
--target=i686-Bregor-linux --build=i686-Bregor-linux \
--host=i686-Bregor-linux --enable-version-specific-runtime-libs \
--enable-nls
Roger Brown bregor at anusf dot anu dot edu dot au