diff gcc/calls.c @ 97:4d6300120c29 cbc-gcc-4.6.0

modify condition of tail call in expand_call method
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Fri, 20 Jan 2012 04:48:59 +0900
parents 506ac5e3963a
children ab0bcb71f44d
line wrap: on
line diff
--- a/gcc/calls.c	Tue Jan 17 06:11:37 2012 +0900
+++ b/gcc/calls.c	Fri Jan 20 04:48:59 2012 +0900
@@ -2335,12 +2335,7 @@
 #endif
       /* Check whether the target is able to optimize the call
 	 into a sibcall.  */
-#ifndef noCbC
-      || (!targetm.function_ok_for_sibcall (fndecl, exp)
-	  && (!fndecl || !CbC_IS_CODE_SEGMENT (TREE_TYPE (fndecl))))
-#else
       || !targetm.function_ok_for_sibcall (fndecl, exp)
-#endif
       /* Functions that do not return exactly once may not be sibcall
 	 optimized.  */
       || (flags & (ECF_RETURNS_TWICE | ECF_NORETURN))