Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10877

tiarmclang mishandles debug directives in TI-syntax assembly files

    XMLWordPrintable

Details

    • Bug
    • Status: New
    • Medium
    • Resolution: Unresolved
    • Code Generation Tools
    • CODEGEN-10314
    • Hide
      ARMCLANG_2.1.0.LTS
      ARMCLANG_1.3.0.LTS
      ARMCLANG_2.1.3.LTS
      ARMCLANG_2.1.2.LTS
      ARMCLANG_3.1.0.STS
      Show
      ARMCLANG_2.1.0.LTS ARMCLANG_1.3.0.LTS ARMCLANG_2.1.3.LTS ARMCLANG_2.1.2.LTS ARMCLANG_3.1.0.STS
    • Hide
      ARMCLANG_3.2.3.LTS*
      ARMCLANG_1.3.2.LTS*
      ARMCLANG_2.1.4.LTS*
      Show
      ARMCLANG_3.2.3.LTS* ARMCLANG_1.3.2.LTS* ARMCLANG_2.1.4.LTS*
    • default

    Description

      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.

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: