posix: Fix fnmatch.c on bootstrap
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 20 Jan 2021 16:07:59 +0000 (16:07 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 20 Jan 2021 16:23:33 +0000 (13:23 -0300)
Only define FALLTHROUGH for _LIBC and do not check __clang_major__
value.

It partially syncs with gnulib 5c52f00c69f39fe.

Checked with build-many-glibcs.py for aarch64-linux-gnu.

posix/fnmatch.c

index 5896812..b8a71f1 100644 (file)
@@ -64,7 +64,7 @@ extern int fnmatch (const char *pattern, const char *string, int flags);
 #endif
 
 #ifdef _LIBC
-# if (__GNUC__ >= 7) || (__clang_major__ >= 10)
+# if __GNUC__ >= 7
 #  define FALLTHROUGH __attribute__ ((__fallthrough__))
 # else
 #  define FALLTHROUGH ((void) 0)