* elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
	duplicated variable c.

	* sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
	if possible.
	Add hack to prevent the compiler from clobbering the signal context.
This commit is contained in:
Ulrich Drepper 2002-10-12 06:34:56 +00:00
parent f44476711d
commit cc12f2a442
3 changed files with 24 additions and 24 deletions

View File

@ -1,15 +1,17 @@
2002-10-11 Ulrich Drepper <drepper@redhat.com> 2002-10-11 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
INTERNAL_SYSCALL is possible. duplicated variable c.
* sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
if possible.
* sysdeps/unix/sysv/linux/i386/sysdep.h * sysdeps/unix/sysv/linux/i386/sysdep.h
(INTERNAL_SYSCALL_ERROR_P): New define. (INTERNAL_SYSCALL_ERROR_P): New define.
(INTERNAL_SYSCALL_ERRNO): Likewise. (INTERNAL_SYSCALL_ERRNO): Likewise.
* sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
Add hack to prevent the compiler from clobbering the signal Add hack to prevent the compiler from clobbering the signal context.
context.
2002-10-11 Roland McGrath <roland@redhat.com> 2002-10-11 Roland McGrath <roland@redhat.com>

View File

@ -916,8 +916,7 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
goto call_lose; goto call_lose;
} }
{ c = &loadcmds[nloadcmds++];
struct loadcmd *c = &loadcmds[nloadcmds++];
c->mapstart = ph->p_vaddr & ~(ph->p_align - 1); c->mapstart = ph->p_vaddr & ~(ph->p_align - 1);
c->mapend = ((ph->p_vaddr + ph->p_filesz + GL(dl_pagesize) - 1) c->mapend = ((ph->p_vaddr + ph->p_filesz + GL(dl_pagesize) - 1)
& ~(GL(dl_pagesize) - 1)); & ~(GL(dl_pagesize) - 1));
@ -938,7 +937,6 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
if (ph->p_flags & PF_X) if (ph->p_flags & PF_X)
c->prot |= PROT_EXEC; c->prot |= PROT_EXEC;
#endif #endif
}
break; break;
case PT_TLS: case PT_TLS:

View File

@ -316,7 +316,7 @@ asm (".L__X'%ebx = 1\n\t"
(int) resultvar; }) (int) resultvar; })
#undef INTERNAL_SYSCALL_ERROR_P #undef INTERNAL_SYSCALL_ERROR_P
#define INTERNAL_SYSCALL_ERROR_P(val) ((val) >= 0xfffff001) #define INTERNAL_SYSCALL_ERROR_P(val) ((unsigned int) (val) >= 0xfffff001u)
#undef INTERNAL_SYSCALL_ERRNO #undef INTERNAL_SYSCALL_ERRNO
#define INTERNAL_SYSCALL_ERRNO(val) (-(val)) #define INTERNAL_SYSCALL_ERRNO(val) (-(val))