gcc.dg/vmx/gcc-bug-i.c is failing for powerpc*-*-*
with:
Excess errors: /opt/gcc/work/gcc/testsuite/gcc.dg/vmx/gcc-bug-i.c:
16:22: warning: always_inline function might not be inlinable [-
Wattributes]
this is because the function in question is declared:
static DO_INLINE int inline_me(vector signed short data) ;
where:
#define DO_INLINE __attribute__ ((always_inline))
so, unless __attribute__ ((always_inline)) is intended to imply
"inline", the fix below is proposed,
OK for trunk?
Iain
gcc/testsuite:
PR target/49614
* gcc.dg/vmx/gcc-bug-i.c (inline_me): Declare 'inline'.
Index: gcc/testsuite/gcc.dg/vmx/gcc-bug-i.c
===================================================================
--- gcc/testsuite/gcc.dg/vmx/gcc-bug-i.c (revision 177459)
+++ gcc/testsuite/gcc.dg/vmx/gcc-bug-i.c (working copy)
@@ -13,7 +13,7 @@
#define DO_INLINE __attribute__ ((always_inline))
#define DONT_INLINE __attribute__ ((noinline))
-static DO_INLINE int inline_me(vector signed short data)
+static inline DO_INLINE int inline_me(vector signed short data)
{
union {vector signed short v; signed short s[8];} u;
u.v = data;