comparison 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
comparison
equal deleted inserted replaced
132:d34655255c78 133:420680fc7707
3724 else 3724 else
3725 { 3725 {
3726 warning(0, "no warning: unnamed code segment has been called from a function."); 3726 warning(0, "no warning: unnamed code segment has been called from a function.");
3727 } 3727 }
3728 */ 3728 */
3729 args_size.constant = CbC_PRETENDED_STACK_SIZE; 3729 // treat goto codesegments in normall function call as a function call
3730 // this behavale same as llvm
3731 //args_size.constant = CbC_PRETENDED_STACK_SIZE;
3732 try_tail_call = 0;
3730 } 3733 }
3731 else if ( fndecl && CbC_IS_CODE_SEGMENT (TREE_TYPE (fndecl)) ) 3734 else if ( fndecl && CbC_IS_CODE_SEGMENT (TREE_TYPE (fndecl)) )
3732 { 3735 {
3733 // 警告コードセグメントを関数呼び出し 3736 // 警告コードセグメントを関数呼び出し
3734 //char *name= IDENTIFIER_POINTER(DECL_NAME(fndecl)); 3737 //char *name= IDENTIFIER_POINTER(DECL_NAME(fndecl));