This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 0/9] start converting POINTER_SIZE to a hook
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: tbsaunde+gcc at tbsaunde dot org
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 27 Jul 2015 11:17:51 +0200
- Subject: Re: [PATCH 0/9] start converting POINTER_SIZE to a hook
- Authentication-results: sourceware.org; auth=none
- References: <1437966615-21093-1-git-send-email-tbsaunde+gcc at tbsaunde dot org>
On Mon, Jul 27, 2015 at 5:10 AM, <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?
With POINTER_SIZE now being expensive (target hook) you might consider
moving most users to use pointer_sized_int_node or some other global
derived from POINTER_SIZE.
Which of course raises the question of why we are hookizing this... if you'd
want a truly switchable target you'd have to switch all global trees as well
(or hookize them individually).
Richard.
> 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(-)
>
> --
> 2.4.0
>