I modified the example project from CycloneIII starter kit cd. The project runs well except the system timestamp is missing.
As You've regenerated the SOPC/QSYS file, You have to regenerate the BSP file also.
Alternatively, you can just ignore the timestamp check in the 'Nios II hardware configuration' window.
For more complete information about compiler optimizations, see our Optimization Notice.