This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

linux and EGCS PATCH


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);
 			}
 		}	




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]