Index: yara.c =================================================================== --- yara.c (revision 112997) +++ yara.c (working copy) @@ -449,6 +449,12 @@ gate_yara (void) static unsigned int rest_of_handle_yara (void) { + + /* Determine if the current function is a leaf before running reload + since this can impact optimizations done by the prologue and + epilogue thus changing register elimination offsets. */ + current_function_is_leaf = leaf_function_p (); + compact_blocks (); /* Allocate the reg_renumber array. */