mirror of https://github.com/Nonannet/copapy.git
changed to: volatile char stack_place_holder[64]
This commit is contained in:
parent
909af97ad0
commit
315d5735cb
|
|
@ -10,7 +10,7 @@ stencil_func_prefix = '__attribute__((naked)) ' # Remove callee prolog
|
||||||
def get_aux_funcs() -> str:
|
def get_aux_funcs() -> str:
|
||||||
return f"""
|
return f"""
|
||||||
{entry_func_prefix}int entry_function_shell(){{
|
{entry_func_prefix}int entry_function_shell(){{
|
||||||
void *p = alloca(64);
|
volatile char stack_place_holder[64];
|
||||||
result_int(0);
|
result_int(0);
|
||||||
return 1;
|
return 1;
|
||||||
}}
|
}}
|
||||||
|
|
@ -124,8 +124,6 @@ if __name__ == "__main__":
|
||||||
// Auto-generated stencils for copapy
|
// Auto-generated stencils for copapy
|
||||||
// Do not edit manually
|
// Do not edit manually
|
||||||
|
|
||||||
include <alloca.h>
|
|
||||||
|
|
||||||
volatile int dummy_int = 1337;
|
volatile int dummy_int = 1337;
|
||||||
volatile float dummy_float = 1337;
|
volatile float dummy_float = 1337;
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue