2004-04-21  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
	and use it internally instead of __sigsetjmp.
	* sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
	* sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
	* sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
	* sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
	* sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
	* sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
	* sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
	_GI___libm_frexp_4f, _GI___libm_frexp_4l.
	* sysdeps/ia64/fpu/bits/mathinline.h: New file.
	* sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
	HIDDEN_JUMPTARGET for exit call.
	* sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
	_exit call.
	* sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
	* sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
	strcpy calls.
This commit is contained in:
Ulrich Drepper 2004-04-21 23:12:39 +00:00
parent fe681416b1
commit ab8dc78f71
13 changed files with 167 additions and 84 deletions

View File

@ -1,3 +1,24 @@
2004-04-21 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
and use it internally instead of __sigsetjmp.
* sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
* sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
* sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
* sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
* sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
* sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
* sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
_GI___libm_frexp_4f, _GI___libm_frexp_4l.
* sysdeps/ia64/fpu/bits/mathinline.h: New file.
* sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
HIDDEN_JUMPTARGET for exit call.
* sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
_exit call.
* sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
* sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
strcpy calls.
2004-04-21 Jakub Jelinek <jakub@redhat.com>
* posix/tst-chmod.c (do_test): Fix a typo.

View File

@ -6,5 +6,5 @@ ENTRY(bcopy)
mov in0 = in1
;;
mov in1 = r8
br.cond.sptk.many memmove
br.cond.sptk.many HIDDEN_JUMPTARGET(memmove)
END(bcopy)

View File

@ -0,0 +1,54 @@
/* Inline math functions for ia64.
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#ifndef _MATH_H
# error "Never use <bits/mathinline.h> directly; include <math.h> instead."
#endif
#ifdef __cplusplus
# define __MATH_INLINE __inline
#else
# define __MATH_INLINE extern __inline
#endif
#if defined __USE_ISOC99 && defined __GNUC__ && __GNUC__ >= 2
/* The gcc, version 2.7 or below, has problems with all this inlining
code. So disable it for this version of the compiler. */
# if __GNUC_PREREQ (2, 8)
/* Test for negative number. Used in the signbit() macro. */
__MATH_INLINE int
__signbitf (float __x) __THROW
{
__extension__ union { float __f; int __i; } __u = { __f: __x };
return __u.__i < 0;
}
__MATH_INLINE int
__signbit (double __x) __THROW
{
__extension__ union { double __d; int __i[2]; } __u = { __d: __x };
return __u.__i[1] < 0;
}
__MATH_INLINE int
__signbitl (long double __x) __THROW
{
__extension__ union { long double __l; int __i[3]; } __u = { __l: __x };
return (__u.__i[2] & 0x8000) != 0;
}
# endif
#endif

View File

@ -196,3 +196,4 @@ __libm_frexp_4:
.endp __libm_frexp_4
ASM_SIZE_DIRECTIVE(__libm_frexp_4)
strong_alias(__libm_frexp_4, _GI___libm_frexp_4)

View File

@ -196,3 +196,4 @@ __libm_frexp_4f:
.endp __libm_frexp_4f
ASM_SIZE_DIRECTIVE(__libm_frexp_4f)
strong_alias(__libm_frexp_4f, _GI___libm_frexp_4f)

View File

@ -195,3 +195,4 @@ __libm_frexp_4l:
.endp __libm_frexp_4l
ASM_SIZE_DIRECTIVE(__libm_frexp_4l)
strong_alias(__libm_frexp_4l, _GI___libm_frexp_4l)

View File

@ -53,10 +53,13 @@
#include <math.h>
float __libm_frexp_4f( float x, int* exp);
float _GI___libm_frexp_4f( float x, int* exp);
float __libm_frexp_8f( float x, int* exp);
double __libm_frexp_4( double x, int* exp);
double _GI___libm_frexp_4( double x, int* exp);
double __libm_frexp_8( double x, int* exp);
long double __libm_frexp_4l( long double x, int* exp);
long double _GI___libm_frexp_4l( long double x, int* exp);
long double __libm_frexp_8l( long double x, int* exp);
void __libm_sincos_pi4(double,double*,double*,int);
void __libm_y0y1(double , double *, double *);

View File

@ -49,7 +49,7 @@ double frexp(double x, int *y)
#else
#ifdef SIZE_INT_32
return( __libm_frexp_4(x, y) );
return( _GI___libm_frexp_4(x, y) );
#endif
#endif

View File

@ -49,7 +49,7 @@ float frexpf(float x, int *y)
#else
#ifdef SIZE_INT_32
return( __libm_frexp_4f(x, y) );
return( _GI___libm_frexp_4f(x, y) );
#endif
#endif

View File

@ -49,7 +49,7 @@ long double frexpl(long double x, int *y)
#else
#ifdef SIZE_INT_32
return( __libm_frexp_4l(x, y) );
return( _GI___libm_frexp_4l(x, y) );
#endif
#endif

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2001 Free Software Foundation, Inc.
/* Copyright (C) 2001, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>.
@ -46,7 +46,7 @@ ENTRY(__start_context)
(p6) br.call.sptk rp = __setcontext
.Lexit:
mov out0 = 0
br.call.sptk rp = exit
br.call.sptk rp = HIDDEN_JUMPTARGET(exit)
1: br.cond.sptk .Lexit
END(__start_context)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
/* Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -72,8 +72,9 @@ ENTRY(__clone2)
br.call.dptk.many rp=b6 /* Call fn(arg) in the child */
;;
mov out0=r8 /* Argument to _exit */
.globl _exit
br.call.dpnt.many rp=_exit /* call _exit with result from fn. */
.globl HIDDEN_JUMPTARGET(_exit)
br.call.dpnt.many rp=HIDDEN_JUMPTARGET(_exit)
/* call _exit with result from fn. */
ret /* Not reached. */
PSEUDO_END(__clone2)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
/* Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>.
The GNU C Library is free software; you can redistribute it and/or
@ -72,13 +72,13 @@
LEAF(setjmp)
alloc r8=ar.pfs,2,0,0,0
mov in1=1
br.cond.sptk.many __sigsetjmp
br.cond.sptk.many _GI___sigsetjmp
END(setjmp)
LEAF(_setjmp)
alloc r8=ar.pfs,2,0,0,0
mov in1=0
br.cond.sptk.many __sigsetjmp
br.cond.sptk.many _GI___sigsetjmp
END(_setjmp)
libc_hidden_def (_setjmp)
@ -177,6 +177,7 @@ ENTRY(__sigsetjmp)
mov r8=0
ret
END(__sigsetjmp)
strong_alias(__sigsetjmp, _GI___sigsetjmp)
weak_extern(_setjmp)
weak_extern(setjmp)