stackoverflow e.g.
gcc -O3
and the gcc optimiser found that some of your variables were redundant in some way that allowed them to be optimised away.
e.g.gcc -O0
Compile with optimisation disabled,
if you want to see such variables (this is generally a good idea for debug builds in any case).