From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28245 invoked by alias); 28 Jun 2013 13:45:38 -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 28174 invoked by uid 48); 28 Jun 2013 13:45:33 -0000 From: "rodrigo at sdfg dot com.ar" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/52544] compilation fails with -finstrument-functions and sse c code Date: Fri, 28 Jun 2013 13:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.6.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rodrigo at sdfg dot com.ar X-Bugzilla-Status: NEW 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: cc Message-ID: In-Reply-To: References: 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-06/txt/msg01763.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52544 Rodrigo Campos changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rodrigo at sdfg dot com.ar --- Comment #4 from Rodrigo Campos --- I think I'm hitting a similar issue, although not when using sse code in my case. I'm working on a (shared) library that uses P99: http://p99.gforge.inria.fr/. I just use it as a git submodule on commit 59e08b2, so not linking nor anything "wierd" there, just as it was part of my source code. When I compile the shared library, of course, no error is thrown. But when I try to link agains it, the same "undefined reference to" error to a bunch of P99 functions. For example something like this is shown: ./liborwl.so: undefined reference to `mtx_lock' ./liborwl.so: undefined reference to `p99_count_destroy' ./liborwl.so: undefined reference to `p99_rand' Lot of them, I didn't check all, have the "always_inline". And some also have the "warn_unused_result" gcc attribute or something else. Also, I'm using gcc 4.7.2 (in debian stable). If I use gcc 4.5 the code compiles and link okay, but when I run the executable it seems there is a memory corruption and nothing works as expected. Is this "-finstrument-function" flag still supported ? Thanks a lot, Rodrigo