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.
This commit is contained in:
Alan Modra
2025-06-10 20:28:42 +09:30
parent a9e9e4ac91
commit 04b475ac46
3 changed files with 5 additions and 5 deletions

View 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;

View 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;

View 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;
};