digitalmars.D.bugs - [Issue 4191] New: [FreeBSD] real constants are rounded to double precision
- d-bugmail puremagic.com (31/31) May 15 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4191
- d-bugmail puremagic.com (12/12) Aug 05 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4191
http://d.puremagic.com/issues/show_bug.cgi?id=4191 Summary: [FreeBSD] real constants are rounded to double precision Product: D Version: unspecified Platform: x86 OS/Version: FreeBSD Status: NEW Keywords: patch, wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: rsinfu gmail.com --- Created an attachment (id=629) Patch for DMD (svn r487) This code fails with dmd built on FreeBSD/i386: -------------------- static assert(real.max < real.infinity); // fails on FreeBSD -------------------- Some static assertions in std.math are blocked by this problem. There is a bug in GCC on FreeBSD/i386 and long double constants are rounded to double precision(*). A workaround is already there in DMD as Port::ldbl_max, but it seems it's forgotten. :) The attached patch enables this workaround, and adds necessary fpsetprec. [*] freebsd-standards: long double broken on i386? http://groups.google.co.jp/group/lucky.freebsd.standards/browse_thread/thread/5d7b42dac8d29461 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 15 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4191 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED 03:06:07 PDT --- http://www.dsource.org/projects/dmd/changeset/598 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 05 2010