NEON gas undefined symbol bug

Paul Brook paul@codesourcery.com
Fri Mar 28 18:14:00 GMT 2008


The ARM NEON instruction "vmov d0, d1" incorrectly causes the output file to 
contain an undefined symbol "d1".

parse_neon_mov checks for Dn, #imm before it checks for Dn, Dm.  The immediate 
parsing routine uses expression() via parse_big_immediate and my_get 
expression.  This routine also parses symbols, which remain even after 
parse_big_immediate rejects the expression.

The fix is to check for the register case first.

Applied to CVS head.

Paul

2008-03-28  Paul Brook  <paul@codesourcery.com>

	gas/
	* config/tc-arm.c (parse_neon_mov): Parse register before immediate
	to avoid spurious symbols.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.neon_sym
Type: text/x-diff
Size: 1699 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20080328/ce778cad/attachment.bin>


More information about the Binutils mailing list