The systemtap-based ITrace package developed by my team (stapitrace) is compiled by Systemtap, which uses the -Wframe-larger-than=600 option. And since Systemtap uses '-Werror', this causes the following compile failure in pi_btrace.c:
cc1: warnings being treated as errors
/tmp/stapSJjtlK/stap_bd662b7ba81877d55589a6e7d9ea758d_46455.c: In function ?write_segment_hooks?:
/tmp/stapSJjtlK/stap_bd662b7ba81877d55589a6e7d9ea758d_46455.c:924: error: the frame size of 608 bytes is larger than 600 bytes
The attached patch fixes this problem. It's an innocuous change that can be used no matter if the module is built/run by systemtap or as a standalone module.