* [Linux-ia64] problem with ia64_fetch_and_add
@ 2003-02-19 18:44 Chen, Kenneth W
2003-02-19 20:02 ` David Mosberger
0 siblings, 1 reply; 2+ messages in thread
From: Chen, Kenneth W @ 2003-02-19 18:44 UTC (permalink / raw)
To: linux-ia64
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Linux-ia64] problem with ia64_fetch_and_add
2003-02-19 18:44 [Linux-ia64] problem with ia64_fetch_and_add Chen, Kenneth W
@ 2003-02-19 20:02 ` David Mosberger
0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2003-02-19 20:02 UTC (permalink / raw)
To: linux-ia64
>>>>> On Wed, 19 Feb 2003 10:44:59 -0800, "Chen, Kenneth W" <kenneth.w.chen@intel.com> 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).
--david
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-19 20:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-19 18:44 [Linux-ia64] problem with ia64_fetch_and_add Chen, Kenneth W
2003-02-19 20:02 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox