------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-20 21:55 ------- I think there is a better patch: Index: gc.c =============================================================== ==== RCS file: /cvs/gcc/gcc/libobjc/gc.c,v retrieving revision 1.6 diff -u -p -r1.6 gc.c --- gc.c 23 May 2003 20:04:58 -0000 1.6 +++ gc.c 20 Dec 2004 21:51:20 -0000 @@ -40,18 +40,6 @@ Boston, MA 02111-1307, USA. */ 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 */ - #include <gc_typed.h> /* The following functions set up in `mask` the corresponding pointers.
Which just removes the use of BITS_PER_WORD which are not used anywhere else. -- What |Removed |Added ---------------------------------------------------------------------------- Summary|Patch for libobjc/gc.c that |[3.4/4.0 Regression] Patch |fixes compilation error of |for libobjc/gc.c that fixes |Objective-C with garbage |compilation error of |collector enabled |Objective-C with garbage | |collector enabled Target Milestone|--- |3.4.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12035