Mercurial > hg > index.cgi
changeset 403:f5a88f147fae
Update "as" wrapper for gcc6809 to use new source format
Enable pragma newsource for the "as" wrapper in extra/ to allow
preprocessed asm to work as expected with macro expansions.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 15 Oct 2015 20:20:20 -0600 |
parents | b20f14edda5a |
children | f6e03c2cebfb |
files | extra/as |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/as Wed Oct 14 20:49:41 2015 -0600 +++ b/extra/as Thu Oct 15 20:20:20 2015 -0600 @@ -126,7 +126,9 @@ # --pragma=undefextern causes undefined symbols to be assumed external # --pragma=cescapes allows C escape syntax in strings #echo lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes $input_file -lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes --pragma=importundefexport $input_file +# pragma=newsource allows preprocessed asm files with macro expansion to assemble properly even +# when the preprocessor interproses extra spaces +lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes --pragma=importundefexport --pragma=newsource $input_file rc=$? # OK, see if the assembler succeeded or not.