Bug 751703 is all about extern declared variables inside
a function being treated as local variables.
In SDCCicode.c around line 1537 (operandFromSymbol)
the extern keyword was forgotten to be checked and
the symbol was treated local afterwards. And that
resulted in the code being optimized away.