diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-17 16:21:49 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-17 16:21:49 +0000 |
commit | 2e851bb8acd6ed85d5f9769a4d522dd0acca046a (patch) | |
tree | 063806ffabfecffdb1aa308a9a26013274f0668b /gcc/target.def | |
parent | 1f7566dab3f20e08a75692c5d1317eb8fb79cdce (diff) | |
download | gcc-2e851bb8acd6ed85d5f9769a4d522dd0acca046a.tar.gz |
PR bootstrap/51872
* hard-reg-set.h (struct hard_reg_set_container): New type.
* target.h (struct hard_reg_set_container): Forward declare.
* target.def (set_up_by_prologue): New target hook.
* doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
* doc/tm.texi: Regenerated.
* function.c (thread_prologue_and_epilogue_insns): Change
set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
Call targetm.set_up_by_prologue on it.
* config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
(TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.def')
-rw-r--r-- | gcc/target.def | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/target.def b/gcc/target.def index b68673c8159..cdc8cb84ad1 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -1,6 +1,6 @@ /* Target hook definitions. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, - 2011 + 2011, 2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it @@ -2644,6 +2644,14 @@ DEFHOOK void, (bitmap regs), hook_void_bitmap) +/* Fill in additional registers set up by prologue into a regset. */ +DEFHOOK +(set_up_by_prologue, + "This hook should add additional registers that are computed by the prologue\ + to the hard regset for shrink-wrapping optimization purposes.", + void, (struct hard_reg_set_container *), + NULL) + /* Determine the type of unwind info to emit for debugging. */ DEFHOOK (debug_unwind_info, |