From: "Paulo J. Matos" <paulo@matos-sorge.com>
To: gcc@gcc.gnu.org
Subject: Re: fold_builtin changes tree
Date: Tue, 20 Mar 2012 10:22:00 -0000 [thread overview]
Message-ID: <jk9lnp$ge8$1@dough.gmane.org> (raw)
In-Reply-To: <mcr8vivn7nw.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
On Mon, 19 Mar 2012 22:49:39 -0700, Ian Lance Taylor wrote:
>
> I'm not sure what you are folding the builtin to, but perhaps you could
> retain a reference to the function.
>
I am folding the function call __function_size(foobar) to a new symbol
foobar@size. The reference to function foobar disappears. Can I keep a
reference foobar attached to the symbol somehow?
> Or, you could write a tiny pass which set DECL_PRESERVED_P for each
> function passed to __function_size.
>
Might do as a last resort.
> Or, perhaps you could handle it in expand_builtin rather than
> fold_builtin.
>
I thought that the only way to replace a builtin expression was to use
fold_builtin and expand_builtin had other purposes. How can I use the
expand_builtin to do replacement?
Cheers,
Paulo Matos
--
PMatos
next prev parent reply other threads:[~2012-03-20 10:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 17:51 Paulo J. Matos
2012-03-20 5:50 ` Ian Lance Taylor
2012-03-20 10:22 ` Paulo J. Matos [this message]
2012-03-20 10:30 ` Jakub Jelinek
2012-03-21 16:30 ` Paulo J. Matos
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='jk9lnp$ge8$1@dough.gmane.org' \
--to=paulo@matos-sorge.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).