summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/gas/itbl-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/gas/itbl-ops.c')
-rw-r--r--contrib/binutils/gas/itbl-ops.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/binutils/gas/itbl-ops.c b/contrib/binutils/gas/itbl-ops.c
index d3650cd..d67a986 100644
--- a/contrib/binutils/gas/itbl-ops.c
+++ b/contrib/binutils/gas/itbl-ops.c
@@ -183,17 +183,18 @@ itbl_parse (char *insntbl)
{
extern FILE *yyin;
extern int yyparse (void);
- yyin = fopen (insntbl, "r");
+
+ yyin = fopen (insntbl, FOPEN_RT);
if (yyin == 0)
{
printf ("Can't open processor instruction specification file \"%s\"\n",
insntbl);
return 1;
}
- else
- {
- while (yyparse ());
- }
+
+ while (yyparse ())
+ ;
+
fclose (yyin);
itbl_have_entries = 1;
return 0;
@@ -506,7 +507,7 @@ itbl_assemble (char *name, char *s)
int processor;
if (!name || !*name)
- return 0; /* error! must have a opcode name/expr */
+ return 0; /* error! must have an opcode name/expr */
/* find entry in list of instructions for all processors */
for (processor = 0; processor < e_nprocs; processor++)
OpenPOWER on IntegriCloud