Part Number: TMS320F28379D
Tool/software:
Please see the attached file containing the project that highlights the issue.
TestVariableRedefinition.zip
In my actual code, I am using the #pragma LOCATION and RETAIN directives with over 7000 variables.
Example code with #pragma LOCATION and RETAIN directives is shown below.
The compiler doesn't catch the variable redefinition for this situation.
int xyz;
#define BASE 0xB000
#pragma LOCATION(abc,BASE+7000)
#pragma RETAIN(abc)
int abc;
#pragma LOCATION(abc,BASE+8000)
#pragma RETAIN(abc)
int abc;
int main(void)
{
abc++;
xyz = abc;
return 0;
}