[binutils-gdb] kvx gcc-4.5 build fixes
Alan Modra
amodra@sourceware.org
Tue Jun 10 22:05:57 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=04b475ac467a2af500a942c36ef122138f13d3a7
commit 04b475ac467a2af500a942c36ef122138f13d3a7
Author: Alan Modra <amodra@gmail.com>
Date: Tue Jun 10 20:28:42 2025 +0930
kvx gcc-4.5 build fixes
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.
Diff:
---
gas/config/kvx-parse.c | 4 ++--
gas/config/tc-kvx.c | 2 +-
include/opcode/kvx.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gas/config/kvx-parse.c b/gas/config/kvx-parse.c
index 942eab33f95..5995d62ded3 100644
--- a/gas/config/kvx-parse.c
+++ b/gas/config/kvx-parse.c
@@ -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;
diff --git a/gas/config/tc-kvx.c b/gas/config/tc-kvx.c
index c2045cd7c88..558265084a6 100644
--- a/gas/config/tc-kvx.c
+++ b/gas/config/tc-kvx.c
@@ -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;
diff --git a/include/opcode/kvx.h b/include/opcode/kvx.h
index aa51903d0e5..9a3c39cdb63 100644
--- a/include/opcode/kvx.h
+++ b/include/opcode/kvx.h
@@ -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;
};
More information about the Binutils-cvs
mailing list