This is the mail archive of the gcc-patches@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]

[arm,vxworks]: neon patch


I've applied this obvious patch of Richard's for a vxworks issue. Richard developed this when at CodeSourcery, and auditing our sources indicated it never made it upstream (possibly because neon hadn't gone upstream at that time).

Richard, if you think it inappropriate to have your now-defunct csl email address attached to this, please change the changelog entry as you see fit.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

2009-05-26  Richard Sandiford  <richard@codesourcery.com>

	* config/arm/neon-gen.ml: Include vxWorks.h rather than stdint.h
	for VxWorks kernels.
	* config/arm/arm_neon.h: Regenerate.

Index: config/arm/arm_neon.h
===================================================================
--- config/arm/arm_neon.h	(revision 147795)
+++ config/arm/arm_neon.h	(working copy)
@@ -36,7 +36,11 @@
 extern "C" {
 #endif
 
+#if defined (__vxworks) && defined (_WRS_KERNEL)
+#include <vxWorks.h>
+#else
 #include <stdint.h>
+#endif
 
 typedef __builtin_neon_qi int8x8_t	__attribute__ ((__vector_size__ (8)));
 typedef __builtin_neon_hi int16x4_t	__attribute__ ((__vector_size__ (8)));
Index: config/arm/neon-gen.ml
===================================================================
--- config/arm/neon-gen.ml	(revision 147795)
+++ config/arm/neon-gen.ml	(working copy)
@@ -399,7 +399,11 @@ let _ =
 "extern \"C\" {";
 "#endif";
 "";
+"#if defined (__vxworks) && defined (_WRS_KERNEL)";
+"#include <vxWorks.h>";
+"#else";
 "#include <stdint.h>";
+"#endif";
 ""];
   deftypes ();
   arrtypes ();

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