[Linux-ia64] problem with ia64_fetch_and_add

From: Chen, Kenneth W <kenneth.w.chen_at_intel.com>
Date: 2003-02-20 05:44:59
I'm having problem compiling code with macro function ia64_fetch_and_add.

What happens is if I use atomic_add_return() in one of the inline function, I'm getting unresolved symbol error at link time for __bad_increment_for_ia64_fetch_and_add().  But the input argument to ia64_fetch_and_add() is of constant 1 or -1.  I'm using gcc-3.2.2.

Is this a toolchain problem?  Just for the sake of compile, the same code compiled without error with gcc-2.96, which kind of give me a fuzzy feeling that gcc-3.2 is not working for this case.  Has anyone seen this before?

- Ken
Received on Wed Feb 19 11:48:17 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:12 EST