I was having problems building a working romcc with the -O2
authorMarc Jones <marcj303@gmail.com>
Sat, 13 Feb 2010 18:06:29 +0000 (18:06 +0000)
committerMarc Jones <marc.jones@amd.com>
Sat, 13 Feb 2010 18:06:29 +0000 (18:06 +0000)
optimization flag on ubuntu hardy. It was causing this error building
the bootblock:
bootblock.c:49.0:
Internal compiler error: low: next != prev?

Signed-off-by: Marc Jones <marcj303@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5124 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

Makefile

index ab4c2a5464bd1305cafa79744608e8f4f468ef21..c41d69591f40d5327d378e9262af1ac6eb3efbcb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -312,7 +312,7 @@ ifeq ($(_OS),CYGWIN_)
 endif
 $(obj)/romcc: $(top)/util/romcc/romcc.c
        @printf "    HOSTCC     $(subst $(obj)/,,$(@)) (this may take a while)\n"
-       $(HOSTCC) -g -O2 $(STACK) -Wall -o $@ $<
+       $(HOSTCC) -g $(STACK) -Wall -o $@ $<
 
 .PHONY: $(PHONY) prepare prepare2 clean distclean doxygen doxy coreboot