diff -purN -X /home/mbligh/.diff.exclude 320-kcg/include/linux/mcount.h 321-kcg_gcc_detect/include/linux/mcount.h
--- 320-kcg/include/linux/mcount.h	2004-02-18 16:23:23.000000000 -0800
+++ 321-kcg_gcc_detect/include/linux/mcount.h	2004-02-18 16:23:27.000000000 -0800
@@ -18,6 +18,16 @@
 #include <linux/config.h> 
 #include <linux/proc_fs.h>
 
+/*
+ * All versions of gcc older than 2.96 have a broken -pg option.
+ * Symptoms are an early panic in free_pages_bulk.
+ * We will refuse to build for these compilers.
+ */ 
+#if (__GNUC__ == 2)
+#error Your compiler is broken for -pg.
+#error See 'http://oss.sgi.com/projects/kernprof/faq.html#Q9' for more information.
+#endif
+
 #define DFL_PC_RES 4  /* default PC resolution for this platform */
 #define CG_MAX_ARCS (1 << (8 * sizeof(short)))
 #define FUNCTIONPC(func)        (*(unsigned long *)&(func))