bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hppa float linkage problems


From: Hans-Bernhard Broeker
Subject: Re: hppa float linkage problems
Date: 20 Feb 2002 15:46:57 GMT

Christopher C. Chimelis <address@hidden> wrote:

> Calling via function pointer: 0.000000
> Calling directly: 3.141593

To me, this looks like one old known bug of GCC (of which I'm by no
means certain whether it ever got fixed): calling functions through
function pointers is generally fishy if you're using GNU binutils with
GCC, on PA-Risc.  It's known to fail reliably as soon as you pass a
pointer to a static function to some function in another source file
which then calls it.

In gnuplot, we had to un-static lots of callback functions for exactly
this reason.  The alternative solution, IIRC, was to use HP's binutils
instead.




-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]