]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sarray.c (sarray_free): Use old_buckets variable.
authorJakub Jelinek <jakub@redhat.com>
Sat, 28 Nov 2009 20:31:39 +0000 (21:31 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 28 Nov 2009 20:31:39 +0000 (21:31 +0100)
* sarray.c (sarray_free): Use old_buckets variable.
* encoding.c (objc_layout_structure_next_member): Remove unused
bfld_type_size variable.

* decContext.c (decContextTestEndian): Move adj definition into
#if DECCHECK guarded code.

From-SVN: r154730

libdecnumber/ChangeLog
libdecnumber/decContext.c
libobjc/ChangeLog
libobjc/encoding.c
libobjc/sarray.c

index b64e561a0cc3f1fb4f1336b617ce6151c4551f15..88df3a4d84be9786a2f2bf8220dce0de946ddd2a 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * decContext.c (decContextTestEndian): Move adj definition into
+       #if DECCHECK guarded code.
+
 2009-09-09  Paolo Bonzini  <bonzini@gnu.org>
 
        * configure: Regenerate.
index 1756dcb2522f10ed9efe468a4a0e8f7f8c84509e..aa8195928e4355d2ebf485e7066bc6233c8b519b 100644 (file)
@@ -393,11 +393,11 @@ Int decContextTestEndian(Flag quiet) {
   if (dle>1) dle=1;          /* ensure 0 or 1 */
 
   if (LITEND!=DECLITEND) {
-    const char *adj;
     if (!quiet) {
+#if DECCHECK
+      const char *adj;
       if (LITEND) adj="little";
             else adj="big";
-#if DECCHECK
       printf("Warning: DECLITEND is set to %d, but this computer appears to be %s-endian\n",
             DECLITEND, adj);
 #endif
index bc4d60abb962c040541c4fba5c54669dddc56f67..4c374d9690d61dc547898608782c67920c8fbb14 100644 (file)
@@ -1,3 +1,9 @@
+2009-11-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * sarray.c (sarray_free): Use old_buckets variable.
+       * encoding.c (objc_layout_structure_next_member): Remove unused
+       bfld_type_size variable.
+
 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * configure.ac (AC_PREREQ): Bump to 2.64.
index d2a8a4d300e3772765831994bee200eae955acf9..4ae29a769c110db48e3b933dbd161414b2e74030 100644 (file)
@@ -904,7 +904,7 @@ objc_layout_structure_next_member (struct objc_struct_layout *layout)
 
   /* The following are used only if the field is a bitfield */
   register const char *bfld_type = 0;
-  register int bfld_type_size, bfld_type_align = 0, bfld_field_size = 0;
+  register int bfld_type_align = 0, bfld_field_size = 0;
 
   /* The current type without the type qualifiers */
   const char *type;
@@ -927,7 +927,6 @@ objc_layout_structure_next_member (struct objc_struct_layout *layout)
              bfld_type++)
           /* do nothing */;
 
-        bfld_type_size = objc_sizeof_type (bfld_type) * BITS_PER_UNIT;
         bfld_type_align = objc_alignof_type (bfld_type) * BITS_PER_UNIT;
         bfld_field_size = atoi (objc_skip_typespec (bfld_type));
         layout->record_size += bfld_field_size;
@@ -958,7 +957,6 @@ objc_layout_structure_next_member (struct objc_struct_layout *layout)
            bfld_type++)
         /* do nothing */;
 
-      bfld_type_size = objc_sizeof_type (bfld_type) * BITS_PER_UNIT;
       bfld_type_align = objc_alignof_type (bfld_type) * BITS_PER_UNIT;
       bfld_field_size = atoi (objc_skip_typespec (bfld_type));
     }
index 147fd43335b79ecb0c5583c044a1c9cbcb34e454..bb80ae03ec363b703ffb8839f2c45c3e8ecced0d 100644 (file)
@@ -422,7 +422,7 @@ sarray_free (struct sarray *array) {
       nindices -= 1;
     }
 #else /* OBJC_SPARSE2 */
-    struct sbucket *bkt = array->buckets[counter];
+    struct sbucket *bkt = old_buckets[counter];
     if ((bkt != array->empty_bucket) &&
        (bkt->version.version == array->version.version))
       {