* [RFC]sim/common/sim-types.h multiple defines defines?
@ 2005-03-29 23:43 Manoj Iyer
0 siblings, 0 replies; only message in thread
From: Manoj Iyer @ 2005-03-29 23:43 UTC (permalink / raw)
To: gdb-patches
I notice in src/sim/common/sim-types.h there are multiple defines of
unsigned32 and unsigned64. I think it was intended to be signed32 and
signed64. Or am I wrong? Also, why does not gcc generate an error
message/warning for this?
The XLC compiler on AIX reports this as an error. Here is a patch that
shows what I think should be the right definitions...
--- ./sim-types.h 2005-03-29 17:18:40.000000000 -0600
+++ ./new/sim-types.h 2005-03-29 17:19:13.000000000 -0600
@@ -112,11 +112,11 @@ typedef struct { signed64 a[2]; } signed
typedef signed char signed8;
typedef signed short signed16;
#if defined (__ALPHA__)
-typedef signed int unsigned32;
-typedef signed long unsigned64;
+typedef signed int signed32;
+typedef signed long signed64;
#else
-typedef signed long unsigned32;
-typedef signed long long unsigned64;
+typedef signed long signed32;
+typedef signed long long signed64;
#endif
typedef unsigned char unsigned8;
-----
manjo
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Cogito ergo sum +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-29 23:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-29 23:43 [RFC]sim/common/sim-types.h multiple defines defines? Manoj Iyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox