* ldlang.c (insert_pad): Fix typos in last patch.
authorAlan Modra <amodra@gmail.com>
Mon, 20 Aug 2001 03:09:07 +0000 (03:09 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 20 Aug 2001 03:09:07 +0000 (03:09 +0000)
ld/ChangeLog
ld/ldlang.c

index 3c53837d17fdfdcd0ac009d7db7bb6cb980355d6..4af9b0775d927338327211296a5e98bea9b47261 100644 (file)
@@ -1,5 +1,15 @@
 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
 
+       * ldlang.c (insert_pad): Fix typos in last patch.
+
+       * ldlang.c: When traversing lang_statement_union_type lists,
+       consistently use "header.next" rather than "next".
+       * mpw-eppcmac.c: Likewise.
+       * emultempl/beos.em: Likewise.
+       * emultempl/hppaelf.em: Likewise.
+       * emultempl/pe.em: Likewise.
+       * ldlang.h (union lang_statement_union): Remove "next" field.
+
        * ldlang.c (insert_pad): Use offsetof macro.
        (lang_size_sections): Always neuter padding statements.
        * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
index 03a79b806a4a6655773283bb6ba2a6921b9290e3..30de02bb2179714a91f67e2f5671d8636e964dd1 100644 (file)
@@ -2637,9 +2637,9 @@ insert_pad (ptr, fill, alignment_needed, output_section, dot)
   lang_statement_union_type *pad;
 
   pad = ((lang_statement_union_type *)
-        ((char *) ptr - offsetof (lang_statement_union_type *, header.next)));
+        ((char *) ptr - offsetof (lang_statement_union_type, header.next)));
   if (ptr != &statement_list.head
-      && pad->header.type == lang_padding_statement_enum)
+      && pad->header.type == lang_padding_statement_enum
       && pad->padding_statement.output_section == output_section)
     {
       /* Use the existing pad statement.  The above test on output
This page took 0.04826 seconds and 4 git commands to generate.