From: Ian Lance Taylor <ian@wasabisystems.com>
To: <gcc@gcc.gnu.org>
Subject: Re: register variable is clobbered by passing parameter to a function
Date: Tue, 16 Mar 2004 13:00:00 -0000 [thread overview]
Message-ID: <m3wu5laqvg.fsf@gossamer.airs.com> (raw)
In-Reply-To: <NUTMEGwFCHOzyfyz5b60000014b@NUTMEG.CAM.ARTIMI.COM>
"Dave Korn" <dk@artimi.com> writes:
> Wolfgang, your best bet is probably to just add -fixed-r16 to your
> compile-time flags. And don't call any library functions that were compiled
> without it.
This is AVR, and he is trying to use r16. According to
function_arg_regno_p() in avr.c, that register can be used to pass
parameters to functions. gcc can't handle declaring a register used
for parameter passing as fixed.
Trying to do that is an implicit ABI change anyhow. Maybe gcc should
warn about this, but it doesn't.
Ian
next prev parent reply other threads:[~2004-03-16 13:00 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
2004-03-16 12:43 ` Dave Korn
2004-03-16 13:00 ` Ian Lance Taylor [this message]
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=m3wu5laqvg.fsf@gossamer.airs.com \
--to=ian@wasabisystems.com \
--cc=gcc@gcc.gnu.org \
/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).