tests: cris: force inlining
authorRabin Vincent <rabinv@axis.com>
Tue, 23 Aug 2016 14:34:59 +0000 (16:34 +0200)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Wed, 28 Sep 2016 08:45:44 +0000 (10:45 +0200)
commit21ce148c7ec71ee32834061355a5ecfd1a11f90f
tree9bc8832f81e843f3d030bc959487d33be80ecd20
parent25930ed60aad49f1fdd7de05272317c86ce1275b
tests: cris: force inlining

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.

Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Rabin Vincent <rabinv@axis.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
tests/tcg/cris/check_abs.c
tests/tcg/cris/check_addc.c
tests/tcg/cris/check_addcm.c
tests/tcg/cris/check_bound.c
tests/tcg/cris/check_ftag.c
tests/tcg/cris/check_int64.c
tests/tcg/cris/check_lz.c
tests/tcg/cris/check_swap.c
tests/tcg/cris/crisutils.h
tests/tcg/cris/sys.h