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

[commits] r8351 - in /fsf/trunk/ports: ./ sysdeps/hppa/ sysdeps/unix/sysv/linux/hppa/ sysdeps/unix/sysv/linux/hppa/bits/



Author: eglibc
Date: Fri Apr 24 00:05:20 2009
New Revision: 8351

Log:
Import glibc-ports-mainline for 2009-04-24

Modified:
    fsf/trunk/ports/ChangeLog.hppa
    fsf/trunk/ports/sysdeps/hppa/dl-machine.h
    fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h
    fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h

Modified: fsf/trunk/ports/ChangeLog.hppa
==============================================================================
--- fsf/trunk/ports/ChangeLog.hppa (original)
+++ fsf/trunk/ports/ChangeLog.hppa Fri Apr 24 00:05:20 2009
@@ -1,3 +1,18 @@
+2009-04-23  Carlos O'Donell  <carlos@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/hppa/dl-machine.h: Remove VALID_ELF_OSABI,
+	VALID_ELF_ABIVERSION, and VALID_ELF_HEADER.
+
+2009-04-23  Carlos O'Donell  <carlos@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Do not include
+	sysdep.h. Document the reason for other includes.
+
+2009-04-23  Carlos O'Donell  <carlos@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/hppa/sysdep.h [!__ASSEMBLER__]:
+	Include errno.h.
+
 2009-02-25  Carlos O'Donell  <carlos@xxxxxxxxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h:

Modified: fsf/trunk/ports/sysdeps/hppa/dl-machine.h
==============================================================================
--- fsf/trunk/ports/sysdeps/hppa/dl-machine.h (original)
+++ fsf/trunk/ports/sysdeps/hppa/dl-machine.h Fri Apr 24 00:05:20 2009
@@ -32,13 +32,6 @@
 #include <dl-fptr.h>
 #include <abort-instr.h>
 #include <tls.h>
-
-# define VALID_ELF_OSABI(osabi)		((osabi == ELFOSABI_SYSV) || (osabi == ELFOSABI_LINUX))
-# define VALID_ELF_ABIVERSION(ver)	(ver == 0)
-# define VALID_ELF_HEADER(hdr,exp,size) \
-  memcmp (hdr,exp,size-2) == 0 \
-  && VALID_ELF_OSABI (hdr[EI_OSABI]) \
-  && VALID_ELF_ABIVERSION (hdr[EI_ABIVERSION])
 
 /* These two definitions must match the definition of the stub in 
    bfd/elf32-hppa.c (see plt_stub[]).

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h Fri Apr 24 00:05:20 2009
@@ -17,10 +17,9 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#include <stdint.h>
-#include <sysdep.h>
-#include <abort-instr.h>
-#include <kernel-features.h>
+#include <stdint.h> /*  Required for type definitions e.g. uint8_t.  */
+#include <abort-instr.h> /*  Required for ABORT_INSTRUCTIUON.  */
+#include <kernel-features.h> /*  Required for __ASSUME_LWS_CAS.  */
 
 /* We need EFAULT, ENONSYS */
 #if !defined EFAULT && !defined ENOSYS

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h Fri Apr 24 00:05:20 2009
@@ -23,6 +23,11 @@
 #include <asm/unistd.h>
 #include <sysdeps/generic/sysdep.h>
 #include <sys/syscall.h>
+
+/* In order to get __set_errno() definition in INLINE_SYSCALL.  */
+#ifndef __ASSEMBLER__
+#include <errno.h>
+#endif
 
 #undef ASM_LINE_SEP
 #define ASM_LINE_SEP !