From 2fd7ba4ac9de8a0febcaec28920f24363f6403d9 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 15 Nov 2010 10:39:18 +0000 Subject: stormy16.c (direct_return): Do not generate a direct return for interrupt handlers. * config/stormy16/stormy16.c (direct_return): Do not generate a direct return for interrupt handlers. From-SVN: r166748 --- 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 86a5caa..ce83f68 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.1