On Mon, Sep 05, 2016 at 01:54:04PM +0200, Rabin Vincent wrote: > From: Rabin Vincent <rab...@axis.com> > > The CRIS tests expect that functions marked inline are always inline. > With newer versions of GCC, building them results warnings like the > following and spurious failures when they are run. > > In file included from tests/tcg/cris/check_moveq.c:5:0: > tests/tcg/cris/crisutils.h:66:20: warning: inlining failed in call to > 'cris_tst_cc.constprop.0': call is unlikely and code size would grow > [-Winline] > tests/tcg/cris/check_moveq.c:28:13: warning: called from here [-Winline] > > Use the always_inline attribute when building them to fix this.
Hi Rabin, Do you happen to have a public git tree/branch with these changes? Best regards, Edgar > > Signed-off-by: Rabin Vincent <rab...@axis.com> > --- > tests/tcg/cris/sys.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/tcg/cris/sys.h b/tests/tcg/cris/sys.h > index c5f88e1..b1bf4c5 100644 > --- a/tests/tcg/cris/sys.h > +++ b/tests/tcg/cris/sys.h > @@ -3,6 +3,8 @@ > #define STRINGIFY(x) #x > #define TOSTRING(x) STRINGIFY(x) > > +#define inline inline __attribute__((always_inline)) > + > #define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__) > > #define err() \ > -- > 2.1.4 >