http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52544

Rodrigo Campos <rodrigo at sdfg dot com.ar> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rodrigo at sdfg dot com.ar

--- Comment #4 from Rodrigo Campos <rodrigo at sdfg dot com.ar> ---
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

Reply via email to