linux and EGCS PATCH

Martin.Dalecki dalecki@u23.num.math.uni-goettingen.de
Fri Dec 5 01:17:00 GMT 1997


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





More information about the Gcc mailing list