From: GNU Libc Maintainers Date: Fri, 10 Jan 2020 22:21:25 +0000 (+0000) Subject: local-gcc4.1 X-Git-Tag: archive/raspbian/2.29-9+rpi1~1^2~114 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ee743b39456f123a3651f7d6aa34e6c88b654b2f;p=glibc.git local-gcc4.1 2006-05-30 Falk Hueffner * sysdeps/unix/sysv/linux/alpha/ioperm.c: force the architecture to ev6 in assembly code. {standard input}: Assembler messages: {standard input}:341: Error: macro requires $at register while noat in effect {standard input}:374: Error: macro requires $at register while noat in effect {standard input}:438: Error: macro requires $at register while noat in effect {standard input}:471: Error: macro requires $at register while noat in effect make[3]: *** [/tmp/buildd/glibc-2.3.6/build-tree/alpha-libc/misc/ioperm.o] Error 1 Hrm. gcc puts .arch ev4 into the .s, and this overrides -mev6 for as. I cannot really think of anything better than Gbp-Pq: Topic alpha Gbp-Pq: Name local-gcc4.1.diff --- diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c index ab29cc9c2..e4f0fd528 100644 --- a/sysdeps/unix/sysv/linux/alpha/ioperm.c +++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c @@ -177,13 +177,13 @@ static struct { static inline void stb_mb(unsigned char val, unsigned long addr) { - __asm__("stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val)); + __asm__(".arch ev6; stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val)); } static inline void stw_mb(unsigned short val, unsigned long addr) { - __asm__("stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val)); + __asm__(".arch ev6; stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val)); } static inline void @@ -355,7 +355,7 @@ inline_bwx_inb (unsigned long int port) unsigned long int addr = dense_port_to_cpu_addr (port); unsigned char r; - __asm__ ("ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr)); + __asm__ (".arch ev6; ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr)); return r; } @@ -365,7 +365,7 @@ inline_bwx_inw (unsigned long int port) unsigned long int addr = dense_port_to_cpu_addr (port); unsigned short r; - __asm__ ("ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr)); + __asm__ (".arch ev6; ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr)); return r; }