zlaski      02/08/09 13:06:10

  Modified:    gcc      stor-layout.c
  Log:
  Remove dependency on compiling_objc.
  Submitted by: zlaski
  Reviewed by: dpatel
  
  Revision  Changes    Path
  1.30      +0 -11     gcc3/gcc/stor-layout.c
  
  Index: stor-layout.c
  ===================================================================
  RCS file: /cvs/Darwin/gcc3/gcc/stor-layout.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- stor-layout.c     2002/08/02 10:05:34     1.29
  +++ stor-layout.c     2002/08/09 20:06:09     1.30
  @@ -74,9 +74,6 @@
   /* Show that REFERENCE_TYPES are internal and should be Pmode.  Called only
      by front end.  */
   
  -/* APPLE LOCAL bitfield alignment */
  -extern int compiling_objc;
  -
   /* APPLE LOCAL begin Macintosh alignment 2002-5-24 ff  */
   /* Keep track of whether we are laying out the first declared member
      of a C++ class.  We need this flag to handle the case of classes
  @@ -442,19 +439,11 @@
                                   DECL_ALIGN (decl));
          DECL_MODE (decl) = xmode;
          /* APPLE LOCAL bitfield alignment */
  -       if (!compiling_objc)
  -         DECL_BIT_FIELD (decl) = 0;
        }
       }
   
     /* Turn off DECL_BIT_FIELD if we won't need it set.  */
     /* APPLE LOCAL bitfield alignment */
  -  if (code == FIELD_DECL && DECL_BIT_FIELD (decl) && !compiling_objc
  -      && TYPE_MODE (type) == BLKmode && DECL_MODE (decl) == BLKmode
  -      && known_align >= TYPE_ALIGN (type)
  -      && DECL_ALIGN (decl) >= TYPE_ALIGN (type)
  -      && DECL_SIZE_UNIT (decl) != 0)
  -    DECL_BIT_FIELD (decl) = 0;
   
     /* Evaluate nonconstant size only once, either now or as soon as safe.  */
     if (DECL_SIZE (decl) != 0 && TREE_CODE (DECL_SIZE (decl)) != INTEGER_CST)
  
  
  


Reply via email to