diff gcc/calls.c @ 133:420680fc7707

do normal call in goto codesegment in normal function
author anatofuz
date Sat, 03 Nov 2018 19:49:09 +0900
parents d34655255c78
children 4e440907fcbf
line wrap: on
line diff
--- a/gcc/calls.c	Thu Oct 25 10:21:07 2018 +0900
+++ b/gcc/calls.c	Sat Nov 03 19:49:09 2018 +0900
@@ -3726,7 +3726,10 @@
           warning(0, "no warning: unnamed code segment has been called from a function.");
         }
         */
-      args_size.constant = CbC_PRETENDED_STACK_SIZE;
+      // treat goto codesegments in normall function call as a function call
+      // this behavale same as llvm
+      //args_size.constant = CbC_PRETENDED_STACK_SIZE;
+	try_tail_call = 0;
     }
   else if ( fndecl && CbC_IS_CODE_SEGMENT (TREE_TYPE (fndecl)) )
     {