binutils-gdb/gas/testsuite/gas/macros
Alan Modra 85024cd8bc Run write_object_file after errors
This is to fix unitialised memory access when printing listings.
Many targets don't initialise parts of insn frags or data frags that
have fixups, relying on md_apply_fix to finalise the frag.  Which is
fine normally, but means we need to run write_object_file after
errors, for listings.  Otherwise MALLOC_PERTURB_=1 causes errors like:
x86_64-linux  +FAIL: i386 mpx-inval-1
x86_64-linux  +FAIL: i386 inval-equ-1
x86_64-linux  +FAIL: i386 x86-64-mpx-inval-1

Running write_object_file after errors requires some tweaking to the
testsuite, since we then get extra errors reported from md_apply_fix.

gas/
	* write.h (subsegs_finish): Delete declaration.
	* write.c (subsegs_finish): Make static.
	(write_object_file): Call subsegs_finish from here.  Don't print
	warning and error count here..
	* as.c (main): ..do so here instead.  Remove dead code for "no
	object file generated".  Split out count strings to better support
	internationalisation.  Don't call subsegs_finish. Tidy setting of
	"keep_it".  Run write_object_file even after errors.
	(keep_it): Make static.
	* config/obj-elf.c (elf_frob_symbol): Remove assert.
	(elf_frob_file_before_adjust): Likewise.
gas/testsuite/
	* gas/elf/bad-group.s: Use %function.
	* gas/elf/bad-group.err: Expect correct line number.  Allow
	other errors.
	* gas/elf/bad-size.err: Allow other errors.  Match expected
	error somewhat more rigorously.
	* gas/i386/reloc32.l: Allow other errors.
	* gas/i386/mpx-inval-1.l: Match applied relocs.
	* gas/i386/x86-64-mpx-inval-1.l: Likewise, and nop padding.
	* gas/i386/x86-64-mpx-inval-2.l: Match nop padding, and allow
	other errors.
	* gas/macros/dot.s: Use .balign.
	* gas/macros/dot.l: Update alignment output.
	* gas/symver/symver6.l: Allow other errors.
2014-06-16 12:34:45 +09:30
..
altmacro.d
altmacro.s
and.s
app1.d
app1.s
app2.d
app2.s
app3.d
app3.s
app4.d
app4.s
app4b.s
badarg.l
badarg.s
dot.l Run write_object_file after errors 2014-06-16 12:34:45 +09:30
dot.s Run write_object_file after errors 2014-06-16 12:34:45 +09:30
end.l
end.s
err.s
exit.s
irp.d Add support for Andes NDS32: 2013-12-13 11:52:32 +00:00
irp.s
macros.exp Update copyright years 2014-03-05 22:16:15 +10:30
paren.d
paren.s
purge.l
purge.s
redef.l
redef.s
repeat.d
repeat.s
rept.d Add support for Andes NDS32: 2013-12-13 11:52:32 +00:00
rept.s
semi.d
semi.s
strings.d
strings.s
test1.d
test1.s
test2.d
test2.s
test3.d Add support for Andes NDS32: 2013-12-13 11:52:32 +00:00
test3.s
vararg.d
vararg.s