[PING] PPC macro usage patch (PR 13873)

Mark Haigh mhaigh@sonicwall.com
Fri Mar 12 00:00:00 GMT 2004


[Originally sent to gmp-devel@swox.com and gmp-bugs@swox.com.  Are they 
still alive over there?  No responses, and my mails have not appeared in 
the archive.  Looking at it, the last release was several years ago, and 
they have not rolled up any of the numerous patches people have 
submitted into any cohesive release, and they don't say where their 
development tree is.  At any rate, the patch below is quite different 
than the one submitted here (gmp must remain backward compatible with 
old versions of gcc), but this should work for both gcc and gmp.  Can 
anybody direct this at the right person?]


Hello,

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 patch here is as minimal and uninvasive as possible.  I'm working 
with the gcc folks to get something that's acceptable to everyone, 
because currently gcc will not build for any non-PPC vxWorks platforms 
without a bit of manual hackery.

The patch is against the 4.1.2 release.  I would appreciate it's 
inclusion so I can get the vxWorks gcc builds working again.  If there's 
anything you would like done differently, please let me know.

Thanks,


Mark F. Haigh
mfhaigh@acm.org



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: longlong-vxworks.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040312/fea14135/attachment.txt>


More information about the Gcc-patches mailing list