From dd79b8f59a3ea22e7ddae25ee37fedd07173771f Mon Sep 17 00:00:00 2001 From: nickc Date: Mon, 15 Nov 2010 10:39:18 +0000 Subject: * config/stormy16/stormy16.c (direct_return): Do not generate a direct return for interrupt handlers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166748 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/stormy16/stormy16.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/config/stormy16') diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index 86a5caae147..ce83f683d39 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -1175,7 +1175,8 @@ int direct_return (void) { return (reload_completed - && xstormy16_compute_stack_layout ().frame_size == 0); + && xstormy16_compute_stack_layout ().frame_size == 0 + && ! xstormy16_interrupt_function_p ()); } /* Called after register allocation to add any instructions needed for -- cgit v1.2.1