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

[Patches] Revert some differences from glibc



Examining diffs between glibc and EGLIBC showed some differences that no 
longer serve a purpose, if they ever did; I've applied this patch to 
remove them.  cross-zic is no longer of use now timezone data isn't 
installed by glibc; configure now tests elsewhere for nm, and that GNU awk 
is in use; the crt*.S rework means __i686 undefinitions / redefinitions 
are no longer needed.

Index: timezone/Makefile
===================================================================
--- timezone/Makefile	(revision 21353)
+++ timezone/Makefile	(working copy)
@@ -52,17 +52,8 @@
 include ../Rules
 
 
-zic-objs = zic.o ialloc.o scheck.o
+$(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
 
-$(objpfx)zic: $(addprefix $(objpfx), $(zic-objs))
-
-$(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c
-	$(BUILD_CC) $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
-		-DCROSS_ZIC $(compile-mkdep-flags)
-
-$(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs))
-	$(BUILD_CC) $(addprefix $(objpfx)cross-,$(zic-objs)) -o $@
-
 tz-cflags = -DTZDIR='"$(zonedir)"' \
 	    -DTZDEFAULT='"$(localtime-file)"' \
 	    -DTZDEFRULES='"$(posixrules-file)"' \
@@ -78,17 +69,10 @@
 # Don't add leapseconds here since test-tz made checks that work only without
 # leapseconds.
 testdata = $(objpfx)testdata
-ifeq (no,$(cross-compiling))
 define build-testdata
 GCONV_PATH=${common-objpfx}iconvdata LANGUAGE=C LC_ALL=C \
   $(built-program-cmd) -d $(testdata) -y ./yearistype $<
 endef
-else
-define build-testdata
-LANGUAGE=C LC_ALL=C \
-  $(objpfx)cross-zic -d $(testdata) -y ./yearistype $<
-endef
-endif
 
 $(objpfx)test-tz.out: $(addprefix $(testdata)/, America/New_York Etc/UTC UTC)
 $(objpfx)tst-timezone.out: $(addprefix $(testdata)/, \
@@ -101,11 +85,7 @@
 tst-timezone-ENV = TZDIR=$(testdata)
 
 # Note this must come second in the deps list for $(built-program-cmd) to work.
-ifeq (no,$(cross-compiling))
 zic-deps = $(objpfx)zic $(leapseconds) yearistype
-else
-zic-deps = $(objpfx)cross-zic $(objpfx)zic $(leapseconds) yearistype
-endif
 
 $(testdata)/America/New_York: northamerica $(zic-deps)
 	$(build-testdata)
Index: configure.in
===================================================================
--- configure.in	(revision 21353)
+++ configure.in	(working copy)
@@ -1082,11 +1082,6 @@
 fi
 AC_SUBST(libc_cv_have_ksh)
 
-dnl We need gawk for at least gen-sorted.awk and option-groups.awk.
-if test "x$AWK" != "xgawk"; then
-  AC_MSG_ERROR([GLIBC requires GNU awk.])
-fi
-
 AC_PATH_PROG(PERL, perl, no)
 if test "$PERL" != no &&
    (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
Index: sysdeps/unix/sysv/linux/i386/sysdep.h
===================================================================
--- sysdeps/unix/sysv/linux/i386/sysdep.h	(revision 21353)
+++ sysdeps/unix/sysv/linux/i386/sysdep.h	(working copy)
@@ -27,10 +27,6 @@
 #include <dl-sysdep.h>
 #include <tls.h>
 
-#if defined __i686 && defined __ASSEMBLER__
-#undef __i686
-#define __i686 __i686
-#endif
 
 /* For Linux we can use the system call table in the header file
 	/usr/include/asm/unistd.h
Index: crypt/sha512c-test.c
===================================================================
--- crypt/sha512c-test.c	(revision 21353)
+++ crypt/sha512c-test.c	(working copy)
@@ -60,5 +60,4 @@
 
 #define TIMEOUT 32
 #define TEST_FUNCTION do_test ()
-#define TIMEOUT 4
 #include "../test-skeleton.c"
Index: string/Makefile
===================================================================
--- string/Makefile	(revision 21353)
+++ string/Makefile	(working copy)
@@ -69,7 +69,6 @@
 
 include ../Rules
 
-
 tester-ENV = LANGUAGE=C
 inl-tester-ENV = LANGUAGE=C
 noinl-tester-ENV = LANGUAGE=C
Index: configure
===================================================================
--- configure	(revision 21353)
+++ configure	(working copy)
@@ -630,6 +630,7 @@
 CXX_SYSINCLUDES
 SYSINCLUDES
 AUTOCONF
+NM
 AWK
 SED
 MAKEINFO
@@ -640,7 +641,6 @@
 MIG
 OBJCOPY
 OBJDUMP
-NM
 AR
 LN_S
 INSTALL_DATA
@@ -4703,8 +4703,6 @@
 LD=`$CC -print-prog-name=ld`
 AR=`$CC -print-prog-name=ar`
 
-NM=`$CC -print-prog-name=nm`
-
 OBJDUMP=`$CC -print-prog-name=objdump`
 
 OBJCOPY=`$CC -print-prog-name=objcopy`
@@ -5600,10 +5598,6 @@
 fi
 
 
-if test "x$AWK" != "xgawk"; then
-  as_fn_error $? "GLIBC requires GNU awk." "$LINENO" 5
-fi
-
 # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Index: ChangeLog.eglibc
===================================================================
--- ChangeLog.eglibc	(revision 21353)
+++ ChangeLog.eglibc	(working copy)
@@ -1,3 +1,10 @@
+2012-10-25  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* aclocal.m4, configure.in, crypt/sha512c-test.c, string/Makefile,
+	sysdeps/unix/sysv/linux/i386/sysdep.h, timezone/Makefile: Revert
+	unnecessary differences from glibc.
+	* configure: Regenerated.
+
 2012-10-10  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* elf/Makefile ($(objpfx)tst-rtld-load-self.out): Pass
Index: aclocal.m4
===================================================================
--- aclocal.m4	(revision 21353)
+++ aclocal.m4	(working copy)
@@ -106,8 +106,6 @@
 LD=`$CC -print-prog-name=ld`
 AR=`$CC -print-prog-name=ar`
 AC_SUBST(AR)
-NM=`$CC -print-prog-name=nm`
-AC_SUBST(NM)
 OBJDUMP=`$CC -print-prog-name=objdump`
 AC_SUBST(OBJDUMP)
 OBJCOPY=`$CC -print-prog-name=objcopy`

-- 
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx
_______________________________________________
Patches mailing list
Patches@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/patches