This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi, The test harness for the sim/testsuite/sim/<target> testsuite was correctly iterating through all of the requested machines, but was not passing this information to the assembler. As a result, the tests were really just running repeatedly for the default machine. This patch passes the machine information to the assembler using the -mcpu option. This information is then passed on to the linker and simulator via the obect file. I know that all assemblers do not have the -mcpu option, but the two targets using this framework (FR30 and m32r) both support it. Anyone have a better idea? If not, is this ok to commit? Dave
2000-05-18 Dave Brolley <brolley@redhat.com> * lib/sim-defs.exp (run_sim_test): Pass machine name to the assembler.
Index: sim/testsuite/lib/sim-defs.exp =================================================================== RCS file: /cvs/cvsfiles/devo/sim/testsuite/lib/sim-defs.exp,v retrieving revision 1.15 diff -c -p -r1.15 sim-defs.exp *** sim-defs.exp 2000/03/02 09:30:39 1.15 --- sim-defs.exp 2000/05/18 17:48:38 *************** proc run_sim_test { name requested_machs *** 231,237 **** set opts(as,$mach) $opts(as) } ! set comp_output [target_assemble $sourcefile ${name}.o "$opts(as,$mach) -I$srcdir/$subdir"] if ![string match "" $comp_output] { verbose -log "$comp_output" 3 --- 231,237 ---- set opts(as,$mach) $opts(as) } ! set comp_output [target_assemble $sourcefile ${name}.o "-mcpu=$mach $opts(as,$mach) -I$srcdir/$subdir"] if ![string match "" $comp_output] { verbose -log "$comp_output" 3
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |