aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-10-14 09:15:09 +0000
committerNick Clifton <nickc@redhat.com>2013-10-14 09:15:09 +0000
commitb2e951ec58973b911515b0770ef859cf9b779533 (patch)
tree1ff43aa3d9c21b43d814854de29f9fed0a19d9ff /gas/config
parentbb5ce47a22881c8f925459d4622a2126d6a6a751 (diff)
downloadgdb-b2e951ec58973b911515b0770ef859cf9b779533.zip
gdb-b2e951ec58973b911515b0770ef859cf9b779533.tar.gz
gdb-b2e951ec58973b911515b0770ef859cf9b779533.tar.bz2
* gen-aout.c (main): Fix formatting. Close file.
* emultempl/aix.em (_read_file): Close file at end of function. * gas/all/itbl-test.c (main): Close fas. * read.c (add_include_dir): Use xrealloc. * config/tc-score.c (do_macro_bcmp): Initialise inst_main. * config/tc-tic6x.c (tic6x_parse_operand): Initialise second_reg. * readelf.c (decode_arm_unwind): Initialise addr structure. (process_symbol_table): Free lengths. * srcconv.c (wr_sc): Free info. * chew.c (perform): Free next.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-score.c2
-rw-r--r--gas/config/tc-tic6x.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-score.c b/gas/config/tc-score.c
index 822b9cf..2bb3fbe 100644
--- a/gas/config/tc-score.c
+++ b/gas/config/tc-score.c
@@ -4489,7 +4489,7 @@ s3_do_macro_bcmp (char *str)
char* ptemp;
int i = 0;
struct s3_score_it inst_expand[2];
- struct s3_score_it inst_main;
+ struct s3_score_it inst_main = { 0 };
memset (inst_expand, 0, sizeof inst_expand);
s3_skip_whitespace (str);
diff --git a/gas/config/tc-tic6x.c b/gas/config/tc-tic6x.c
index 81f33f4..fda9cd3 100644
--- a/gas/config/tc-tic6x.c
+++ b/gas/config/tc-tic6x.c
@@ -1596,7 +1596,7 @@ tic6x_parse_operand (char **p, tic6x_operand *op, unsigned int op_forms,
/* See if this looks like a register or register pair. */
if (!operand_parsed && (op_forms & (TIC6X_OP_REG | TIC6X_OP_REGPAIR)))
{
- tic6x_register first_reg, second_reg;
+ tic6x_register first_reg, second_reg = { 0 };
bfd_boolean reg_ok;
char *rq = q;