Skip to content

Commit 5f65846

Browse files
authored
Merge pull request #4998 from dg0yt/arm-type-function
arm: Declare symbols as .type function
2 parents 0578a89 + dc90563 commit 5f65846

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

common_arm.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,16 @@ static inline int blas_quickdivide(blasint x, blasint y){
102102

103103
#if defined(ASSEMBLER) && !defined(NEEDPARAM)
104104

105+
#if !defined(__APPLE__) && !defined(_WIN32)
106+
#define OPENBLAS_ARM_TYPE_FUNCTION .type REALNAME, %function ;
107+
#else
108+
#define OPENBLAS_ARM_TYPE_FUNCTION
109+
#endif
110+
105111
#define PROLOGUE \
106112
.arm ;\
107113
.global REALNAME ;\
114+
OPENBLAS_ARM_TYPE_FUNCTION \
108115
REALNAME:
109116

110117
#define EPILOGUE

0 commit comments

Comments
 (0)