------- Comment #6 from pinskia at gcc dot gnu dot org 2008-11-27 18:52 ------- (In reply to comment #5) > If the two functions are in the same compilation unit (and static), it's known > at compile time, isn't it?
Not always since they could be in different sections via -ffunction-sections or the user put them into different sections. The layout of the sections is not known until link time. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38295