changes for compatibility with Pathscale compiler

This commit is contained in:
wernsaar 2013-11-13 18:32:42 +01:00
parent 067e8417fd
commit 6e679266f8
2 changed files with 24 additions and 1 deletions

View File

@ -301,12 +301,25 @@ REALNAME:
#define PROFCODE
#endif
#if defined(C_PATHSCALE) || defined(OS_DARWIN)
#define EPILOGUE \
.size REALNAME, .-REALNAME; \
.size REALNAME, .-REALNAME; \
.section .note.GNU-stack,"",@progbits
#else
#define EPILOGUE \
.size REALNAME, .-REALNAME; \
.section .note.GNU-stack,"",%progbits
#endif
#endif
#ifdef XDOUBLE
#define FLD fldt
#define FST fstpt

View File

@ -372,10 +372,20 @@ REALNAME:
#define PROFCODE
#endif
#if defined(C_PATHSCALE) || defined(OS_DARWIN)
#define EPILOGUE \
.size REALNAME, .-REALNAME; \
.section .note.GNU-stack,"",@progbits
#else
#define EPILOGUE \
.size REALNAME, .-REALNAME; \
.section .note.GNU-stack,"",%progbits
#endif
#endif