[EXT_EP-9012] Using #pragma RETAIN does not keep a static file level variable Created: 02/Aug/18  Updated: 19/Feb/20  Resolved: 02/Aug/18

Status: Fixed
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: TI User Assignee: TI User
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: Code Generation Tools
Internal ID: CODEGEN-5119
Forum URL: https://e2e.ti.com/support/development_tools/compiler/f/343/t/713665
Found In Release: C6000_8.2.0
C2000_18.1.0.LTS
C6000_8.3.0
ARM_18.12.0.LTS
PRU_2.3.0
ARM_18.1.0.LTS
MSP430_18.1.0.LTS
C2000_19.6.0.STS
ARM_16.9.0.LTS
ARM_19.6.0.STS
MSP430_18.12.0.LTS
MSP430_19.6.0.STS
C2000_18.12.0.LTS
Fix In Release: MSP430_18.12.2.LTS
ARM_18.1.6.LTS
MSP430_18.1.6.LTS
PRU_2.3.2
C2000_19.6.0.STS
C2000_18.1.6.LTS
C2000_18.12.2.LTS
PRU_2.4.0*
ARM_19.6.0.STS
ARM_18.12.2.LTS
C6000_8.3.4
C6000_8.2.7
MSP430_19.6.0.STS
Workaround: Use both "#pragma RETAIN" and "__attribute__((used))" at the same time.
Release Notes: The RETAIN pragma may not keep an unused variable like it's supposed to.

 Description   

Using #pragma RETAIN does not keep a static file level variable


Generated at Sat Dec 13 11:32:44 CST 2025 using Jira 10.3.7#10030007-sha1:a563685562f94d165eb4e158cfb2a142338d8c54.