* lib/alloca.c: Skip all code with clang.
2020-08-07 Bruno Haible <bruno@clisp.org>
+ alloca: No need to compile alloca.c with clang.
+ * lib/alloca.c: Skip all code with clang.
+
Use __builtin_alloca with clang.
* lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
# define memory_full() abort ()
#endif
-/* If compiling with GCC 2, this file's not needed. */
-#if !defined (__GNUC__) || __GNUC__ < 2
+/* If compiling with GCC or clang, this file is not needed. */
+#if !(defined __GNUC__ || defined __clang__)
/* If someone has defined alloca as a macro,
there must be some other way alloca is supposed to work. */
}
# endif /* no alloca */
-#endif /* not GCC 2 */
+#endif /* not GCC || clang */