This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFA] Add missing call to bfd_set_arch_mach to tc-lm32.c
- From: Doug Evans <dje at sebabeach dot org>
- To: binutils at sourceware dot org, jon at beniston dot com
- Date: Sun, 18 Oct 2009 20:53:09 -0700 (PDT)
- Subject: [RFA] Add missing call to bfd_set_arch_mach to tc-lm32.c
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