------- Comment #1 from janis at gcc dot gnu dot org 2009-05-01 18:57 ------- The problem is that in dfp.c, functions encode_decimal* and decode_decimal* use memcpy from a 32-bit int to a long for 32 bits. This works fine with -32 where long is 32 bits, but not for -m64 where long is 32 bits. I assume that it magically works fine on little-endian systems like x86_64.
This is not a regression, just a horrible wrong-code bug. I'm testing a patch. -- janis at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bergner at gcc dot gnu dot | |org AssignedTo|unassigned at gcc dot gnu |janis at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-05-01 18:57:58 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39986