Add __GI__setjmp alias.

This commit is contained in:
Ulrich Drepper 2002-12-31 09:35:36 +00:00
parent e88c122c4f
commit 044758323b
7 changed files with 17 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1992, 1994, 1996, 1997 Free Software Foundation, Inc.
/* Copyright (C) 1992, 1994, 1996, 1997, 2002 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
@ -77,6 +77,7 @@ ENTRY(_setjmp)
mov 0, a1
br $sigsetjmp_local
END(_setjmp)
strong_alias (_setjmp, __GI__setjmp)
ENTRY(setjmp)
ldgp gp, 0(pv)

View File

@ -1,5 +1,5 @@
/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. ARM version.
Copyright (C) 1997, 1998 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 2002 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
@ -27,3 +27,4 @@ ENTRY (_setjmp)
mov r1, #0
b PLTJMP(C_SYMBOL_NAME(__sigsetjmp))
END (_setjmp)
strong_alias (_setjmp, __GI__setjmp)

View File

@ -1,5 +1,5 @@
/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. HPPA version.
Copyright (C) 2001 Free Software Foundation, Inc.
Copyright (C) 2001, 2002 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
@ -17,6 +17,8 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#include <sysdep.h>
/* This just does a tail-call to `__sigsetjmp (ARG, 1)'.
We cannot do it in C because it must be a tail-call, so frame-unwinding
in setjmp doesn't clobber the state restored by longjmp. */
@ -34,3 +36,4 @@ _setjmp:
ldi 0, %r25
.procend
strong_alias (_setjmp, __GI__setjmp)

View File

@ -1,5 +1,5 @@
/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. m68k version.
Copyright (C) 1994, 1997, 2001 Free Software Foundation, Inc.
Copyright (C) 1994, 1997, 2001, 2002 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
@ -19,3 +19,4 @@
#define BSD__SETJMP
#include <sysdeps/m68k/setjmp.c>
libc_hidden_def (_setjmp)

View File

@ -1,5 +1,5 @@
/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. MIPS version.
Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 2000, 2002 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
@ -40,3 +40,4 @@ ENTRY (_setjmp)
j C_SYMBOL_NAME (__sigsetjmp)
#endif
.end _setjmp
strong_alias (_setjmp, __GI__setjmp)

View File

@ -1,5 +1,5 @@
/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. MIPS64 version.
Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 2000, 2002 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
@ -34,3 +34,4 @@ ENTRY (_setjmp)
nop
jr t9
dli a1, 0 /* Pass a second argument of zero. */
strong_alias (_setjmp, __GI__setjmp)

View File

@ -1,5 +1,5 @@
/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. Vax version.
Copyright (C) 1994, 1997 Free Software Foundation, Inc.
Copyright (C) 1994, 1997, 2002 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
@ -23,10 +23,11 @@
#include <sysdep.h>
ENTRY (setjmp)
ENTRY (_setjmp)
popl r0 /* Pop return PC. */
popl r1 /* Pop jmp_buf argument. */
pushl $0 /* Push second argument of zero. */
pushl r1 /* Push back first argument. */
pushl r0 /* Push back return PC. */
jmp C_SYMBOL_NAME (__sigsetjmp)
strong_alias (_setjmp, __GI__setjmp)