Details
-
Bug
-
Status: Fixed
-
Medium
-
Resolution: Fixed
-
Code Generation Tools
-
CODEGEN-4623
-
-
-
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