This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Optimization error on SPARC building kernel...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]