This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Optimization error on SPARC building kernel...
- To: gcc bugs list <gcc-bugs at gcc dot gnu dot org>
- Subject: Optimization error on SPARC building kernel...
- From: Scott Bambrough <scottb at netwinder dot org>
- Date: Tue, 25 Jul 2000 11:06:08 -0400
- Organization: Rebel.com
There seems to be an optimizer bug when building a 2.2.16 kernel with
freeswan-1.5 on sparc64. The offending file is net/ipsec/ipsec_sha1.c. It
builds OK with -O but fails (out of memory) with -O2.
The system we are building on is an UltraSparc 2i with 256MB ram and 500MB swap
running Red Hat 6.2.
# uname -a
Linux sparc-os 2.2.14-5.0 #1 Mon Jul 17 14:02:06 EDT 2000 sparc64 unknown
# sparc64-linux-gcc -v
Reading specs from
/usr/lib/gcc-lib/sparc64-redhat-linux/egcs-2.92.11/specs
gcc version egcs-2.92.11 19980921 (gcc2 ss-980609 experimental)
# sparc64-linux-gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -m64
-pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4
-fcall-used-g5 -fcall-used-g7 -Wno-sign-compare -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -Ilibfreeswan -g
-Wall -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast -c -o
ipsec_sha1.o ipsec_sha1.c
ipsec_sha1.c: In function `SHA1Transform':
ipsec_sha1.c:95: virtual memory exhausted
Scott
--
Scott Bambrough - Software Engineer
REBEL.COM http://www.rebel.com
NetWinder http://www.netwinder.org
ipsec_sha1_i.gz