[WARNING]
A object (variable or function) was declared with inconsistent segments.
#pragma DATA_SEG A
extern int i;
#pragma DATA_SEG B
int i;
Change the segment pragmas in a way that all declarations and the definition of one object are in the same segment. Otherwise wrong optimizations could happen.