From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhOJU-0001Zt-B0 for qemu-devel@nongnu.org; Tue, 06 Sep 2016 17:53:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhOJQ-0004Sn-8k for qemu-devel@nongnu.org; Tue, 06 Sep 2016 17:53:51 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:36422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhOJQ-0004Rh-2M for qemu-devel@nongnu.org; Tue, 06 Sep 2016 17:53:48 -0400 Received: by mail-wm0-x242.google.com with SMTP id l65so12945861wmf.3 for ; Tue, 06 Sep 2016 14:53:47 -0700 (PDT) Date: Tue, 6 Sep 2016 23:53:46 +0200 From: "Edgar E. Iglesias" Message-ID: <20160906215346.GB1306@toto> References: <1473076452-19795-1-git-send-email-rabin.vincent@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473076452-19795-1-git-send-email-rabin.vincent@axis.com> Subject: Re: [Qemu-devel] [PATCH 1/9] tests: cris: force inlining List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rabin Vincent Cc: qemu-devel@nongnu.org, Rabin Vincent On Mon, Sep 05, 2016 at 01:54:04PM +0200, Rabin Vincent wrote: > From: Rabin Vincent > > 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 > --- > 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 >