Test case: --- .section .text .altmacro .macro macro2 LOCAL LC1 LOCAL LC2 LOCAL LCM LC1: tst r2, r3 LCM: tst r1, r2 LC2: tst r0, r0 .endm .macro macro1 LOCAL LC1 LOCAL LC2 LOCAL LCM LC1: tst r2, r2 LCM: tst r0, r0 LC2: tst r1, r1 .endm .global _test_addc _test_addc: test_addc_1: macro1 macro1 macro1 macro2 macro1 macro2 macro2 macro1 rts --- Generates the following error output with binutils 2.17 through CVS head: ./test.s: Assembler messages: ./test.s:15: Error: `LC2' was already used as parameter (or another local) name ./test.s:33: Error: symbol `.LL0017' is already defined Last worked correctly in 2.16. Also tested (with the same results) built/hosted on i686-apple-darwin9.
This bug affects all targets, not just SH.
http://sourceware.org/ml/binutils-cvs/2008-08/msg00069.html http://sourceware.org/ml/binutils-cvs/2008-08/msg00073.html