aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2005-06-03 03:29:59 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2005-06-03 03:29:59 +0000
commitef4048012afe7700c9d69660cae7f63fcfa5ee2c (patch)
tree0dbc4d92aa8489a50fb974e9a3ea2ad95327bde8
parentf260e61b15c6fe09294fd820b334752d0f0459ab (diff)
downloadsrc-ef4048012afe7700c9d69660cae7f63fcfa5ee2c.tar.gz
src-ef4048012afe7700c9d69660cae7f63fcfa5ee2c.zip
Gcc 3.4.4 Objective C support bits.
Notes
Notes: svn path=/vendor/gcc/dist/; revision=146899
-rw-r--r--contrib/libobjc/ChangeLog20
-rw-r--r--contrib/libobjc/gc.c15
2 files changed, 23 insertions, 12 deletions
diff --git a/contrib/libobjc/ChangeLog b/contrib/libobjc/ChangeLog
index ba61c0315a58..97167208d60a 100644
--- a/contrib/libobjc/ChangeLog
+++ b/contrib/libobjc/ChangeLog
@@ -1,3 +1,23 @@
+2005-05-19 Release Manager
+
+ * GCC 3.4.4 released.
+
+2004-12-20 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR libobjc/12035
+ * gc.c: Remove definition of LOGWL, modWORDSZ, and divWORDSZ since
+ they are not used.
+ Include limits.h and stdlib.h.
+ Define BITS_PER_WORD.
+
+2004-11-04 Release Manager
+
+ * GCC 3.4.3 released.
+
+2004-09-06 Release Manager
+
+ * GCC 3.4.2 released.
+
2004-07-01 Release Manager
* GCC 3.4.1 released.
diff --git a/contrib/libobjc/gc.c b/contrib/libobjc/gc.c
index 8f13dbc33ca6..66aa78a32ee9 100644
--- a/contrib/libobjc/gc.c
+++ b/contrib/libobjc/gc.c
@@ -31,26 +31,17 @@ Boston, MA 02111-1307, USA. */
#include <assert.h>
#include <string.h>
+#include <stdlib.h>
#if OBJC_WITH_GC
#include <gc.h>
+#include <limits.h>
/* gc_typed.h uses the following but doesn't declare them */
typedef GC_word word;
typedef GC_signed_word signed_word;
-
-#if BITS_PER_WORD == 32
-# define LOGWL 5
-# define modWORDSZ(n) ((n) & 0x1f) /* n mod size of word */
-#endif
-
-#if BITS_PER_WORD == 64
-# define LOGWL 6
-# define modWORDSZ(n) ((n) & 0x3f) /* n mod size of word */
-#endif
-
-#define divWORDSZ(n) ((n) >> LOGWL) /* divide n by size of word */
+#define BITS_PER_WORD (CHAR_BIT * sizeof (word))
#include <gc_typed.h>