From: Ulrich Drepper <drepper@redhat.com>
To: linux-kernel@vger.kernel.org,
user-mode-linux-devel@lists.sourceforge.net
Cc: akpm@linux-foundation.org, mingo@elte.hu, tglx@linutronix.de,
torvalds@linux-foundation.org
Subject: [PATCH] fix UML on x86-64
Date: Tue, 6 May 2008 19:04:43 -0400 [thread overview]
Message-ID: <200805062304.m46N4h6d007206@devserv.devel.redhat.com> (raw)
This patch breaks UML for me on x86-64 running Fedora 8 (gcc 4.1.2):
commit 22eecde2f9034764a3fd095eecfa3adfb8ec9a98
Author: Ingo Molnar <mingo@elte.hu>
Date: Thu May 1 12:06:54 2008 +0200
uml: fix gcc problem
this is what caused gcc 4.3 to throw an internal error when
OPTIMIZE_INLINING was enabled ...
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
If you want to use the option for gcc 4.3 then do it, but only for those
versions. I haven't tested whether gcc 4.2 and 4.3 works, I just know
that gcc 4.1.2 needs the option for some reason.
Signed-off-by: Ulrich Drepper <drepper@redhat.com>
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 01b97c1..3f52a8c 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -77,9 +77,9 @@ include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
KERNEL_DEFINES = $(strip -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask \
-Dmktime=kernel_mktime $(ARCH_KERNEL_DEFINES))
KBUILD_CFLAGS += $(KERNEL_DEFINES)
-# Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use
+# Disable unit-at-a-time mode on pre-gcc-4.3 compilers, it makes gcc use
# a lot more stack due to the lack of sharing of stacklots:
-KBUILD_CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then \
+KBUILD_CFLAGS += $(shell if [ $(call cc-version) -lt 0430 ] ; then \
echo $(call cc-option,-fno-unit-at-a-time); fi ;)
PHONY += linux
next reply other threads:[~2008-05-06 23:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 23:04 Ulrich Drepper [this message]
2008-05-06 23:27 ` [PATCH] fix UML on x86-64 Linus Torvalds
2008-05-06 23:38 ` Ulrich Drepper
2008-05-07 0:06 ` Linus Torvalds
2008-05-07 0:15 ` Linus Torvalds
2008-05-07 1:48 ` Jeff Dike
2008-05-07 1:31 ` Jeff Dike
2008-05-07 3:26 ` [uml-devel] " Jeff Dike
2008-05-07 4:00 ` Jeff Dike
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=200805062304.m46N4h6d007206@devserv.devel.redhat.com \
--to=drepper@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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