glibc 2.1.1pre2 breaks libstdc++-v3 build
Joseph S. Myers
jsm28@cam.ac.uk
Thu Jan 11 12:13:00 GMT 2001
This change in glibc2.2.1pre2 also breaks the build of libobjc. This
patch fixes that; OK to commit if it passes the objc testsuite with no
regressions on i686-pc-linux-gnu?
NOTE: this patch should also be backported to 2.95.3. I guess it's
too late for 2.95.2.1.
2001-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
* sendmsg.c (__objc_print_dtable_stats): Don't use #ifdef inside
printf.
Index: sendmsg.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/sendmsg.c,v
retrieving revision 1.3
diff -u -r1.3 sendmsg.c
--- sendmsg.c 2001/01/03 08:49:02 1.3
+++ sendmsg.c 2001/01/11 20:06:41
@@ -628,13 +628,11 @@
objc_mutex_lock(__objc_runtime_mutex);
- printf("memory usage: (%s)\n",
#ifdef OBJC_SPARSE2
- "2-level sparse arrays"
+ printf("memory usage: (%s)\n", "2-level sparse arrays");
#else
- "3-level sparse arrays"
+ printf("memory usage: (%s)\n", "3-level sparse arrays");
#endif
- );
printf("arrays: %d = %ld bytes\n", narrays,
(long)narrays*sizeof(struct sarray));
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Libc-alpha
mailing list