X-Git-Url: http://plrg.eecs.uci.edu/git/?p=repair.git;a=blobdiff_plain;f=Repair%2FRepairCompiler%2FMCC%2FRuntime%2Fstack.c;h=838293d642c3dfd2baa3a9153a8d9a40dfe4b523;hp=c9586dc54d84b63ed3171e31ad1d510745b76a6f;hb=1a9b5106dbaf948defb63a97a3ffffde025a4e2c;hpb=464f810d8962b4a2622ba3bf5b5b9530373a93a0 diff --git a/Repair/RepairCompiler/MCC/Runtime/stack.c b/Repair/RepairCompiler/MCC/Runtime/stack.c index c9586dc..838293d 100755 --- a/Repair/RepairCompiler/MCC/Runtime/stack.c +++ b/Repair/RepairCompiler/MCC/Runtime/stack.c @@ -11,7 +11,7 @@ Permission is hereby granted to use or copy this program for any purpose, provided the above notices are retained on all copies. Permission to modify the code and to distribute modified code is granted, provided the above notices are retained, and a notice that the code was -modified is included with the above copyright notice. +modified is included with the above copyright notice. */ @@ -19,9 +19,6 @@ modified is included with the above copyright notice. #include #include #include -#include -#include - #define ptr_t void * #pragma weak __libc_stack_end extern ptr_t __libc_stack_end; @@ -34,7 +31,7 @@ extern ptr_t __libc_stack_end; { /* We read the stack base value from /proc/self/stat. We do this */ /* using direct I/O system calls in order to avoid calling malloc */ - /* in case REDIRECT_MALLOC is defined. */ + /* in case REDIRECT_MALLOC is defined. */ # define STAT_BUF_SIZE 4096 # define STAT_READ read /* Should probably call the real read, if read is wrapped. */ @@ -53,7 +50,7 @@ extern ptr_t __libc_stack_end; return __libc_stack_end + 0x10; } /* Otherwise it's not safe to add 16 bytes and we fall */ /* back to using /proc. */ -# else +# else return __libc_stack_end; # endif }