-
Bug
-
Resolution: Unresolved
-
Low
-
Code Generation Tools
-
CODEGEN-10314
-
-
-
default
This is a contrived test case, TI-syntax assembly ...
% type file.asm .asmfunc nop
A typical build ignores the .asmfunc directive ...
% tiarmclang -c -x ti-asm file.asm "file.asm", WARNING! at line 1: [W0003] Assembly-source debug directives cannot be used when debug information is disabled; ignoring all assembly-source debug directives .asmfunc No Assembly Errors, 1 Assembly Warning
Attempt to fix the problem by adding the TI assembly option -g ...
% tiarmclang -c -x ti-asm -Xti-assembler -g file.asm warning: option -g overrides preceding option --symdebug:none
Add -v to see more of what is happening ...
% tiarmclang -v -c -x ti-asm -Xti-assembler -g file.asm TI Arm Clang Compiler 2.1.0.LTS Target: arm-ti-none-eabi Thread model: posix InstalledDir: C:\ti\compilers\ti-cgt-armllvm_2.1.0.LTS\bin "C:\\ti\\compilers\\ti-cgt-armllvm_2.1.0.LTS\\bin\\tiarmasm" --abi=eabi --object_format=elf --silicon_version=7M4 --float_support=FPv4SPD16 --endian=little --code_state=16 --unaligned_access=on --arm_vmrs_si_workaround=off --embedded_constants=on --hll_source=asm --symdebug:none -g file.asm file.o warning: option -g overrides preceding option --symdebug:none
The compiler tiarmclang adds the option --symdebug:none. The later -g overrides it, but causes an additional diagnostic.