public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Michael Matz <matz@suse.de>
To: Wolfgang Kuehn <wolfgang.kuehn@kristensen.de>
Cc: Richard Henderson <rth@redhat.com>, gcc@gcc.gnu.org
Subject: Re: register variable is clobbered by passing parameter to a function
Date: Tue, 16 Mar 2004 12:39:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.58.0403161334040.26679@wotan.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0403161322580.26679@wotan.suse.de>

Hi,

On Tue, 16 Mar 2004, Michael Matz wrote:

> > may be useful in programs such as programming language interpreters which
> > have a couple of global variables that are accessed very often.
> 
> This says nothing about local register variables, like you used.

Excuse me, I confused you with another one ;-)  Your problem is that r16 
is used to pass arguments.  The use of that register as gobal register var 
doesn't prevent this, so it will be changed over function calls.


Ciao,
Michael.

  reply	other threads:[~2004-03-16 12:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15 10:54 Wolfgang Kuehn
2004-03-15 22:51 ` Richard Henderson
2004-03-16 11:50   ` Wolfgang Kuehn
2004-03-16 12:30     ` Michael Matz
2004-03-16 12:39       ` Michael Matz [this message]
2004-03-16 12:43       ` Dave Korn
2004-03-16 13:00         ` Ian Lance Taylor
2004-03-16 13:21           ` Dave Korn
2004-03-16 10:20 ` Dave Korn
2004-03-16 14:18 Wolfgang Kuehn
2004-03-16 14:47 ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0403161334040.26679@wotan.suse.de \
    --to=matz@suse.de \
    --cc=gcc@gcc.gnu.org \
    --cc=rth@redhat.com \
    --cc=wolfgang.kuehn@kristensen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).