]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
crtbegin.asm: The normal calling convention for alpha is to re-initialize gp using...
authorDavid O'Brien <obrien@FreeBSD.org>
Fri, 31 Aug 2001 15:20:36 +0000 (15:20 +0000)
committerDavid O'Brien <obrien@gcc.gnu.org>
Fri, 31 Aug 2001 15:20:36 +0000 (15:20 +0000)
2001-08-29  David O'Brien  <obrien@FreeBSD.org>
* config/alpha/crtbegin.asm: The normal calling convention for alpha is
to re-initialize gp using 'ldgp gp,0(ra)' after a jsr instruction.

Approved by:  Bernd Schmidt <bernds@redhat.com>
              <Pine.LNX.4.33.0108311210340.27963-100000@host140.cambridge.redhat.com>

From-SVN: r45321

gcc/ChangeLog
gcc/config/alpha/crtbegin.asm

index 9a1a03ed76735dccf44e1e64fdc238f4355e0224..402bc45cb2160758b06e7eb85865a6e0656abe30 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-29  David O'Brien  <obrien@FreeBSD.org>
+
+       * config/alpha/crtbegin.asm: The normal calling convention for alpha is
+       to re-initialize gp using 'ldgp gp,0(ra)' after a jsr instruction.
+
 2001-06-19  Bernd Schmidt  <bernds@redhat.com>
 
        * regmove.c (optimize_reg_copy_3): Do nothing if previous insn
index f954f1ab0d3e55670131a60c85b33d240ac9f045..6350d4722a53d549adc9e69a7400e2d179608edc 100644 (file)
@@ -68,6 +68,7 @@ __EH_FRAME_BEGIN__:
        br      $29,1f
 1:     ldgp    $29,0($29)
        jsr     $26,__do_global_dtors_aux
+       ldgp    $29,0($26)
 
        # Ideally this call would go in crtend.o, except that we can't
        # get hold of __EH_FRAME_BEGIN__ there.