From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7585 invoked by alias); 15 Feb 2008 13:45:10 -0000 Received: (qmail 7573 invoked by uid 22791); 15 Feb 2008 13:45:09 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Feb 2008 13:44:51 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m1FDinV2004491; Fri, 15 Feb 2008 08:44:49 -0500 Received: from [10.11.14.58] (vpn-14-58.rdu.redhat.com [10.11.14.58]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1FDimUF009892; Fri, 15 Feb 2008 08:44:49 -0500 Message-ID: <47B59750.9040002@redhat.com> Date: Fri, 15 Feb 2008 13:45:00 -0000 From: Andrew Haley User-Agent: Thunderbird 1.5.0.12 (X11/20071019) MIME-Version: 1.0 To: Martin Sustrik CC: gcc-help@gcc.gnu.org Subject: Re: Should it be reported as a bug? (-O2 and cmpxchg instruction) References: <47B56FAA.6040504@imatix.com> <47B5709B.10407@redhat.com> <47B57583.7030206@imatix.com> <47B575EF.3050200@redhat.com> <47B577DD.4080802@imatix.com> <47B57B04.7070305@redhat.com> <47B5800B.9090508@imatix.com> In-Reply-To: <47B5800B.9090508@imatix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00184.txt.bz2 Martin Sustrik wrote: > >> >> I certainly don't get that. Please post a complete test case, with >> assembly output. We also need to know exactly your version of gcc. >> > Sorry, I am not able to make a simple test case as I don't know how to > force gcc to inline the function that gets inlined in our product. > Without the inlining everything looks to compile without problems. Is > there any way to force inline? Declare it inline and compile with -O ought to do it. GCC does not inline any functions when not optimizing unless you specify the `always_inline' attribute. Andrew.