public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Disallow extern inline if clang
@ 2021-08-28  0:36 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28  0:36 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f555d1a9b769e1cef90e025367d90112f6361c04

commit f555d1a9b769e1cef90e025367d90112f6361c04
Author: Stan Shebs <stanshebs@google.com>
Date:   Fri Jan 19 12:25:34 2018 -0800

    Disallow extern inline if clang

Diff:
---
 include/features.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/features.h b/include/features.h
index 137a90b405..28861e2890 100644
--- a/include/features.h
+++ b/include/features.h
@@ -440,11 +440,10 @@
 /* Decide whether we can define 'extern inline' functions in headers.  */
 #if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
     && !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \
-    && defined __extern_inline
+    && defined __extern_inline && !defined __clang__
 # define __USE_EXTERN_INLINES	1
 #endif
 
-
 /* This is here only because every header file already includes this one.
    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-28  0:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:36 [glibc/google/grte/v5-2.27/master] Disallow extern inline if clang Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).