This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/500: math func sqrt(x) returns NaN for x>=0 in GDB, GNU/Linux i686



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]