Patch to fix SPARC current_function_uses_only_leaf_regs breakage
John Wehle
john@feith.com
Wed Apr 21 20:25:00 GMT 1999
This patch addresses several new failures reported by Kaveh which
are a result of my recent leaf_function changes. The problem is
that current_function_uses_only_leaf_regs isn't always being set
correctly.
ChangeLog:
Wed Apr 21 18:09:47 EDT 1999 John Wehle (john@feith.com)
* toplev.c (rest_of_compilation): Always set
current_function_uses_only_leaf_regs appropriately.
Enjoy!
-- John Wehle
------------------8<------------------------8<------------------------
*** toplev.c.ORIGINAL Sat Apr 17 19:09:02 1999
--- toplev.c Wed Apr 21 17:56:43 1999
*************** rest_of_compilation (decl)
*** 4240,4247 ****
}
#ifdef LEAF_REGISTERS
! if (optimize > 0 && only_leaf_regs_used () && leaf_function_p ())
! current_function_uses_only_leaf_regs = 1;
#endif
/* One more attempt to remove jumps to .+1
--- 4240,4247 ----
}
#ifdef LEAF_REGISTERS
! current_function_uses_only_leaf_regs
! = optimize > 0 && only_leaf_regs_used () && leaf_function_p ();
#endif
/* One more attempt to remove jumps to .+1
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------
More information about the Gcc-patches
mailing list