[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r4355 - in /trunk/libc: ChangeLog.eglibc include/features.h io/sys/stat.h



Author: sandra
Date: Thu Nov 29 15:12:52 2007
New Revision: 4355

Log:
2007-11-29  Sandra Loosemore  <sandra@xxxxxxxxxxxxxxxx>

	Allow building EGLIBC with -Os.

	* include/features.h (__USE_EXTERN_INLINES_IN_LIBC):  New.
	* io/sys/stat.h: Use it instead of __USE_EXTERN_INLINES.





Modified:
    trunk/libc/ChangeLog.eglibc
    trunk/libc/include/features.h
    trunk/libc/io/sys/stat.h

Modified: trunk/libc/ChangeLog.eglibc
==============================================================================
--- trunk/libc/ChangeLog.eglibc (original)
+++ trunk/libc/ChangeLog.eglibc Thu Nov 29 15:12:52 2007
@@ -1,3 +1,10 @@
+2007-11-29  Sandra Loosemore  <sandra@xxxxxxxxxxxxxxxx>
+
+	Allow building EGLIBC with -Os.
+
+	* include/features.h (__USE_EXTERN_INLINES_IN_LIBC):  New.
+	* io/sys/stat.h: Use it instead of __USE_EXTERN_INLINES.
+
 2007-11-09  Sandra Loosemore  <sandra@xxxxxxxxxxxxxxxx>
 
 	* nss/gen-fixed-nsswitch.c (internal_function):  Provide a fallback

Modified: trunk/libc/include/features.h
==============================================================================
--- trunk/libc/include/features.h (original)
+++ trunk/libc/include/features.h Thu Nov 29 15:12:52 2007
@@ -345,6 +345,14 @@
 # define __USE_EXTERN_INLINES	1
 #endif
 
+/* There are some functions that must be declared 'extern inline' even with
+   -Os when building LIBC, or they'll end up undefined.  */
+#if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
+    && (defined _LIBC || !defined __OPTIMIZE_SIZE__) && !defined __NO_INLINE__ \
+    && defined __extern_inline
+# define __USE_EXTERN_INLINES_IN_LIBC	1
+#endif
+
 
 /* This is here only because every header file already includes this one.
    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.

Modified: trunk/libc/io/sys/stat.h
==============================================================================
--- trunk/libc/io/sys/stat.h (original)
+++ trunk/libc/io/sys/stat.h Thu Nov 29 15:12:52 2007
@@ -444,7 +444,7 @@
 		       __mode_t __mode, __dev_t *__dev)
      __THROW __nonnull ((3, 5));
 
-#if defined __GNUC__ && __GNUC__ >= 2 && defined __USE_EXTERN_INLINES
+#if defined __GNUC__ && __GNUC__ >= 2 && defined __USE_EXTERN_INLINES_IN_LIBC
 /* Inlined versions of the real stat and mknod functions.  */
 
 __extern_inline int