This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/78804] [RX] -m64bit-doubles does not work
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Aug 2017 16:51:57 +0000
- Subject: [Bug target/78804] [RX] -m64bit-doubles does not work
- Auto-submitted: auto-generated
- References: <bug-78804-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78804
--- Comment #15 from Ian Lance Taylor <ian at airs dot com> ---
What does this program print on rx?
#include <stdio.h>
struct bits
{
unsigned long long fraction:52 __attribute__ ((packed));
unsigned int exp:11 __attribute__ ((packed));
unsigned int sign:1 __attribute__ ((packed));
};
double d = 1.0;
int
main ()
{
struct bits *p;
printf ("%zu\n", sizeof (struct bits));
p = (struct bits *)&d;
printf ("%llx %x %x\n", (unsigned long long) p->fraction, p->exp, p->sign);
return 0;
}
Overall the softfp code is newer and probably better. Converting rx to use the
softfp code is probably a good idea.