Commit graph

3242 commits

Author SHA1 Message Date
Richard Henderson 7bd9f5453c * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
!samegp relocation.
2004-01-16 06:02:52 +00:00
Richard Henderson 56a46fe4b9 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal. 2004-01-16 05:59:42 +00:00
Richard Henderson bbbfa1b98e * sysdeps/alpha/tls.h (tcbhead_t): Add private.
(TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN, TLS_TCB_SIZE,
        TLS_PRE_TCB_SIZE, TLS_TCB_ALIGN, INSTALL_DTV, INSTALL_NEW_DTV,
        GET_DTV, THREAD_DTV, THREAD_SELF, DB_THREAD_SELF): Match ia64.
        (TLS_TCB_OFFSET, THREAD_ID, NO_TLS_OFFSET): Remove.
        (THREAD_GETMEM, THREAD_GETMEM_NC): Simplify.
        (THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
        * sysdeps/unix/sysv/linux/alpha/createthread.c (TLS_VALUE): Match ia64.
2004-01-16 05:23:05 +00:00
Richard Henderson 4dbd216dc3 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
ucontext-offsets.sym.
        * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
        * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
        * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
        * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
        * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
2004-01-16 05:04:59 +00:00
Richard Henderson 83c784e84c * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
__syscall_, move nop inside, adjust users by +4.
2004-01-16 04:59:55 +00:00
Richard Henderson df6e7e29eb * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo. 2004-01-13 20:47:01 +00:00
Richard Henderson b17d80b12f * sysdeps/alpha/Makefile: New file.
* sysdeps/alpha/tcb-offsets.sym: New file.
        * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
        Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.

        * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
        on powerpc version.
2004-01-13 09:36:22 +00:00
Richard Henderson cfbf1a2f78 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
Cast old up to uint64_t before back down to inner width.
        (__arch_compare_and_exchange_xxx_16_int): Likewise.
        (__arch_compare_and_exchange_xxx_32_int): Likewise.
        (__arch_compare_and_exchange_xxx_64_int): Likewise.
        (__arch_compare_and_exchange_val_8_int): Cast result to
        the type of the memory.
        (__arch_compare_and_exchange_val_16_int): Likewise.
        (__arch_compare_and_exchange_val_32_int): Likewise.
        (__arch_compare_and_exchange_val_64_int): Likewise.
        (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
        (atomic_compare_and_exchange_bool_rel): Likewise.

        * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
        based on HAVE___THREAD instead of USE_TLS.

        * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
        (__adjtimex_tv64): Use it.

        * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
        to void* rather than directly to the compatibility structure type.
        * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.

        * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
        Forward declare.
2004-01-13 09:15:58 +00:00
Richard Henderson 9e42ca8f27 * Versions.def (libm): Add GLIBC_2.3.3.
* sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
	* sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
	sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
	sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
	sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
	sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
	sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
	sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
	sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
	sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
	sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
	sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
	sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
	* sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
	functions for gcc 3.3.

	* sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
	sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
	sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
	sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
	sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
	sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
	sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
	sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
	sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
	weak_alias if the function name has been #defined.

	* math/cabsf.c: Move ...
	* sysdeps/generic/cabsf.c: ... here.
	* math/cargf.c: Move ...
	* sysdeps/generic/cargf.c: ... here.
	* math/cimagf.c: Move ...
	* sysdeps/generic/cimagf.c: ... here.
	* math/conjf.c: Move ...
	* sysdeps/generic/conjf.c: ... here.
	* math/crealf.c: Move ...
	* sysdeps/generic/crealf.c: ... here.
2004-01-13 09:08:04 +00:00
Roland McGrath b1c81c0040 2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
* sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
	register as second parameter to the REGISTER macro.
	* sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
	* sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
	* sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
	* sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
	* sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
	of thread register as second parameter to REGISTER macro in 64 case.
2004-01-06 10:31:07 +00:00
Andreas Schwab 646ae9f228 Avoid matching memory constraints. 2003-12-21 17:31:58 +00:00
Ulrich Drepper e445ac3d49 Setjmp buffer unwinding helper code for Alpha. 2003-12-19 01:35:07 +00:00
Ulrich Drepper 46bf1d81a4 (__clone) [PIC]: Save PIC, reload PIC if we need to call __syscall_error,
cleanup asm.
2003-12-18 06:05:03 +00:00
Ulrich Drepper c1f024c3e1 (fesetexceptflag): Set enable bits not raised exception bits. 2003-12-18 03:58:26 +00:00
Ulrich Drepper 2da72a511e (feraiseexcept): Add delayed exception flushing, FE_UNDERFLOW is DBL_MIN/3.0,
FE_INEXACT is triggered by M_PI/69.69 converted to single precision.
2003-12-18 03:58:09 +00:00
Ulrich Drepper 1bff455e8a (feupdateenv): Read raised exception bits, OR with envp, pass to fesetenv. 2003-12-18 03:57:50 +00:00
Ulrich Drepper c5cf6f4a3d (fesetenv): Use asm 'ma,' completer, and gcc '+r' constraint. 2003-12-18 03:57:31 +00:00
Ulrich Drepper 4923dcf1bd (feholdexcept): Use asm 'ma,' completer, and gcc '+r' constraint. 2003-12-18 03:57:14 +00:00
Ulrich Drepper 78f9fd6419 (fegetenv): use asm 'ma,' completer, and gcc '+r' constraint. 2003-12-18 03:56:50 +00:00
Ulrich Drepper 4db359168e (feclearexcept): Right shift FE_ALL_EXCEPT before complimenting. 2003-12-18 03:56:15 +00:00
Ulrich Drepper 69751d3f42 DL_LOOKUP_ADDRESS must clear PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and DL_DT_FINI_ADDRESS use the
previous two macros.
2003-12-18 03:53:47 +00:00
Ulrich Drepper ba0b86d09f (_dl_symbol_address): Use _dl_make_ftpr, remove const qualifier for map.
(_dl_function_address): Removed.
2003-12-18 03:53:22 +00:00
Ulrich Drepper 866956e5c3 Not needed anymore. 2003-12-18 03:53:02 +00:00
Ulrich Drepper 1294f72885 Configuration for hppa function descriptor handling. 2003-12-18 03:52:28 +00:00
Ulrich Drepper dfc6dfb9a6 Add dl-symaddr and dl-fptr to the correct build strings. 2003-12-18 03:51:49 +00:00
Andreas Jaeger c34667d768 Mark sqrt_data as used. 2003-12-10 05:45:29 +00:00
Ulrich Drepper d9f0b23a78 (__fegetexceptflag): Add masking of fenv. 2003-12-06 07:16:41 +00:00
Andreas Schwab fd1f2c4aab (PSEUDO_ERRVAL)
(PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
2003-11-30 16:44:48 +00:00
Ulrich Drepper 49096d939f (LOAD_ARGS_0) (LOAD_ARGS_1, LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4)
(LOAD_ARGS_5, LOAD_ARGS_6): Add missing parentheses.
2003-11-03 17:18:38 +00:00
Roland McGrath fb86edea20 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
2003-10-22 07:09:31 +00:00
Ulrich Drepper f19a935e1b Define PSEUDO_ERRVAL, SYSCALL_ERROR_LABEL under all conditions,
INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERROR_P,
INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL, and undef
JUMPTARGET before use.
[PIC]: Save pic register around syscall.
2003-10-15 05:46:00 +00:00
Ulrich Drepper 5420f85dbe (syscall): Cleanup asm statment. 2003-10-15 05:45:16 +00:00
Ulrich Drepper aca984867e Undef JUMPTARGET before use. 2003-10-15 05:31:42 +00:00
Roland McGrath 6f12dcc7b8 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2003-10-11 01:28:59 +00:00
Roland McGrath 66a1dc8705 2003-09-10 Chris Demetriou <cgd@broadcom.com>
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
	"#if 0" surrounding most of contents.
	(SYSCALL_ERROR_LABEL): Define.
	(__SYSCALL_CLOBBERS): Add $10.
	(internal_syscall7): Remove.
	* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2003-10-01 06:59:40 +00:00
Ulrich Drepper 3d87932d45 Define PROT_GROWSDOWN and PROT_GROWSUP. 2003-09-25 16:42:43 +00:00
Ulrich Drepper b82390a8da (RTLD_START): Remove setting of __libc_stack_end. 2003-09-24 21:08:31 +00:00
Ulrich Drepper aec9c3ef29 Not needed anymore. 2003-09-24 05:36:39 +00:00
Ulrich Drepper de251c974b [GLIBC_2.2]: Add __clz_tab. 2003-09-24 03:14:27 +00:00
Ulrich Drepper e62e873e95 Add libgcc-compat.c. 2003-09-24 03:14:14 +00:00
Ulrich Drepper 131d66906b libgcc compatibility code. 2003-09-24 03:13:56 +00:00
Ulrich Drepper f32742b088 Include compat code in build. 2003-09-24 03:13:28 +00:00
Ulrich Drepper 011f9a85d2 Add #error if __NR_vfork required but not defined.
Improve test of error code.
2003-09-17 18:09:53 +00:00
Ulrich Drepper 644d82249f (DO_RET): New. 2003-09-17 18:09:36 +00:00
Ulrich Drepper 12a15026b8 (CALL_ROUTINE): Deleted.
(BX): Define.
(ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
2003-09-17 18:09:25 +00:00
Ulrich Drepper 170880ee26 Branch to fork if libpthread is loaded. Elide backwards compatibility code
when not required.
2003-09-17 18:07:04 +00:00
Roland McGrath 5abcf86949 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net> Hans-Peter Nilsson <hp@axis.com>
* sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
	R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT.  Clarify comment.
2003-09-17 02:47:48 +00:00
Andreas Schwab 3dc8a4b254 Add hidden_def. 2003-09-15 08:43:12 +00:00
Ulrich Drepper 60f4eece70 Optimise code a little. 2003-09-14 19:54:53 +00:00
Ulrich Drepper 2c65912458 Use sys_mmap2 if it's known to be available. 2003-09-14 19:54:40 +00:00