diff mbox series

[COMMITTED] posix: Fix fnmatch.c on bootstrap

Message ID 20210120165120.1986851-1-adhemerval.zanella@linaro.org
State Committed
Commit d7ee6bd8c217a4deb756739039fa9c165d26ec43
Headers show
Series [COMMITTED] posix: Fix fnmatch.c on bootstrap | expand

Commit Message

Adhemerval Zanella Jan. 20, 2021, 4:51 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/posix/fnmatch.c b/posix/fnmatch.c
index 5896812c96..b8a71f164d 100644
--- a/posix/fnmatch.c
+++ b/posix/fnmatch.c
@@ -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)