From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28821 invoked by alias); 14 Nov 2013 14:05:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28800 invoked by uid 48); 14 Nov 2013 14:05:29 -0000 From: "machens at tuhh dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59130] New: Inline(d) or static functions not registered in transactional clone table Date: Thu, 14 Nov 2013 14:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: machens at tuhh dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg01371.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59130 Bug ID: 59130 Summary: Inline(d) or static functions not registered in transactional clone table Product: gcc Version: 4.7.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: machens at tuhh dot de Created attachment 31218 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31218&action=edit Test case to reproduce the bug When a function pointer is used in a transactional section to call a function the STM library (such as libitm) has to lookup the corresponding transactional function 'clone' of that function. The compiler therefore generates mapping tables which associate function pointers of non-transactional functions with their corresponding transactional function clones. With the STAMP benchmark suite I have experienced that the compiler does not generate entries in the lookup table for functions which are declared as static or inline. I have written a small test case to reproduce the bug (see attachment). Compile with: /usr/bin/g++-4.7 -fgnu-tm -Wall -g -O3 -o gnutm-test main.cpp -lpthread -litm