From: Richard Earnshaw <Richard.Earnshaw@foss.arm.com>
To: tbsaunde+gcc@tbsaunde.org, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH 0/9] start converting POINTER_SIZE to a hook
Date: Wed, 29 Jul 2015 10:40:00 -0000 [thread overview]
Message-ID: <55B8A808.3020303@foss.arm.com> (raw)
In-Reply-To: <1437966615-21093-1-git-send-email-tbsaunde+gcc@tbsaunde.org>
On 27/07/15 04:10, tbsaunde+gcc@tbsaunde.org wrote:
> From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>
> Hi,
>
> $subject.
>
> patches individually bootstrapped + regtested on x86_64-linux-gnu, and run
> through config-list.mk with more patches removing usage of the macro. Ok?
>
> Trev
>
> Trevor Saunders (9):
> remove POINTER_SIZE_UNITS macro
> add pointer_size target hook
> target.h: change to use targetm.pointer_size instead of POINTER_SIZE
> varasm.c: switch from POINTER_SIZE to targetm.pointer_size ()
> ubsan.c: switch from POINTER_SIZE to targetm.pointer_size ()
> tree-chkp.c: switch to targetm.pointer_size ()
> stor-layout.c: switch to targetm.pointer_size ()
> tree.c: switch to targetm.pointer_size ()
> emit-rtl.c: switch to targetm.pointer_size ()
>
> gcc/c-family/c-cppbuiltin.c | 2 +-
> gcc/defaults.h | 3 ---
> gcc/doc/tm.texi | 7 +++++++
> gcc/doc/tm.texi.in | 2 ++
> gcc/dwarf2asm.c | 4 ++--
> gcc/emit-rtl.c | 5 +++--
> gcc/lto/lto-object.c | 3 ++-
> gcc/stor-layout.c | 9 +++++----
> gcc/target.def | 8 ++++++++
> gcc/target.h | 8 ++++++++
> gcc/targhooks.c | 8 ++++++++
> gcc/targhooks.h | 1 +
> gcc/tree-chkp.c | 14 ++++++++------
> gcc/tree.c | 3 ++-
> gcc/ubsan.c | 3 ++-
> gcc/varasm.c | 12 ++++++------
> 16 files changed, 65 insertions(+), 27 deletions(-)
>
I'm getting a bit worried about the potential performance impact from
all these indirect function call hooks. This is a good example of when
it's probably somewhat unnecessary. I doubt that the compiler could
function correctly if this ever changed in the middle of a function.
It would be much better if targetm.pointer_size was a variable that
could be modified by back-end code on those few occasions when that
might be really necessary.
R.
next prev parent reply other threads:[~2015-07-29 10:16 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-27 3:10 tbsaunde+gcc
2015-07-27 3:10 ` [PATCH 5/9] ubsan.c: switch from POINTER_SIZE to targetm.pointer_size () tbsaunde+gcc
2015-07-27 3:10 ` [PATCH 1/9] remove POINTER_SIZE_UNITS macro tbsaunde+gcc
2015-07-27 3:10 ` [PATCH 3/9] target.h: change to use targetm.pointer_size instead of POINTER_SIZE tbsaunde+gcc
2015-07-27 3:10 ` [PATCH 4/9] varasm.c: switch from POINTER_SIZE to targetm.pointer_size () tbsaunde+gcc
2015-07-27 9:32 ` Richard Biener
2015-07-27 3:10 ` [PATCH 2/9] add pointer_size target hook tbsaunde+gcc
2015-07-27 3:10 ` [PATCH 7/9] stor-layout.c: switch to targetm.pointer_size () tbsaunde+gcc
2015-07-27 3:10 ` [PATCH 9/9] emit-rtl.c: " tbsaunde+gcc
2015-07-27 3:42 ` [PATCH 6/9] tree-chkp.c: " tbsaunde+gcc
2015-07-27 3:49 ` [PATCH 8/9] tree.c: " tbsaunde+gcc
2015-07-27 9:26 ` [PATCH 0/9] start converting POINTER_SIZE to a hook Richard Biener
2015-07-27 16:20 ` Jeff Law
2015-07-27 20:15 ` Richard Sandiford
2015-07-28 5:52 ` Trevor Saunders
2015-07-28 20:36 ` Richard Sandiford
2015-07-29 4:44 ` Trevor Saunders
2015-07-29 8:32 ` Richard Sandiford
2015-07-30 8:13 ` Trevor Saunders
2015-07-30 22:30 ` Richard Sandiford
2015-07-28 3:47 ` Trevor Saunders
2015-07-29 10:40 ` Richard Earnshaw [this message]
2015-07-30 4:55 ` Segher Boessenkool
2015-07-30 13:42 David Edelsohn
2015-07-30 22:26 ` Richard Sandiford
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=55B8A808.3020303@foss.arm.com \
--to=richard.earnshaw@foss.arm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=tbsaunde+gcc@tbsaunde.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).