[OpenAFS-devel] s390 compile option

jacobi@de.ibm.com jacobi@de.ibm.com
Fri, 16 Feb 2001 14:07:01 +0100


Next to the solution of Adam Thornton I have here an other alternative to
compile
OpenAFS on s390:

--- src/libafs/MakefileProto.LINUX.orig  Wed Feb 14 10:20:32 2001
+++ src/libafs/MakefileProto.LINUX Wed Feb 14 14:12:28 2001
@@ -43,8 +43,8 @@
 DEFINES = -D__KERNEL__  -DCPU=586 -DKERNEL -D_KERNEL -DMODULE ${SMP_DEF}
 <s390_linux22 s390_linux24>
 CCFLAGS =   -O2 -fomit-frame-pointer -fno-strength-reduce \
-    -fno-strict-aliasing -fsigned-char -pipe \
-    -fno-builtin
+       -fno-strict-aliasing -fsigned-char -pipe
+#       -fno-builtin
 DEFINES = -D__KERNEL__  -D__s390__ -DKERNEL -D_KERNEL -DMODULE ${SMP_DEF}
 <sparc_linux22 sparc_linux24>
 LD = ld -m elf32_sparc

This patch just reactivates the inclusion of built in functions by the gcc
compiler. By the way,
why is this feature switched off by default? Did anybody have bad
experience with it. I just
compiled the whole source tree with this feature, installed the binaries
and know my Linux
is up and running in our local AFS cell. Since gcc generates "memcpy" as a
built in function
I don't get any unresolved symbols any more too. Maybe the code size is
increased a little,
but I was told the performance of the builtin memcpy should be good.
So far, just a suggestion ...

Carsten Jacobi