1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2002-03-17  Andreas Jaeger  <aj@suse.de>

	* sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.

	* sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.

	* sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
	bits.

	* sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
	(CAUSE_SHIFT): New.
	Patch by Hartvig Ekner <hartvige@mips.com>.

        * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
        * sysdeps/generic/unwind-pe.h: Likewise.

        * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
        type to _IO_setb.

	* libio/stdio.c (AL2): Define variant when visibility attribute is
	not supported.

	* include/libc-symbols.h (_INTVARDEF): Define variant when
	visibility attribute is not supported.
This commit is contained in:
Andreas Jaeger
2002-03-17 12:09:12 +00:00
parent 9ea502f95c
commit 7f0244deed
6 changed files with 55 additions and 8 deletions

View File

@ -1,3 +1,28 @@
2002-03-17 Andreas Jaeger <aj@suse.de>
* sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
* sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
* sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
bits.
* sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
(CAUSE_SHIFT): New.
Patch by Hartvig Ekner <hartvige@mips.com>.
* sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
* sysdeps/generic/unwind-pe.h: Likewise.
* libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
type to _IO_setb.
* libio/stdio.c (AL2): Define variant when visibility attribute is
not supported.
* include/libc-symbols.h (_INTVARDEF): Define variant when
visibility attribute is not supported.
2002-03-16 Ulrich Drepper <drepper@redhat.com> 2002-03-16 Ulrich Drepper <drepper@redhat.com>
* po/fr.po: Update from translation team. * po/fr.po: Update from translation team.

View File

@ -362,9 +362,14 @@
# define INTDEF(name) strong_alias (name, name##_internal) # define INTDEF(name) strong_alias (name, name##_internal)
# define INTVARDEF(name) \ # define INTVARDEF(name) \
_INTVARDEF (name, name##_internal) _INTVARDEF (name, name##_internal)
# define _INTVARDEF(name, aliasname) \ # if defined HAVE_VISIBILITY_ATTRIBUTE
# define _INTVARDEF(name, aliasname) \
extern __typeof (name) aliasname __attribute__ ((alias (#name), \ extern __typeof (name) aliasname __attribute__ ((alias (#name), \
visibility ("hidden"))); visibility ("hidden")));
# else
# define _INTVARDEF(name, aliasname) \
extern __typeof (name) aliasname __attribute__ ((alias (#name)));
# endif
# define INTDEF2(name, newname) strong_alias (name, newname##_internal) # define INTDEF2(name, newname) strong_alias (name, newname##_internal)
# define INTVARDEF2(name, newname) _INTVARDEF (name, newname##_internal) # define INTVARDEF2(name, newname) _INTVARDEF (name, newname##_internal)
#else #else

View File

@ -132,7 +132,7 @@ _IO_new_fdopen (fd, mode)
#endif #endif
if (INTUSE(_IO_file_attach) ((_IO_FILE *) &new_f->fp, fd) == NULL) if (INTUSE(_IO_file_attach) ((_IO_FILE *) &new_f->fp, fd) == NULL)
{ {
INTUSE(_IO_setb) (&new_f->fp, NULL, NULL, 0); INTUSE(_IO_setb) (&new_f->fp.file, NULL, NULL, 0);
INTUSE(_IO_un_link) (&new_f->fp); INTUSE(_IO_un_link) (&new_f->fp);
free (new_f); free (new_f);
return NULL; return NULL;

View File

@ -40,9 +40,14 @@ _IO_FILE *stderr = (FILE *) &_IO_2_1_stderr_;
#undef _IO_stderr #undef _IO_stderr
#ifdef _LIBC #ifdef _LIBC
# define AL(name) AL2 (name, _IO_##name) # define AL(name) AL2 (name, _IO_##name)
# define AL2(name, al) \ # if defined HAVE_VISIBILITY_ATTRIBUTE
extern __typeof (name) al __attribute__ ((alias (#name), \ # define AL2(name, al) \
visibility ("hidden"))) extern __typeof (name) al __attribute__ ((alias (#name), \
visibility ("hidden")))
# else
# define AL2(name, al) \
extern __typeof (name) al __attribute__ ((alias (#name)))
# endif
AL(stdin); AL(stdin);
AL(stdout); AL(stdout);
AL(stderr); AL(stderr);

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2001 Free Software Foundation, Inc. /* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Contributed by Jakub Jelinek <jakub@redhat.com>. Contributed by Jakub Jelinek <jakub@redhat.com>.
This file is part of GNU CC. This file is part of GNU CC.
@ -44,7 +44,9 @@
#undef _Unwind_Find_FDE #undef _Unwind_Find_FDE
fde * _Unwind_Find_registered_FDE (void *pc, struct dwarf_eh_bases *bases); extern fde * _Unwind_Find_registered_FDE (void *pc,
struct dwarf_eh_bases *bases);
extern fde * _Unwind_Find_FDE (void *, struct dwarf_eh_bases *);
struct unw_eh_callback_data struct unw_eh_callback_data
{ {

View File

@ -1,5 +1,5 @@
/* Exception handling and frame unwind runtime interface routines. /* Exception handling and frame unwind runtime interface routines.
Copyright (C) 2001 Free Software Foundation, Inc. Copyright (C) 2001, 2002 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
@ -52,6 +52,16 @@
#define DW_EH_PE_indirect 0x80 #define DW_EH_PE_indirect 0x80
#ifdef _LIBC
/* Prototypes. */
extern unsigned int size_of_encoded_value (unsigned char encoding);
extern const unsigned char *read_encoded_value_with_base
(unsigned char encoding, _Unwind_Ptr base,
const unsigned char *p, _Unwind_Ptr *val);
#endif
/* Given an encoding, return the number of bytes the format occupies. /* Given an encoding, return the number of bytes the format occupies.
This is only defined for fixed-size encodings, and so does not This is only defined for fixed-size encodings, and so does not
include leb128. */ include leb128. */