This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/78804] [RX] -m64bit-doubles does not work


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]