binutils-gdb/gas/testsuite/gas
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
..
aarch64 Enable verbose error messages by default for AArch64 gas. 2014-03-18 17:41:43 +00:00
all Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
alpha Update copyright years 2014-03-05 22:16:15 +10:30
arc Update copyright years 2014-03-05 22:16:15 +10:30
arm gas/arm: Fix gas tests to run on armeb-linux-eabi 2014-04-23 13:55:20 +01:00
avr bfd/ChangeLog 2014-04-10 19:50:33 +04:00
bfin Update copyright years 2014-03-05 22:16:15 +10:30
cfi Add support for parsing VFP register names in .cfi_offset directives. 2014-03-17 16:30:30 +00:00
cr16 Update copyright years 2014-03-05 22:16:15 +10:30
cris Fix uninitialised CRIS insn 2014-06-16 12:23:54 +09:30
crx Update copyright years 2014-03-05 22:16:15 +10:30
d10v Update copyright years 2014-03-05 22:16:15 +10:30
d30v Fix whitespace in gas listing errors and warnings 2014-05-22 18:53:22 +09:30
dlx Update copyright years 2014-03-05 22:16:15 +10:30
elf Run write_object_file after errors 2014-06-16 12:34:45 +09:30
epiphany Update copyright years 2014-03-05 22:16:15 +10:30
fr30 Update copyright years 2014-03-05 22:16:15 +10:30
frv Update copyright years 2014-03-05 22:16:15 +10:30
h8300 Update copyright years 2014-03-05 22:16:15 +10:30
hppa Update copyright years 2014-03-05 22:16:15 +10:30
i386 Run write_object_file after errors 2014-06-16 12:34:45 +09:30
i860 Update copyright years 2014-03-05 22:16:15 +10:30
ia64 Update copyright years 2014-03-05 22:16:15 +10:30
ieee-fp Update copyright years 2014-03-05 22:16:15 +10:30
iq2000 Update copyright years 2014-03-05 22:16:15 +10:30
lm32 Update copyright years 2014-03-05 22:16:15 +10:30
lns Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
m32r Update copyright years 2014-03-05 22:16:15 +10:30
m68hc11 Update copyright years 2014-03-05 22:16:15 +10:30
m68k Update copyright years 2014-03-05 22:16:15 +10:30
m68k-coff Update copyright years 2014-03-05 22:16:15 +10:30
mach-o Update copyright years 2014-03-05 22:16:15 +10:30
macros Run write_object_file after errors 2014-06-16 12:34:45 +09:30
mcore Update copyright years 2014-03-05 22:16:15 +10:30
mep Update copyright years 2014-03-05 22:16:15 +10:30
metag Update copyright years 2014-03-05 22:16:15 +10:30
microblaze Update copyright years 2014-03-05 22:16:15 +10:30
mips Add MIPS .module directive 2014-05-20 23:46:43 +01:00
mmix Update copyright years 2014-03-05 22:16:15 +10:30
mn10200 Update copyright years 2014-03-05 22:16:15 +10:30
mn10300 Update copyright years 2014-03-05 22:16:15 +10:30
mri Update copyright years 2014-03-05 22:16:15 +10:30
msp430 Update expected disassembly of MSP430X instructions now that the disassembler 2014-06-09 15:09:02 +01:00
mt Update copyright years 2014-03-05 22:16:15 +10:30
nds32 Update copyright years 2014-03-05 22:16:15 +10:30
nios2 Fix Nios II assembler self-test mode. 2014-04-22 10:56:02 -07:00
or1k Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pdp11 Update copyright years 2014-03-05 22:16:15 +10:30
pe Add pe/x86_64 bigobj file format. 2014-03-13 09:33:07 +01:00
pj Update copyright years 2014-03-05 22:16:15 +10:30
ppc Update copyright years 2014-03-05 22:16:15 +10:30
rx Fix RX gas testsuite failures by accounting for new variations in the disassembler's output. 2014-03-19 09:38:25 +00:00
s390 opcodes/ 2013-09-17 09:02:37 +00:00
score Update copyright years 2014-03-05 22:16:15 +10:30
sh Update copyright years 2014-03-05 22:16:15 +10:30
sparc This patch adds support for the hyperprivileged registers %hstick_offset 2014-03-19 16:43:41 +00:00
sparc-solaris Update copyright years 2014-03-05 22:16:15 +10:30
sun4 Update copyright years 2014-03-05 22:16:15 +10:30
symver Run write_object_file after errors 2014-06-16 12:34:45 +09:30
tic4x Update copyright years 2014-03-05 22:16:15 +10:30
tic6x Update copyright years 2014-03-05 22:16:15 +10:30
tic54x Update copyright years 2014-03-05 22:16:15 +10:30
tilegx Update copyright years 2014-03-05 22:16:15 +10:30
tilepro Update copyright years 2014-03-05 22:16:15 +10:30
v850 Update copyright years 2014-03-05 22:16:15 +10:30
vax Fix uninitialised VAX insn 2014-06-16 12:29:52 +09:30
xc16x Update copyright years 2014-03-05 22:16:15 +10:30
xgate Update copyright years 2014-03-05 22:16:15 +10:30
xstormy16 Update copyright years 2014-03-05 22:16:15 +10:30
xtensa Fix alignment for the first section frag on xtensa 2014-04-22 22:53:49 +04:00
z8k Update copyright years 2014-03-05 22:16:15 +10:30
z80 Update copyright years 2014-03-05 22:16:15 +10:30
template