[oe] Status of glibc patch for function inlining with -O or -Os

Amit Chaudhuri amit.k.chaudhuri at gmail.com
Wed Aug 19 09:29:01 UTC 2015


http://comments.gmane.org/gmane.comp.handhelds.openembedded.core/60843

Hi,

in section 5.24 in the latest mega-manual it says:

"For successful call graph analysis, the binaries must preserve the
frame pointer register and should also be compiled with the
-fno-omit-framepointer flag. You can achieve this by setting the
SELECTED_OPTIMIZATION variable with the following options:

     -fexpensive-optimizations
     -fno-omit-framepointer
     -frename-registers
     -O2


You can also achieve it by setting the DEBUG_BUILD variable to "1" in
the local.conf configuration file. If you use the DEBUG_BUILD
variable, you also add extra debugging information that can make the
debug packages large. "

The second of these options does not work with core-image-sato on
qemuarm, failing with errors about failed function inlining when
building glibc. I stumbled across 3 google references (one listed
above) to a problem with glibc and function inlining dated ~ 6 months
ago. The threads imply patches were being worked on but they don't
appear to have been adopted.  Is there a reason for this that should
discourage use of those patches?

Regards,

Amit



More information about the Openembedded-devel mailing list