From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin.Dalecki" To: torvalds@transmeta.com Cc: egcs@cygnus.com, linux kernel Subject: linux and EGCS PATCH Date: Fri, 05 Dec 1997 01:17:00 -0000 Message-id: X-SW-Source: 1997-12/msg00288.html 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); } }