------- Comment #23 from andi-gcc at firstfloor dot org 2010-06-19 13:13 ------- It's two instructions with some metadata that controls patching these instructions depending on the CPU capabilities.
Detecting that for gcc would be likely hard. What would have also prevented this problem would have been a way to say "any call to another section (as defined by attribute((section)) is an error") The -Os heuristics are a general problem for the kernel, it really would like to have -Os without the really bad bits (more like a -Omostly-small) That's one of the reasons I would like to have the better ways to annotate for hot/cold that I suggested recently. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44129