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

Optimizer turns asm statement with exactly 47 characters into asm comment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • Code Generation Tools
    • CODEGEN-6677
    • Hide
      C7000_1.4.0.LTS
      C7000_2.1.0.LTS
      C7000_3.1.0.LTS
      Show
      C7000_1.4.0.LTS C7000_2.1.0.LTS C7000_3.1.0.LTS
    • Hide
      C7000_2.1.3.LTS*
      C7000_3.1.1.LTS*
      C7000_1.4.3.LTS
      Show
      C7000_2.1.3.LTS* C7000_3.1.1.LTS* C7000_1.4.3.LTS
    • default
    • Move the asm statement outside of all functions, or edit the asm statement so that it doesn't have exactly 47 characters (including the NUL at the end of the string), perhaps by adding a space character at the end of the line.

      The optimizer can mistakenly turn an asm() statement into an assembly comment, nullifying the contents of the statement, if a C or C++ file:
      1) has an asm() statement
      2) that is exactly 47 characters long (including the null character)
      3) inside a function and
      4) optimization level 2 or higher is used.

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

              Created:
              Updated:
              Resolved: