This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
linux and EGCS PATCH
- To: torvalds at transmeta dot com
- Subject: linux and EGCS PATCH
- From: "Martin.Dalecki" <dalecki at u23 dot num dot math dot uni-goettingen dot de>
- Date: Fri, 5 Dec 1997 08:53:46 +0100 (MET)
- Cc: egcs at cygnus dot com, linux kernel <linux-kernel at vger dot rutgers dot edu>
The following little patch resolvs the compilation problems for the linux
kernel with the just releases egcs-1.0 compiler. It seems to be correct
anyway.
Please apply it to the next kernel release.
--- linux-orig/arch/i386/kernel/process.c Wed Oct 15 02:24:09 1997
+++ linux/arch/i386/kernel/process.c Thu Dec 4 22:49:10 1997
@@ -443,6 +443,13 @@
if (task[i] == current) {
set_ldt_desc(gdt+(i<<1)+
FIRST_LDT_ENTRY,&default_ldt, 1);
+ /*
+ * 1997/12/04 Marcin Dalecki:
+ *
+ * The introduction of the following (over-) optimization preventer
+ * fixes the compilation under egcs-1.0.
+ */
+ barrier();
load_ldt(i);
}
}