On 06/21/2012 02:27 AM, Mike Stump wrote:
On Jun 20, 2012, at 12:36 PM, rbmj<r...@verizon.net> wrote:
My issue is that I'm uncomfortable with this, as it seems *too* easy.
I'd just be comfortable with a stake in the ground and press forward. I do
think this covers most all the cases.
With that in mind, then, here's a new patch over my original patch (i.e.
both are necessary). Let me know if this is what is needed or if I'm
still mistaken.
I also do not know how to run the test suite for the target system
(powerpc-wrs-vxworks). I would think some sort of powerpc simulator,
but I don't have a firmware image for VxWorks - just headers and
embedded hardware.
Modified:
*gcc/config.gcc: Set use_gcc_stdint to 'wrap' for
vxworks targets.
*fixincludes/inclhack.def (AAB_vxworks_stdint): add
#defines to make GCC aware of VxWorks stdint types
*fixincludes/fixincl.x: Regenerate
Robert Mason
>From 534222784011172403801a1617d67dba174c8441 Mon Sep 17 00:00:00 2001
From: rbmj <r...@verizon.net>
Date: Wed, 13 Jun 2012 11:24:01 -0400
Subject: [PATCH] Make GCC aware of VxWorks stdint types.
Modified:
*gcc/config.gcc: Set use_gcc_stdint to 'wrap' for
vxworks targets.
*fixincludes/inclhack.def (AAB_vxworks_stdint): add
#defines to make GCC aware of VxWorks stdint types
*fixincludes/fixincl.x: Regenerate
---
fixincludes/inclhack.def | 32 ++++++++++++++++++++++++++++++++
gcc/config.gcc | 1 +
2 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 063158c..d122b6d 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -434,6 +434,38 @@ fix = {
typedef unsigned int uint_fast16_t;
typedef uint32_t uint_fast32_t;
typedef uint64_t uint_fast64_t;
+
+ #define SIG_ATOMIC_TYPE "int"
+
+ #define INT8_TYPE "signed char"
+ #define INT16_TYPE "signed short"
+ #define INT32_TYPE "signed int"
+ #define INT64_TYPE "signed long long"
+ #define UINT8_TYPE "unsigned char"
+ #define UINT16_TYPE "unsigned short"
+ #define UINT32_TYPE "unsigned int"
+ #define UINT64_TYPE "unsigned long long"
+
+ #define INT_LEAST8_TYPE "signed char"
+ #define INT_LEAST16_TYPE "signed short"
+ #define INT_LEAST32_TYPE "signed int"
+ #define INT_LEAST64_TYPE "signed long long"
+ #define UINT_LEAST8_TYPE "unsigned char"
+ #define UINT_LEAST16_TYPE "unsigned short"
+ #define UINT_LEAST32_TYPE "unsigned int"
+ #define UINT_LEAST64_TYPE "unsigned long long"
+
+ #define INT_FAST8_TYPE "signed char"
+ #define INT_FAST16_TYPE "signed int"
+ #define INT_FAST32_TYPE "signed int"
+ #define INT_FAST64_TYPE "signed long long"
+ #define UINT_FAST8_TYPE "unsigned char"
+ #define UINT_FAST16_TYPE "unsigned int"
+ #define UINT_FAST32_TYPE "unsigned int"
+ #define UINT_FAST64_TYPE "unsigned long long"
+
+ #define INTPTR_TYPE "long"
+ #define UINTPTR_TYPE "unsigned long"
#endif
_EndOfHeader_;
};
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 7ec184c..11369d3 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -771,6 +771,7 @@ case ${target} in
fi
;;
*-*-vxworks*)
+ use_gcc_stdint=wrap
tmake_file=t-vxworks
xm_defines=POSIX
extra_options="${extra_options} vxworks.opt"
--
1.7.5.4