Mercurial > hg > index.cgi
comparison extra/as @ 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 | 84eb35251849 |
children | c41d72a58ef6 |
comparison
equal
deleted
inserted
replaced
402:b20f14edda5a | 403:f5a88f147fae |
---|---|
124 # The -o option specifies the output file name | 124 # The -o option specifies the output file name |
125 # --obj creates object files | 125 # --obj creates object files |
126 # --pragma=undefextern causes undefined symbols to be assumed external | 126 # --pragma=undefextern causes undefined symbols to be assumed external |
127 # --pragma=cescapes allows C escape syntax in strings | 127 # --pragma=cescapes allows C escape syntax in strings |
128 #echo lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes $input_file | 128 #echo lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes $input_file |
129 lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes --pragma=importundefexport $input_file | 129 # pragma=newsource allows preprocessed asm files with macro expansion to assemble properly even |
130 # when the preprocessor interproses extra spaces | |
131 lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes --pragma=importundefexport --pragma=newsource $input_file | |
130 rc=$? | 132 rc=$? |
131 | 133 |
132 # OK, see if the assembler succeeded or not. | 134 # OK, see if the assembler succeeded or not. |
133 # If it failed, the source is copied to /tmp/as6809_error.s | 135 # If it failed, the source is copied to /tmp/as6809_error.s |
134 # so that it can be inspected. GCC will normally delete any | 136 # so that it can be inspected. GCC will normally delete any |