Bug#162690: [parisc]gcc 3.x produces openssl test code that SEGVs with -march=2.0 and optimization >0
perhaps someone here can look at this?
randolph
----- Forwarded message from Kevin Carson <[email protected]> -----
Subject: Bug#162690: [parisc]gcc 3.x produces openssl test code that SEGVs with -march=2.0 and optimization >0
Reply-To: Kevin Carson <[email protected]>, [email protected]
Date: Sat, 28 Sep 2002 10:21:01 -0700
From: Kevin Carson <[email protected]>
To: [email protected]
X-Mailing-List: <[email protected]> archive/latest/3552
Package: gcc
Running Debian unstable on PA-RISC platform (C160 Workstation with 160MHz PA-8000 CPU)
Compiling openssl 0.9.6g with any level of optimization for PA1.1 produces code that passes all tests ("make test") and benchmarks ("openssl speed") successfully. Using -march=2.0 flag produces code that only runs successfully at optimization level "-O0" Any higher optimization fails some of the test suite (reliably in test/exptest.c for instance).
I've observed this problem with gcc 3.0.4-8 and gcc-3.2.1-0pre2
libc6 2.2.5-14.3
"linux-parisc" configuration string in openssl Configure script for successful run is
"gcc-3.2:-DB_ENDIAN -DNO_ASM -DTERMIO -O0 -march=2.0 -Wall::::::"
"linux-parisc" configuration string in openssl Configure script for failed run is "gcc-3.2:-DB_ENDIAN -DNO_ASM -DTERMIO -O1 -march=2.0 -Wall::::::"
Run test by:
cd openssl-0.9.6g
<edit Configure to contain string above in single line>
make clean
./Configure linux-parisc
make test
if optimization is >0 run will fail with segmentation violation in exptest (tests various operations on the big number library)
Kevin
Signature · 4 lines
To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] ----- End forwarded message -----
Quoted 10 lines
Package: gcc
Running Debian unstable on PA-RISC platform (C160 Workstation with 160MHz PA-8000 CPU)
Compiling openssl 0.9.6g with any level of optimization for PA1.1 produces code that passes all tests ("make test") and benchmarks ("openssl speed") successfully. Using -march=2.0 flag produces code that only runs successfully at optimization level "-O0" Any higher optimization fails some of the test suite (reliably in
test/exptest.cfor instance).
There is a known issue with the assembler and linker with PA-RISC 2.0 code. The relocations generated for floating-point loads and stores are wrong in some cases. Until this problem is fixed, I don't recommend using -march=2.0. This is part of the reason the default architecture is still PA-RISC 1.1. I don't think you can build gcc with -march=2.0 either. There isn't a huge benefit in PA-RISC 2.0 in 32-bit mode.
I believe that this is not a problem with the 64-bit assembler and linker. However, there isn't a 64-bit userspace yet :(
If you think that you can contribute to resolving these issues, then I encourage you to investigate further and determine what causes the seg faults.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)