http://oss.sgi.com/bugzilla/show_bug.cgi?id=183
Summary: warings when compiling kernel
Product: Linux XFS
Version: 1.2.x
Platform: IA32
OS/Version: Linux
Status: NEW
Severity: normal
Priority: Medium
Component: XFS kernel code
AssignedTo: xfs-master@xxxxxxxxxxx
ReportedBy: ajayr@xxxxxxxxxxxx
If this is a userspace bug, what version of the package are you using:
What kernel are you using
kernel-2.4.18-14SGI_XFS_1.2a1.i686:
Where did the XFS code come from? (CVS, Linus, your distribution, etc):
1.2a1
Description of Problem:
warnings when I recompile XFS kernel source for athlon on RH8
How Reproducible:
using GCC 3.2 from RH8 to recompile kernel
Steps to Reproduce:
1.
2.
3.
Actual Results:
lots of warnings
Expected Results:
none related to march and falign etc
Additional Information:
JAM kernels have a patch for compiling with gcc 3, I have adapted that for the
1.2a kernel
--- linux/arch/i386/Makefile.orig 2002-10-12 08:28:31.000000000 +0530
+++ linux/arch/i386/Makefile 2002-10-12 08:41:23.000000000 +0530
@@ -43,19 +43,19 @@
endif
ifdef CONFIG_M586MMX
-CFLAGS += -march=i586
+CFLAGS += $(shell if $(CC) -march=pentium-mmx -S -o /dev/null -xc /dev/null
>/dev/null 2>&1; then echo "-march=pentium-mmx"; else echo "-marc
h=i586"; fi)
endif
ifdef CONFIG_M686
-CFLAGS += -march=i686
+CFLAGS += $(shell if $(CC) -march=pentium2 -S -o /dev/null -xc /dev/null
>/dev/null 2>&1; then echo "-march=pentium2"; else echo "-march=i686
"; fi)
endif
ifdef CONFIG_MPENTIUMIII
-CFLAGS += -march=i686
+CFLAGS += $(shell if $(CC) -march=pentium3 -S -o /dev/null -xc /dev/null
>/dev/null 2>&1; then echo "-march=pentium3"; else echo "-march=i686
"; fi)
endif
ifdef CONFIG_MPENTIUM4
-CFLAGS += -march=i686
+CFLAGS += $(shell if $(CC) -march=pentium4 -S -o /dev/null -xc /dev/null
>/dev/null 2>&1; then echo "-march=pentium4"; else echo "-march=i686
"; fi)
endif
ifdef CONFIG_MK6
@@ -63,7 +63,7 @@
endif
ifdef CONFIG_MK7
-CFLAGS += -march=i686 -malign-functions=4
+CFLAGS += $(shell if $(CC) -march=athlon -S -o /dev/null -xc /dev/null
>/dev/null 2>&1; then echo "-march=athlon"; else echo "-march=i686 -ma
lign-functions=4"; fi)
endif
ifdef CONFIG_MCRUSOE
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
|