From: Andrew Morton <akpm@osdl.org>
To: Andi Kleen <ak@muc.de>
Cc: ak@muc.de, eric@cisu.net, stoffel@lucent.com,
Valdis.Kletnieks@vt.edu, bunk@fs.tum.de, cova@ferrara.linux.it,
linux-kernel@vger.kernel.org
Subject: Re: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED
Date: Tue, 27 Jan 2004 15:45:38 -0800 [thread overview]
Message-ID: <20040127154538.08b9e9d9.akpm@osdl.org> (raw)
In-Reply-To: <20040127232950.GA63863@colin2.muc.de>
Andi Kleen <ak@muc.de> wrote:
>
> > I'll turn it on for gcc-3.3 and higher. We can change that if someone has
> > tested earlier compilers.
>
> Earlier compilers never supported -funit-at-a-time. The option
> was first implemented in gcc 3.3-hammer and later merged into 3.4.
OK, then let's use check-gcc again.
> > Also, I do think this should remain a per-arch decision. Other
> > architectures could well have similar problems to this and we don't want to
> > be mysteriously breaking their kernels for them.
>
> That's fine by me. While you're at it could you enable it for x86-64 too?
yup.
diff -puN arch/i386/Makefile~use-funit-at-a-time arch/i386/Makefile
--- 25/arch/i386/Makefile~use-funit-at-a-time Tue Jan 27 15:40:09 2004
+++ 25-akpm/arch/i386/Makefile Tue Jan 27 15:42:26 2004
@@ -73,6 +73,10 @@ cflags-$(CONFIG_X86_ELAN) := -march=i486
GCC_VERSION := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
cflags-$(CONFIG_REGPARM) += $(shell if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;)
+# Enable unit-at-a-time mode when possible. It shrinks the
+# kernel considerably.
+CFLAGS += $(call check_gcc,-funit-at-a-time,)
+
CFLAGS += $(cflags-y)
# Default subarch .c files
diff -puN arch/x86_64/Makefile~use-funit-at-a-time arch/x86_64/Makefile
--- 25/arch/x86_64/Makefile~use-funit-at-a-time Tue Jan 27 15:42:34 2004
+++ 25-akpm/arch/x86_64/Makefile Tue Jan 27 15:44:44 2004
@@ -52,7 +52,10 @@ CFLAGS += -Wno-sign-compare
ifneq ($(CONFIG_DEBUG_INFO),y)
CFLAGS += -fno-asynchronous-unwind-tables
endif
-#CFLAGS += $(call check_gcc,-funit-at-a-time,)
+
+# Enable unit-at-a-time mode when possible. It shrinks the
+# kernel considerably.
+CFLAGS += $(call check_gcc,-funit-at-a-time,)
head-y := arch/x86_64/kernel/head.o arch/x86_64/kernel/head64.o arch/x86_64/kernel/init_task.o
_
next prev parent reply other threads:[~2004-01-27 23:48 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-24 4:53 Kernels > 2.6.1-mm3 do not boot Eric
2004-01-24 6:11 ` Eric
2004-01-24 22:39 ` Eric
2004-01-25 1:02 ` Adrian Bunk
2004-01-25 4:03 ` Eric
2004-01-25 13:15 ` Adrian Bunk
2004-01-25 13:52 ` Fabio Coatti
2004-01-25 14:34 ` Adrian Bunk
2004-01-25 15:39 ` Fabio Coatti
2004-01-25 16:21 ` Adrian Bunk
2004-01-25 17:11 ` Kernels > 2.6.1-mm3 do not boot. - SOLVED Fabio Coatti
2004-01-25 17:30 ` [patch] " Adrian Bunk
2004-01-25 17:48 ` Andi Kleen
2004-01-25 18:00 ` Valdis.Kletnieks
2004-01-25 19:12 ` Andi Kleen
2004-01-25 20:21 ` John Stoffel
2004-01-25 20:25 ` Andi Kleen
2004-01-25 20:37 ` John Stoffel
2004-01-25 21:45 ` Andi Kleen
2004-01-25 21:49 ` Adrian Bunk
2004-01-25 23:18 ` John Stoffel
2004-01-25 23:47 ` Andi Kleen
2004-01-26 2:40 ` John Stoffel
2004-01-26 3:23 ` John Stoffel
2004-01-26 4:26 ` John Stoffel
2004-01-26 5:04 ` Andi Kleen
2004-01-26 14:14 ` John Stoffel
2004-01-26 14:36 ` Andi Kleen
2004-01-26 6:00 ` Andrew Morton
2004-01-26 6:09 ` Andi Kleen
2004-01-26 14:12 ` John Stoffel
2004-01-26 14:51 ` Fabio Coatti
2004-01-26 19:26 ` Eric
2004-01-26 19:56 ` Andrew Morton
2004-01-27 5:43 ` Eric
2004-01-27 5:50 ` Andrew Morton
2004-01-27 5:57 ` Eric
2004-01-27 6:37 ` Eric
2004-01-27 16:26 ` Andi Kleen
2004-01-27 18:15 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - REALLY SOLVED Andi Kleen
2004-01-27 19:31 ` Eric
2004-01-27 21:09 ` Fabio Coatti
2004-01-27 16:20 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Andi Kleen
2004-01-27 20:54 ` Andrew Morton
2004-01-27 22:30 ` Andi Kleen
2004-01-27 23:16 ` Andrew Morton
2004-01-27 23:29 ` Andi Kleen
2004-01-27 23:45 ` Andrew Morton [this message]
2004-01-27 0:18 ` 2.6.2-rc2 Hangs on boot (was: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED) John Stoffel
2004-01-27 0:38 ` Andrew Morton
2004-01-27 9:40 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Erik Hensema
2004-01-25 21:11 ` Andrew Morton
2004-01-25 21:21 ` Fabio Coatti
2004-01-25 21:46 ` Andi Kleen
2004-01-25 22:03 ` Bartlomiej Zolnierkiewicz
2004-01-25 22:08 ` Fabio Coatti
2004-01-25 22:13 ` Andi Kleen
2004-01-25 22:25 ` Andrew Morton
2004-01-25 22:31 ` Andi Kleen
2004-01-25 22:59 ` Andrew Morton
2004-01-26 3:48 ` Adrian Bunk
2004-01-25 23:24 ` John Stoffel
2004-01-26 3:27 ` Adrian Bunk
2004-01-25 21:54 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - II Andi Kleen
2004-01-25 21:48 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Adrian Bunk
2004-01-25 17:49 ` Valdis.Kletnieks
2004-01-25 16:28 ` Kernels > 2.6.1-mm3 do not boot Valdis.Kletnieks
2004-01-25 17:12 ` Fabio Coatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040127154538.08b9e9d9.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=Valdis.Kletnieks@vt.edu \
--cc=ak@muc.de \
--cc=bunk@fs.tum.de \
--cc=cova@ferrara.linux.it \
--cc=eric@cisu.net \
--cc=linux-kernel@vger.kernel.org \
--cc=stoffel@lucent.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®