3.16 build without optimization fails
Hi.
Thanks for your answer.
There goes my plan to better understand an UML kernel lock up by using a debugger... Everything gets optimised out with -O2 :-(
Can you give an example function that relies on this GCC feature?
With kind regards
Thomas
Am 19.08.2014 22:06 schrieb [email protected]:
Quoted 8 lines · Thomas Meyer
Quoted 6 lines
Quoted 6 lines
Hi,
the build with -O0 fails with:
bug or feature?
Quoted 7 lines
Quoted 1 line
Quoted 1 line
any ideas?
Feature. The kernel is *known* to not build with -O0, because that disables *all* function inlining, and there's several functions that *have* to be inlined in order to function properly (most notably, anything that uses the gcc
__builtin_return_addressin a function that is expected to be inlined).
���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
Quoted 1 line · Thomas Meyer
Can you give an example function that relies on this GCC feature?
cd /usr/src/linux && find include -type f | xargs grep __builtin_return_address
Quoted 5 lines · Thomas Meyer
Hi.
Thanks for your answer.
There goes my plan to better understand an UML kernel lock up by using a debugger... Everything gets optimised out with -O2 :-(
Is it the filesystem/block lockup you saw some time ago? Maybe Thorsten can give more details.
He sent me an patch off list a few days ago.
Quoted 21 lines
Can you give an example function that relies on this GCC feature?
With kind regards
ThomasAm 19.08.2014 22:06 schrieb [email protected]:
Quoted 15 lines · Thomas Meyer
Quoted 7 lines
Quoted 7 lines
Hi,
the build with -O0 fails with:
bug or feature?
any ideas?
Feature. The kernel is *known* to not build with -O0, because that disables *all* function inlining, and there's several functions that *have* to be inlined in order to function properly (most notably, anything that uses the gcc
__builtin_return_addressin a function that is expected to be inlined).
Signature · 2 lines
Thanks, //richard