EGCS initial release status (fwd)
H.J. Lu
hjl@lucon.org
Thu Sep 18 19:15:00 GMT 1997
>
> HJ writes:
> > FWIW, I have been able to build/check egcs on linux with both
> > libc 5 and glibc 2 for a while now. But it will need the libc
> > 5.4.39 or above, a new glibc 2 and patch for egcs.
>
> What are the issues with older libc5 versions? What breaks?
Nothing is broken. Here is the libc 5.4.38 patch for libio
in egcs.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
----
Index: _G_config.h
===================================================================
RCS file: /home/work/cvs/linux/include/_G_config.h,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- _G_config.h 1997/08/27 19:37:15 1.97
+++ _G_config.h 1997/09/18 18:50:35 1.98
@@ -2,10 +2,10 @@
#ifndef _G_config_h
#define _G_config_h
-#define _LINUX_C_LIB_VERSION "5.4.38"
+#define _LINUX_C_LIB_VERSION "5.4.39"
#define _LINUX_C_LIB_VERSION_MAJOR 5
#define _LINUX_C_LIB_VERSION_MINOR 4
-#define _LINUX_C_LIB_VERSION_SUBMINOR 38
+#define _LINUX_C_LIB_VERSION_SUBMINOR 39
#define _G_LIB_VERSION "2.7.2"
@@ -86,6 +86,7 @@
#define _G_HAVE_UNISTD 1
#define _G_HAVE_DIRENT 1
#define _G_HAVE_CURSES 1
+#define _G_HAVE_FEATURES 1
#define _G_MATH_H_INLINES 0
#if defined(__GNUG__) && defined(__GNUC__) && (__GNUC__ > 2 || \
(__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
@@ -93,5 +94,9 @@
#else
#define _G_HAVE_BOOL 0
#endif
+
+#define _G_HAVE_LONG_DOUBLE_IO 1
+#define _G_HAVE_PRINTF_FP 1
+#define _G_HAVE_MMAP 1
#endif /* !_G_config_h */
Index: libio.h
===================================================================
RCS file: /home/work/cvs/linux/include/libio.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- libio.h 1996/07/18 07:49:25 1.7
+++ libio.h 1997/09/18 18:50:35 1.8
@@ -86,11 +86,16 @@
#define EOF (-1)
#endif
#ifndef NULL
-#if !defined(__cplusplus) || defined(__GNUC__)
-#define NULL ((void*)0)
-#else
-#define NULL (0)
-#endif
+# if defined __GNUG__ && \
+ (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
+# define NULL (__null)
+# else
+# if !defined(__cplusplus)
+# define NULL ((void*)0)
+# else
+# define NULL (0)
+# endif
+# endif
#endif
#define _IOS_INPUT 1
@@ -270,6 +275,13 @@
extern _IO_fpos_t _IO_seekpos __P((_IO_FILE*, _IO_fpos_t, int));
extern void _IO_free_backup_area __P((_IO_FILE*));
+
+/* They are used by libstdc++. */
+#define _IO_flockfile(_fp) /**/
+#define _IO_funlockfile(_fp) /**/
+#define _IO_ftrylockfile(_fp) /**/
+#define _IO_cleanup_region_start(_fct, _fp) /**/
+#define _IO_cleanup_region_end(_Doit) /**/
#ifdef __cplusplus
}
More information about the Gcc
mailing list