Compiler incorrectly optimizes away member functions which arise from explicit template instantiation

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-4623
    • Hide
      C6000_8.2.0
       C2000_16.9.0.LTS
       ARM_16.9.0.LTS
      Show
      C6000_8.2.0  C2000_16.9.0.LTS  ARM_16.9.0.LTS
    • Hide
      C6000_8.2.5
       ARM_16.9.10.LTS
       C2000_16.9.10.LTS
      Show
      C6000_8.2.5  ARM_16.9.10.LTS  C2000_16.9.10.LTS
    • Compiling at -o2 helps, but sacrifices some optimisation. Adding a FUNC_CANNOT_INLINE pragma may also help, if it isn't an automatically-defined function.
    • Compiling at -o3 may not retain external symbols for functions that are completely inlined within the file but which are declared extern, when using versions of the compiler from before 2017 -- ie, C6000 8.2.x, C2000/MSP430/TMS470 16.9.x.

      Compiler incorrectly optimizes away member functions which arise from explicit template instantiation

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

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-1371 - Compiler incorrectly optimizes away...
                SYNCHRONIZED
                • Last Sync Date: