------- Comment #19 from hubicka at gcc dot gnu dot org 2008-04-24 16:05 ------- I am going to make patch that will with preserve-stack attribute in addition to inhibitting libcall also put REG_EQUIV notes on a copy instead of argument register itself that should be sufficient to prevent reload from re-using the slot.
I think we need to add a temporary register with REG_EQUIV note that will be copypropagated if argument is read only (or to read only parts) so rematerialization works. Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27234