Delete unused ldlang.h structs
authorAlan Modra <amodra@gmail.com>
Sat, 10 Aug 2019 03:05:20 +0000 (12:35 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 10 Aug 2019 07:46:16 +0000 (17:16 +0930)
* ldlang.h (lang_common_statement_type): Delete.
(lang_object_symbols_statement_type): Delete.
(union lang_statement_union): Remove common_statement and
object_symbols_statement.

ld/ChangeLog
ld/ldlang.h

index d4eb3fb..472d899 100644 (file)
@@ -1,5 +1,12 @@
 2019-08-10  Alan Modra  <amodra@gmail.com>
 
+       * ldlang.h (lang_common_statement_type): Delete.
+       (lang_object_symbols_statement_type): Delete.
+       (union lang_statement_union): Remove common_statement and
+       object_symbols_statement.
+
+2019-08-10  Alan Modra  <amodra@gmail.com>
+
        * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
        (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
        stat_alloc return value.
index 6d5fe73..8fbbbc2 100644 (file)
@@ -176,16 +176,6 @@ typedef struct lang_output_section_statement_struct
 typedef struct
 {
   lang_statement_header_type header;
-} lang_common_statement_type;
-
-typedef struct
-{
-  lang_statement_header_type header;
-} lang_object_symbols_statement_type;
-
-typedef struct
-{
-  lang_statement_header_type header;
   fill_type *fill;
   int size;
   asection *output_section;
@@ -429,8 +419,6 @@ typedef union lang_statement_union
   lang_target_statement_type target_statement;
   lang_output_statement_type output_statement;
   lang_input_section_type input_section;
-  lang_common_statement_type common_statement;
-  lang_object_symbols_statement_type object_symbols_statement;
   lang_fill_statement_type fill_statement;
   lang_padding_statement_type padding_statement;
   lang_group_statement_type group_statement;