From aa0a51c31ad973b1b6d2d78d8a153a900591be99 Mon Sep 17 00:00:00 2001 From: Deve Date: Sat, 7 Jul 2018 23:36:02 +0200 Subject: [PATCH] Fixed angelscript compilation with 32bit gcc --- lib/angelscript/source/as_callfunc_x86.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/angelscript/source/as_callfunc_x86.cpp b/lib/angelscript/source/as_callfunc_x86.cpp index 0ac690ed7..895a20532 100644 --- a/lib/angelscript/source/as_callfunc_x86.cpp +++ b/lib/angelscript/source/as_callfunc_x86.cpp @@ -346,6 +346,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -392,6 +393,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable @@ -468,6 +470,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -515,6 +518,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable @@ -591,6 +595,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -638,6 +643,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable @@ -723,6 +729,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -774,6 +781,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable @@ -855,6 +863,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -903,6 +912,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable @@ -986,6 +996,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -1037,6 +1048,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable @@ -1108,6 +1120,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -1152,6 +1165,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable @@ -1239,6 +1253,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -1292,6 +1307,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable @@ -1386,6 +1402,7 @@ endcopy: // and the epilogue below, the stack unwind works as it should. // TODO: runtime optimize: The prologue/epilogue shouldn't be needed if the correct cfi directives are used below "pushl %%ebp \n" + ".cfi_startproc \n" ".cfi_adjust_cfa_offset 4 \n" ".cfi_rel_offset ebp, 0 \n" "movl %%esp, %%ebp \n" @@ -1452,6 +1469,7 @@ endcopy: "popl %%ebp \n" ".cfi_adjust_cfa_offset -4 \n" ".cfi_restore ebp \n" + ".cfi_endproc \n" #endif // Copy EAX:EDX to retQW. As the stack pointer has been // restored it is now safe to access the local variable