alpha setjmp fixlet
Richard Henderson
rth@twiddle.net
Tue Jun 24 17:25:00 GMT 2003
Building with -msmall-text causes the compiler to use bsr !samegp,
and the linker enforces the presense of a .prologue marker that
declares whether the gp is computed or not.
Committed.
r~
* sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
Index: sysdeps/alpha/setjmp.S
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/alpha/setjmp.S,v
retrieving revision 1.18
diff -c -p -d -u -r1.18 setjmp.S
--- sysdeps/alpha/setjmp.S 31 Dec 2002 20:37:22 -0000 1.18
+++ sysdeps/alpha/setjmp.S 24 Jun 2003 16:16:09 -0000
@@ -74,6 +74,7 @@ END(__sigsetjmp)
ENTRY(_setjmp)
ldgp gp, 0(pv)
+ .prologue 1
mov 0, a1
br $sigsetjmp_local
END(_setjmp)
@@ -81,6 +82,7 @@ libc_hidden_def (_setjmp)
ENTRY(setjmp)
ldgp gp, 0(pv)
+ .prologue 1
mov 1, a1
br $sigsetjmp_local
END(setjmp)
More information about the Libc-alpha
mailing list