Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

#undef HAVE_AS_FUNC

/* Check for .func directive in assembly.
* .func directive marks the start of a function in ARM assembly code.
/* Check for the .func directive in assembly.
* The .func/.endfunc directives mark function start/end in ARM assembly code.
*
* Available on Linux/glibc, Windows including MinGW. Not available on MacOS.
* Available on Linux/glibc and Windows including MinGW with GCC (which uses
* GAS). Not available with Clang (both Apple's and upstream LLVM's integrated
* assemblers do not implement .func/.endfunc) or on MacOS.
*/
#if defined(__ARM_ARCH) && !defined(__APPLE__)
#if defined(__ARM_ARCH) && !defined(__clang__)
# define HAVE_AS_FUNC 1
#endif