The reason is that gcc 4.6 turns -fomit-frame-pointer when -O2 specified. -fno-omit-frame-pointer will fix the issue.
The reason is that gcc 4.6 turns -fomit- frame-pointer when -O2 specified. -fno-omit- frame-pointer will fix the issue.