[RESEND] [PATCH] Better vxWorks support in longlong.h

Torbjorn Granlund tg at swox.com
Fri Mar 19 01:47:54 CET 2004


Mark Haigh <mhaigh at sonicwall.com> writes:

  Here's a patch for better vxWorks support in longlong.h.  It fixes the FIXME
  for vxWorks PPC in there as well.
  
  The problem with the way longlong.h is currently set up is that the PPC
  macro is used to determine whether we're running on GNU/Linux or SysV.
  However, this usage is ambiguous because vxWorks always defines PPC,
  regardless of the actual target architecture.  When compiling under vxWorks,
  this causes longlong.h to unconditionally emit powerpc assembly, causing
  breakage on all non-PPC targets.

The GMP team works around a lot of bugs and weirdnesses on
various systems, but this weirdness strikes me as too much even
for us.  If VxWorks asks for PPC, they should get it.

Please report this problem to Windriver instead.

--
Torbjörn


More information about the gmp-bugs mailing list