[PATCH] Small vxWorks fixes for 3.3.3 branch (bug #13873)
Mark Haigh
mhaigh@sonicwall.com
Fri Mar 19 08:14:00 GMT 2004
2004-03-04 Mark F. Haigh <mfhaigh@acm.org>
* longlong.h: vxWorks-related fixes.
* config/rs6000/vxppc.h: Add __ppc_vxworks builtin define.
I took a cue from the alpha vxworks (__alpha_vxworks), and added
__ppc_vxworks as a builtin define in rs6000/vxppc.h. This allowed a
nice cleanup of gcc/longlong.h, and fixed a TODO in there in the process.
The crux of the problem is that vxWorks always defines the PPC macro,
and this conflicts with the GNU/Linux and SysV usage of PPC. The
solution here is to always undef PPC for vxWorks targets (so nobody is
confused), and use __ppc_vxworks for vxWorks-related stuff.
I think this is the best approach, but if there's a preferred way I did
not think of, let me know and I'll do it for you, no problem.
Thanks,
Mark F. Haigh
mfhaigh@acm.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vxWorks-fixes.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040319/68b96aa9/attachment.txt>
More information about the Gcc-patches
mailing list