]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
kvx gcc-4.5 build fixes
authorAlan Modra <amodra@gmail.com>
Tue, 10 Jun 2025 10:58:42 +0000 (20:28 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 10 Jun 2025 21:56:07 +0000 (07:26 +0930)
More missing struct initialisers, for expressionS vars that in this
case don't need to be initialised.  Also an error: redefinition of
typedef 'symbolS'.  OK, so don't use a typedef.

gas/config/kvx-parse.c
gas/config/tc-kvx.c
include/opcode/kvx.h

index 942eab33f95fe3fa047773ef0c3e4847219ac9e8..5995d62ded36b54bab4d9df66e97c32eec4d5e36 100644 (file)
@@ -409,7 +409,7 @@ promote_token (struct token_s tok)
          : tok.class_id;
       case CAT_IMMEDIATE:
        {
-         expressionS exp = { 0 };
+         expressionS exp;
          char *ilp_save = input_line_pointer;
          input_line_pointer = tok.insn + tok.begin;
          expression (&exp);
@@ -462,7 +462,7 @@ get_token_class (struct token_s *token, struct token_classes *classes, int insn_
   int found = 0;
   int tok_sz = token->end - token->begin;
   char *tok = token->insn + token->begin;
-  expressionS exp = {0};
+  expressionS exp;
 
   token->val = 0;
   int token_val_p = 0;
index c2045cd7c886d0cbd44462048b0b0906f2df32e5..558265084a69b9e8da5b7929d7fa539a32023e03 100644 (file)
@@ -509,7 +509,7 @@ insert_operand (struct kvxinsn *insn, struct kvx_operand *opdef,
       {
        char *ilp_save = input_line_pointer;
        input_line_pointer = tok->tok;
-       expressionS exp = { 0 };
+       expressionS exp;
        expression (&exp);
        input_line_pointer = ilp_save;
 
index aa51903d0e56da93cac67956c74b2df132cef8b5..9a3c39cdb63c35b479eb487b9ace69746da5b78a 100644 (file)
@@ -140,13 +140,13 @@ struct kvx_pseudo_relocs
   struct kvx_reloc *kreloc;
 };
 
-typedef struct symbol symbolS;
+struct symbol;
 
 struct pseudo_func
 {
   const char *name;
 
-  symbolS *sym;
+  struct symbol *sym;
   struct kvx_pseudo_relocs pseudo_relocs;
 };