This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

BOOT_CFLAGS and -fomit-frame-pointer


Hi

There are occasions, especially when bootstrapping a whole new World where
one needs to build GCC multiple times, that you don't want to be
bootstrapping GCC on every invocation, only the first.

On x86 with GCC-4 and above, `make bootstrap' results in the compiler being
built with `BOOT_CFLAGS = -O2 -g -fomit-frame-pointer' (picked up from
config/mh-x86omitfp).

However, if performing a non-bootstrap build ie: built with a plain old
`make', BOOT_CFLAGS have no effect and the compiler gets built without
`-fomit-frame-pointer'.

This means you get a different compiler depending on whether you `make
bootstrap'ed it or not, which just seems wrong to me. This never used to be
the case.

Of course, the problem can easily be worked around once you know what's
going on.. but that's not the point.

Thanks for any comments.

Regards
Greg


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]