This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [split] Add CFI ops, fix call/return prediction, other changes



movl 4(%ebp), %eax # Increment return address
inc %eax
movl %eax, -8(%ebp) # Store it in an unused slot

movl -4(%ebp), %eax # Restore 3rd register

call *-8(%ebp) # Call our caller via slot

Also, would it make sense to reserve 3 bytes for the ret, so that stdcall functions could have split stack? Alternatively, you need to disable split stack (with a sorry) for stdcall functions.


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]