This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/500: math func sqrt(x) returns NaN for x>=0 in GDB, GNU/Linux i686
- From: falk at whoi dot edu
- To: gdb-gnats at sources dot redhat dot com
- Date: 18 Apr 2002 16:34:29 -0000
- Subject: gdb/500: math func sqrt(x) returns NaN for x>=0 in GDB, GNU/Linux i686
- Reply-to: falk at whoi dot edu
>Number: 500
>Category: gdb
>Synopsis: math func sqrt(x) returns NaN for x>=0 in GDB, GNU/Linux i686
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 18 09:38:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Falk Feddersen
>Release: GDB 5.0rh (running Red Hat 7.2)
>Organization:
>Environment:
Red Hat 7.2 Linux on i686
>Description:
program compiled in gcc w/ flags "-g -march=i686"
double q,x=0;
....
q=sqrt(x); /* returns q=NaN in GDB */
if I don't compile w/ "-march=i686" flag it works fine in GDB
w/ the -march=i686 flag, q=sqrt(x) works when run regularly.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: