This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Problem with ARM port and pow() function
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Fau Marz'" <faumarz at libero dot it>, "'Nick Clifton'" <nickc at redhat dot com>
- Cc: <newlib at sourceware dot org>
- Date: Mon, 22 Oct 2007 10:42:31 +0100
- Subject: RE: Problem with ARM port and pow() function
- References: <4714A5CB.6050600@redhat.com> <200710172012.05019.faumarz@libero.it> <471701C5.5070908@redhat.com> <200710221007.08729.faumarz@libero.it>
On 22 October 2007 09:07, Fau Marz wrote:
> When the execution reaches the line 101, I expect that the next step should
> continue at 102 or return back in the calling procedure, depending on the
> result of "if(ix <= 0x3fe921fb)".
>
> But this is NOT what happens: the execution after line 101 go back to line
> 100!
Common behaviour when you compile with optimisation on, the compiler has
rearranged the code slightly and the debugger is doing its best to show you
which bit of code you're executing when. It's much easier to debug if you
recompile everything using "-O0" in your CFLAGS.
cheers,
DaveK
--
Can't think of a witty .sigline today....