-
Bug
-
Resolution: Fixed
-
High
-
Code Generation Tools
-
CODEGEN-8640
-
-
-
default
Code with a volatile bit-field that gets auto-incremented triggered a bug which corrupted the expression, leading to an incorrect result. For MSP430, for the MSPX architecture, this led to an unusual symptom. The compiler was confused by the corrupted tree, leading to a call to an MSP helper function which is not available in the MSPX RTS library. It is suspected that this bug can occur for the other TI compiler targets, but so far the problem seems benign on the other targets. This bug seems to only happen when the bit-field is volatile. A bit-field is volatile if it is explicitly volatile, or its containing struct is volatile, recursively.