From 3cd25b7e7be368ea41dabdbdd117583583c93892 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Fri, 30 Jul 2004 04:27:20 +0000 Subject: [PATCH] Compile boot2 with -fno-unit-at-a-time. GCCs aggressive optimization breaks boot in spectacular ways otherwise. --- sys/boot/i386/boot2/Makefile | 4 +++- sys/boot/i386/gptboot/Makefile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile index ed3f9c28f01..3e23061df81 100644 --- a/sys/boot/i386/boot2/Makefile +++ b/sys/boot/i386/boot2/Makefile @@ -21,7 +21,9 @@ BOOT2_UFS?= UFS1_AND_UFS2 #BOOT2_UFS?= UFS1_ONLY CFLAGS= -Os \ - -fno-guess-branch-probability -fomit-frame-pointer\ + -fno-guess-branch-probability \ + -fomit-frame-pointer \ + -fno-unit-at-a-time \ -mno-align-long-strings \ -mrtd \ -D${BOOT2_UFS} \ diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile index ed3f9c28f01..3e23061df81 100644 --- a/sys/boot/i386/gptboot/Makefile +++ b/sys/boot/i386/gptboot/Makefile @@ -21,7 +21,9 @@ BOOT2_UFS?= UFS1_AND_UFS2 #BOOT2_UFS?= UFS1_ONLY CFLAGS= -Os \ - -fno-guess-branch-probability -fomit-frame-pointer\ + -fno-guess-branch-probability \ + -fomit-frame-pointer \ + -fno-unit-at-a-time \ -mno-align-long-strings \ -mrtd \ -D${BOOT2_UFS} \