If I try it on my computer, I get this results:
Pelles C with optimise off: 2.685
Pelles C with optimise on: 0.408
Tiny CC: 2.695
gcc 4.9.2 with -O0: 2.655
gcc 4.9.2 with -O1: 0.417
gcc 4.9.2 with -O2 or -O3: 0.000
Your benchmark example is not very good, because the result of the loop is constant and a very good optimiser removes the hole loop and set
n to the final result.