This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix DFP when host endian != target endian
On Thu, 5 Jun 2008, Andrew Pinski wrote:
> Since you are already touching this code, it might be a good idea to
> fix up the aliasing violations.
That would be a much larger change, if you mean a fix other than building
dfp.c and libdecnumber with -fno-strict-aliasing. All this code is full
of assumptions that the same memory can be accessed as several different
integer types, and I suppose it only works at present because it doesn't
use multiple types for the same memory within a single function.
--
Joseph S. Myers
joseph@codesourcery.com