Re: [Linux-ia64] problem with ia64_fetch_and_add

From: David Mosberger <>
Date: 2003-02-20 07:02:54
>>>>> On Wed, 19 Feb 2003 10:44:59 -0800, "Chen, Kenneth W" <> said:

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

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

That's normally an indication that you built with too low an
optimization level (you need to use at least -O1).

Received on Wed Feb 19 12:04:27 2003

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