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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed
    • Medium
    • Resolution: Fixed
    • 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.

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: