diff --git a/string/arm/asmdefs.h b/string/arm/asmdefs.h index e31188804716546b9e23cddd00c10d05c1c3c3d6..8be2e0b6c1b586c1049715a087c3bbe2139d7a74 100644 --- a/string/arm/asmdefs.h +++ b/string/arm/asmdefs.h @@ -455,22 +455,30 @@ #define ENTRY(name) ENTRY_ALIGN(name, 6) -#define ENTRY_ALIAS(name) \ - .global name; \ - .type name,%function; \ - name: +#ifdef __IS_LLVM_BUILD + #define ENTRY_ALIAS(name) \ + .global name; \ + .type name,%function; \ + name: + + #define END(name) \ + .cfi_endproc; \ + .size name, .-name; -#if defined (IS_LEAF) -# define END_UNWIND .cantunwind; #else -# define END_UNWIND -#endif + #if defined (IS_LEAF) + # define END_UNWIND .cantunwind; + #else + # define END_UNWIND + #endif + + #define END(name) \ + .cfi_endproc; \ + END_UNWIND \ + .fnend; \ + .size name, .-name; -#define END(name) \ - .cfi_endproc; \ - END_UNWIND \ - .fnend; \ - .size name, .-name; +#endif #define L(l) .L ## l