patches/glibc/ports-2.10.1/460-alpha-fix-gcc-4.1-warnings.patch
changeset 1625 fde082da9813
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/ports-2.10.1/460-alpha-fix-gcc-4.1-warnings.patch	Fri Nov 13 21:37:18 2009 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +2006-05-30  Falk Hueffner <falk@debian.org>
     1.5 +
     1.6 +	* sysdeps/unix/sysv/linux/alpha/ioperm.c: force the architecture
     1.7 +	  to ev6 in assembly code.
     1.8 +
     1.9 +{standard input}: Assembler messages:
    1.10 +{standard input}:341: Error: macro requires $at register while noat in effect
    1.11 +{standard input}:374: Error: macro requires $at register while noat in effect
    1.12 +{standard input}:438: Error: macro requires $at register while noat in effect
    1.13 +{standard input}:471: Error: macro requires $at register while noat in effect
    1.14 +make[3]: *** [/tmp/buildd/glibc-2.3.6/build-tree/alpha-libc/misc/ioperm.o] Error 1
    1.15 +
    1.16 +Hrm. gcc puts .arch ev4 into the .s, and this overrides -mev6 for as.
    1.17 +I cannot really think of anything better than
    1.18 +
    1.19 + ports/sysdeps/unix/sysv/linux/alpha/ioperm.c |    8 ++++----
    1.20 + 1 file changed, 4 insertions(+), 4 deletions(-)
    1.21 +
    1.22 +diff -durN glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/ioperm.c glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/ioperm.c
    1.23 +--- glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/ioperm.c	2009-05-16 10:36:20.000000000 +0200
    1.24 ++++ glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/ioperm.c	2009-11-13 00:50:57.000000000 +0100
    1.25 +@@ -178,13 +178,13 @@
    1.26 + static inline void
    1.27 + stb_mb(unsigned char val, unsigned long addr)
    1.28 + {
    1.29 +-  __asm__("stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val));
    1.30 ++  __asm__(".arch ev6; stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val));
    1.31 + }
    1.32 + 
    1.33 + static inline void
    1.34 + stw_mb(unsigned short val, unsigned long addr)
    1.35 + {
    1.36 +-  __asm__("stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val));
    1.37 ++  __asm__(".arch ev6; stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val));
    1.38 + }
    1.39 + 
    1.40 + static inline void
    1.41 +@@ -356,7 +356,7 @@
    1.42 +   unsigned long int addr = dense_port_to_cpu_addr (port);
    1.43 +   unsigned char r;
    1.44 + 
    1.45 +-  __asm__ ("ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr));
    1.46 ++  __asm__ (".arch ev6; ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr));
    1.47 +   return r;
    1.48 + }
    1.49 + 
    1.50 +@@ -366,7 +366,7 @@
    1.51 +   unsigned long int addr = dense_port_to_cpu_addr (port);
    1.52 +   unsigned short r;
    1.53 + 
    1.54 +-  __asm__ ("ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr));
    1.55 ++  __asm__ (".arch ev6; ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr));
    1.56 +   return r;
    1.57 + }
    1.58 + 
    1.59 +diff -durN glibc-2.10.1.orig/ports/sysdeps/unix/sysv/linux/alpha/ioperm.c glibc-2.10.1/ports/sysdeps/unix/sysv/linux/alpha/ioperm.c