From: Richard Henderson Date: Sun, 4 Mar 2012 20:03:59 +0000 (-0800) Subject: alpha: Avoid -Winline warning in ioperm.c. X-Git-Tag: glibc-2.16-ports-before-merge~229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee78ea885acb1292c7fe314327ff77485b658cf2;p=thirdparty%2Fglibc.git alpha: Avoid -Winline warning in ioperm.c. Specifically: warning: inlining failed in call to 'inline_sethae.part.1': call is unlikely and code size would grow [-Winline] --- diff --git a/ChangeLog.alpha b/ChangeLog.alpha index cc1b18e8956..c4ebcd9060f 100644 --- a/ChangeLog.alpha +++ b/ChangeLog.alpha @@ -1,3 +1,8 @@ +2012-03-04 Richard Henderson + + * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_sethae): Mark + as always_inline. + 2012-03-04 Richard Henderson * sysdeps/unix/sysv/linux/alpha/bits/socket.h (recvmmsg): Only diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c index 32e96ec2f29..b4e420b1d4f 100644 --- a/sysdeps/unix/sysv/linux/alpha/ioperm.c +++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c @@ -220,7 +220,7 @@ port_to_cpu_addr (unsigned long int port, ioswizzle_t ioswiz, int size) return io.base + (port << 7) + ((size - 1) << 5); } -static inline void +static inline __attribute__((always_inline)) void inline_sethae (unsigned long int addr, ioswizzle_t ioswiz) { if (ioswiz == IOSWIZZLE_SPARSE)