On Tue, Sep 18, 2012 at 02:38:27PM +0200, Richard Guenther wrote: > > Glibc must be compiled with optimization. Will -Og build glibc? > > Apply the patch and check for yourself. I suppose the answer will > be yes (whatever "optimization" requirements glibc has).
glibc headers check __OPTIMIZE__ macro, and that is defined with -Og, so yes, it will build. It builds even with -O0 -D__OPTIMIZE__, at least most of it ;) Jakub