Compiler inconsistently emits diagnostic "argument unused during compilation" when C file isn't provided

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low

      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]
      

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

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-4947 - Compiler inconsistently emits diagn...
                SYNCHRONIZED
                • Last Sync Date: