Comparing function pointers
Bruno Haible
bruno@clisp.org
Sun Jun 15 17:57:00 GMT 2003
H. J. Lu wrote:
> > He goes on to recommend to avoid comparing function pointers in portable
> > programs.
>
> It should work on ia64. If not, file a bug. It can be a gcc, ld
> and/or ld.so bug.
You are right, it appears to work on ia64-linux. So it was only Andreas Jaeger's
recommendation which was wrong.
OTOH, the bug is there for another CPU, namely for hppa-linux. I've filed a bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11197
Bruno
More information about the Gcc
mailing list