[RFA] Add missing call to bfd_set_arch_mach to tc-lm32.c
Doug Evans
dje@sebabeach.org
Mon Oct 19 03:53:00 GMT 2009
Hi.
While testing the lm32 port before checking in changes to the
cgen-generated files I found several failures, apparently
all due to a missing call to bfd_set_arch_mach.
Before:
=== gas Summary ===
# of expected passes 27
# of unexpected failures 78
and after:
=== gas Summary ===
# of expected passes 108
Ok to check in?
2009-10-18 Doug Evans <dje@sebabeach.org>
* config/tc-lm32.c (md_begin): Add missing call to bfd_set_arch_mach.
Index: config/tc-lm32.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-lm32.c,v
retrieving revision 1.1
diff -u -p -r1.1 tc-lm32.c
--- config/tc-lm32.c 23 Dec 2008 19:10:20 -0000 1.1
+++ config/tc-lm32.c 19 Oct 2009 03:34:04 -0000
@@ -193,6 +193,9 @@ md_begin (void)
/* This is a callback from cgen to gas to parse operands. */
cgen_set_parse_operand_fn (gas_cgen_cpu_desc, gas_cgen_parse_operand);
+
+ if (! bfd_set_arch_mach (stdoutput, bfd_arch_lm32, bfd_mach_lm32))
+ as_warn (_("could not set architecture and machine"));
}
/* Turn an integer of n bytes (in val) into a stream of bytes appropriate
More information about the Binutils
mailing list