From ee78ea885acb1292c7fe314327ff77485b658cf2 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 4 Mar 2012 12:03:59 -0800 Subject: [PATCH] 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] --- ChangeLog.alpha | 5 +++++ sysdeps/unix/sysv/linux/alpha/ioperm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.47.3