-fno-omit-frame-pointer without optimization

c++, frame, optimization, pointers

Solution

As you already imply yourself, `-fno-omit-frame-pointer` is just ignored in your case, as the frame pointer wouldn't be ommitted anyways in the default -O0.

Problem

I was wondering what -fno-omit-frame-pointer will do without optimization? CXXFLAGS = -Wall -ggdb3 -DDEBUG -fno-omit-frame-pointer Isn't it that fomit-frame-pointer auto turned on at all levels of -O (except -O0)? I assume in my example it is -O0 by default. Thanks and regards!

Original source