* write.c (chain_frchains_together_1): Assert that this function
authorBen Elliston <bje@au.ibm.com>
Thu, 26 Oct 2006 00:17:49 +0000 (00:17 +0000)
committerBen Elliston <bje@au.ibm.com>
Thu, 26 Oct 2006 00:17:49 +0000 (00:17 +0000)
never returns a pointer to the auto variable `dummy'.

gas/ChangeLog
gas/write.c

index edfdd6658b6810ee48b576e4d2e5d4d35c4cab07..0a08ce946526b531054ad885bac08052fbeb37ae 100644 (file)
@@ -3,6 +3,9 @@
        * dw2gencfi.c (cfi_add_CFA_offset):
        Assert DWARF2_CIE_DATA_ALIGNMENT is non-zero.
 
+       * write.c (chain_frchains_together_1): Assert that this function
+       never returns a pointer to the auto variable `dummy'.
+
 2006-10-25  Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
            Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
            Nobuhisa Fujinami  <fnami@rd.scei.sony.co.jp>
index 66a05a530faf362c31f5d10f6fb64377d4c846e8..2b084e3a01f08d3ed0e4f205104305c3731184a7 100644 (file)
@@ -394,6 +394,7 @@ chain_frchains_together_1 (segT section, struct frchain *frchp)
        }
     }
   assert (prev_frag->fr_type != 0);
+  assert (prev_frag != &dummy);
   prev_frag->fr_next = 0;
   return prev_frag;
 }