]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/alpha/clone.S: Correct .prologue usage.
authorRichard Henderson <rth@redhat.com>
Sat, 2 May 1998 00:16:05 +0000 (00:16 +0000)
committerRichard Henderson <rth@redhat.com>
Sat, 2 May 1998 00:16:05 +0000 (00:16 +0000)
sysdeps/unix/sysv/linux/alpha/clone.S

index aab4e590a5501f79a8dc2b494d04bce55a6f9ad3..738b3be6cb79448d616d20572c109537f64e13fc 100644 (file)
 ENTRY(__clone)
        .frame  sp,0,ra,0
 #ifdef PROF
+       ldgp    $29,0($27)
        .set noat
        lda     AT, _mcount
        jsr     AT, (AT), _mcount
        .set at
-#endif
        .prologue 1
+#else
+       .prologue 0
+#endif
 
        /* Sanity check arguments.  */
        ldiq    v0,EINVAL
@@ -60,8 +63,10 @@ ENTRY(__clone)
 
        /* Something bad happened -- no child created */
 $error:
+#ifndef PROF
        br      gp,1f
 1:     ldgp    gp,0(gp)
+#endif
        jmp     zero,__syscall_error
 
        END(__clone)