Closed Bug 59963 Opened 25 years ago Closed 25 years ago

fdlibm code does "illegal type punning"

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 24892

People

(Reporter: braden, Assigned: rogerl)

References

()

Details

Refer to the Red Hat Bugzilla report (URL) for details.
Isn't this bug 24892 again?
It looks related, but I'm not convinced it's exactly the same thing.
Bug 24892 is marked fixed, but the problem I describe here is exibited at least as of JS 1.5rc2. Note the problem file in this case is e_hypot.c.
mozilla/js/src/fdlibm/fdlibm.h has modified _HI and _LO macros which use unions. Doesn't that fix it?
Braden, the fix for bug 24892 went in during September, after the JS 1.5 RC2 tarball was published. Do you have access to the Mozilla CVS repository to pull the most recent source code? Details on this are at http://www.mozilla.org/js/js15.html http://www.mozilla.org/cvs.html If not, could you attach a reduced JavaScript testcase to this bug, and I'll try it myself - thanks. cc'ing rginda -
Phil: I'll try the latest code tonight. Note that the problem manifests itself as an ICE under gcc 2.96 when compiling the code; I don't know whether or not the behavior of JavaScript code is affected under a successfully-compiled SpiderMonkey.
The problem does seem to be fixed in the current code. Marking duplicate. *** This bug has been marked as a duplicate of 24892 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Thanks, Braden! Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.