Cannot use --strict_ansi with assembler directive .cdecls

XMLWordPrintable

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

      The following shows an assembly file and a command to build it.

      $ type file.asm
              .cdecls C, LIST
              %{
                      #define NAME 100
              %}
      
              .text
              nop
      
      $ cl2000 -al --strict_ansi file.asm
      At end of source: error: a translation unit must contain at least one declaration
      "file.asm", WARNING! at line 1: [E1000] error while processing C code in .cdecls
                                              directive
                      .cdecls C, LIST
      
      No Assembly Errors, 1 Assembly Warning
      

      Inspect the listing file to see that the .cdecls directive has no effect.

      If --strict_ansi is not used, the build works as expected.

            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-4198 - Cannot use --strict_ansi with assem...
                SYNCHRONIZED
                • Last Sync Date: