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

Building TI assembly files may cause compiler to incorrectly emit diagnostic: argument unused during compilation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Prioritized Not Prioritized

      The following commands show a simple assembly file. Then it is built two times. The first build processes the file as GNU-syntax assembly. The second build processes the file as TI-syntax assembly. Both builds use -O0, an option which is not relevant for assembly. The GNU-syntax build emits no diagnostic. The TI-syntax build emits a diagnostic.

      % type file.asm
              .text
              nop
      
      % tiarmclang -c -O0 file.asm
      
      % tiarmclang -c -O0 -xti-asm file.asm
      tiarmclang: warning: argument unused during compilation: '-O0' [-Wunused-command-line-argument]
      

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

              Created:
              Updated: