Buglet in last change

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Thu Mar 30 06:11:00 GMT 2000


Further testing showed one place missing:

Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.

*** expmed.c	2000/03/30 11:47:05	1.54
--- expmed.c	2000/03/30 14:08:09
*************** store_fixed_bit_field (op0, offset, bits
*** 647,651 ****
  
    if (! SLOW_UNALIGNED_ACCESS (word_mode, struct_align))
!     struct_align = BIGGEST_ALIGNMENT / BITS_PER_UNIT;
      
    /* There is a case not handled here:
--- 647,651 ----
  
    if (! SLOW_UNALIGNED_ACCESS (word_mode, struct_align))
!     struct_align = BIGGEST_ALIGNMENT;
      
    /* There is a case not handled here:
*************** store_fixed_bit_field (op0, offset, bits
*** 675,679 ****
  
        mode = get_best_mode (bitsize, bitpos + offset * BITS_PER_UNIT,
! 			    struct_align * BITS_PER_UNIT, word_mode,
  			    GET_CODE (op0) == MEM && MEM_VOLATILE_P (op0));
  
--- 675,679 ----
  
        mode = get_best_mode (bitsize, bitpos + offset * BITS_PER_UNIT,
! 			    struct_align, word_mode,
  			    GET_CODE (op0) == MEM && MEM_VOLATILE_P (op0));
  


More information about the Gcc-patches mailing list