Kingcom / armips

An assembler for various ARM and MIPS platforms. Builds available at http://buildbot.orphis.net/armips/
MIT License
363 stars 77 forks source link

Duplicate errors/wrong line numbers in macros #106

Closed Prof9 closed 7 years ago

Prof9 commented 7 years ago
// empty line
.macro .test
    .notice readu32("doesntexist.bin")
.endmacro
// empty line
.test
.test

Produces the following three error messages:

test.asm(7) error: Could not open 001A6948
test.asm(7) error: Could not open 001A6600
test.asm(5) error: Could not open 001A6830

Even though the macro is only being called twice. Additionally, the line number for the error message is wrong; line 5 is an empty line, line 7 is the second .test call which makes sense (although it would be nicer to have the line number inside the macro, imo) but there is no corresponding error message for the first .test call on line 6.