mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user