[openfirmware] [commit] r1937 - clients/memtest86
repository service
svn at openfirmware.info
Tue Aug 17 19:22:56 CEST 2010
Author: wmb
Date: Tue Aug 17 19:22:56 2010
New Revision: 1937
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1937
Log:
x86 - memtest86 - changed -Os to -O1 in Makefile to fix runtime errors
that occurred when compiling with GCC 4.4.3 (-Os worked well with GCC 4.2).
The specific symptom was that Test #2 would report lots of errors in the
0xfffxx range - which wasn't supposed to be tested at all.
Modified:
clients/memtest86/Makefile
Modified: clients/memtest86/Makefile
==============================================================================
--- clients/memtest86/Makefile Wed Aug 11 20:30:05 2010 (r1936)
+++ clients/memtest86/Makefile Tue Aug 17 19:22:56 2010 (r1937)
@@ -28,8 +28,9 @@
CC=gcc
#
# gcc compiler options, these settings should suffice
+# (It is tempting to use -Os, but that causes runtime failures when compiled with GCC >4.2)
#
-CCFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding
+CCFLAGS=-Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding
CCFLAGS += -fno-stack-protector
CCFLAGS += $(DEFINES)
More information about the openfirmware
mailing list