From 69010134585cf7d98fb44c339b82ee73467ccb05 Mon Sep 17 00:00:00 2001 From: rguenth Date: Mon, 6 Jun 2011 11:43:31 +0000 Subject: 2011-06-06 Mikael Pettersson PR tree-optimization/49243 * calls.c (setjmp_call_p): Also check if fndecl has the returns_twice attribute. * gcc.dg/pr49243.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174695 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/calls.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/calls.c') diff --git a/gcc/calls.c b/gcc/calls.c index f5592c5a6d9..feb98d21c00 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -567,6 +567,8 @@ special_function_p (const_tree fndecl, int flags) int setjmp_call_p (const_tree fndecl) { + if (DECL_IS_RETURNS_TWICE (fndecl)) + return ECF_RETURNS_TWICE; return special_function_p (fndecl, 0) & ECF_RETURNS_TWICE; } -- cgit v1.2.1