Mercurial > hg > CbC > CbC_gcc
diff gcc/function.c @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | ab0bcb71f44d |
children | d34655255c78 |
line wrap: on
line diff
--- a/gcc/function.c Sun Apr 08 20:55:21 2018 +0900 +++ b/gcc/function.c Wed Apr 11 18:46:58 2018 +0900 @@ -3668,6 +3668,10 @@ } } +#ifndef noCbC +#include "c/cbc-tree.h" +#endif + /* Assign RTL expressions to the function's parameters. This may involve copying them into registers and using those registers as the DECL_RTL. */ @@ -3874,8 +3878,8 @@ } #ifndef noCbC - // if (CbC_IS_CODE_SEGMENT(TREE_TYPE(fndecl)) ) - // all.stack_args_size.constant = CbC_STACK_SIZE; + if (CbC_IS_CODE_SEGMENT(TREE_TYPE(fndecl)) ) + all.stack_args_size.constant = CbC_PRETENDED_STACK_SIZE; #endif /* We have aligned all the args, so add space for the pretend args. */