From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Blandy To: Michael Snyder Cc: Eli Zaretskii , gdb-patches@sources.redhat.com Subject: Re: RFA: don't try to compare IEEE NaN's Date: Wed, 06 Jun 2001 15:08:00 -0000 Message-id: References: <3B1E6E7A.CEBC4116@cygnus.com> X-SW-Source: 2001-06/msg00101.html Michael Snyder writes: > BTW, the reason for using a union as I did, rather than individual > char, short, int etc. variables, was to make sure that the known bit > pattern was actually larger than the type being tested -- so that we > would know if, for instance, GDB was testing more bits than it > should. I don't think my patch breaks this property. After I write to testval.float_testval, the subsequent bytes are still 0xff. And if a double is no smaller than a float, it works for the double test, too. If we're trying to catch more-bits-than-appropriate comparisons, shouldn't the *_resultval variables be in a union with a distinct background pattern, too? Say, zeros?