This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Java: hashtable synchronization for PowerPC



Bryce McKinlay writes:

> Look ok?

Sorry about the delay.

> Index: decl.c
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/java/decl.c,v
> ...
> +
> +  /* Hash synchronization requires at least double-word alignment. */
> +  if (flag_hash_synchronization && POINTER_SIZE < 64)
> +    TYPE_ALIGN (class_type_node) = 64;

I think this should be written: 

  if (flag_hash_synchronization && 
      POINTER_SIZE < 2 * BITS_PER_UNIT * UNITS_PER_WORD)
    TYPE_ALIGN (class_type_node ) = 2 * BITS_PER_UNIT * UNITS_PER_WORD;

./A


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]