Commit 2d2af516 by Richard Kenner

(PRECOMPUTE_SELECTORS, struct soffset): Use #ifdef __sparc__, not

sparc.

From-SVN: r9821
parent 113166a6
/* Sparse Arrays for Objective C dispatch tables /* Sparse Arrays for Objective C dispatch tables
Copyright (C) 1993 Free Software Foundation, Inc. Copyright (C) 1993, 1995 Free Software Foundation, Inc.
Author: Kresten Krab Thorup Author: Kresten Krab Thorup
...@@ -51,7 +51,7 @@ extern int idxsize; ...@@ -51,7 +51,7 @@ extern int idxsize;
/* An unsigned integer of same size as a pointer */ /* An unsigned integer of same size as a pointer */
#define SIZET_BITS (sizeof(size_t)*8) #define SIZET_BITS (sizeof(size_t)*8)
#if defined(sparc) || defined(OBJC_SPARSE2) #if defined(__sparc__) || defined(OBJC_SPARSE2)
#define PRECOMPUTE_SELECTORS #define PRECOMPUTE_SELECTORS
#endif #endif
...@@ -89,7 +89,7 @@ struct soffset { ...@@ -89,7 +89,7 @@ struct soffset {
unsigned int boffset : SIZET_BITS/4; unsigned int boffset : SIZET_BITS/4;
unsigned int ioffset : SIZET_BITS/4; unsigned int ioffset : SIZET_BITS/4;
#else /* OBJC_SPARSE2 */ #else /* OBJC_SPARSE2 */
#ifdef sparc #ifdef __sparc__
unsigned int boffset : (SIZET_BITS - 2) - BUCKET_BITS; unsigned int boffset : (SIZET_BITS - 2) - BUCKET_BITS;
unsigned int eoffset : BUCKET_BITS; unsigned int eoffset : BUCKET_BITS;
unsigned int unused : 2; unsigned int unused : 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment