------- Comment #4 from mf dot danger at gmail dot com 2006-04-21 20:30 ------- Perhaps a precise example would make this clearer.
I have a human-written thumb assembler file. (see attached) I attempt to assemble it using arm-elf-gcc -v -g -mthumb -c -o bdidown.o bdidown.S The following appears in the '-v' output: /usr/local/armdev-3.4.3/lib/gcc/arm-elf/3.4.3/../../../../arm-elf/bin/as --gdwarf2 -o bdidown.o /tmp/ccBSZyCm.s Note that the -mthumb option is not passed to the assembler. Further, if you run arm-elf-objdump -d bdidown.o you can see from this fragment 0: e10f0000 mrs r0, CPSR 4: e3c00000 bic r0, r0, #0 ; 0x0 8: e38000d3 orr r0, r0, #211 ; 0xd3 c: e129f000 msr CPSR_fc, r0 10: e3a00302 mov r0, #134217728 ; 0x8000000 that the assembler has generated arm code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27237