2011-06-02 Laurynas Biveinis <laurynas.biveinis@gmail.com>heads/gc-improvheads/gc-improv
commitf194cdb5c2152d9e90a698b080a3c8a26c045332
authorlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2011 16:37:28 +0000 (2 16:37 +0000)
committerlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jun 2011 16:37:28 +0000 (2 16:37 +0000)
tree1548c871457714606f49c3800159d9d9a995f937
parent48eb063e56e4ae5c089b53b6b55b599bf864fb87
2011-06-02  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

* varasm.c (make_decl_rtl): Allocate DECL_RTL in the permanent RTL
memory.

* rtl.c: (_obstack_allocated_p): Declare.
(allocated_in_function_mem_p): New.
(need_copy_p): New.
(copy_rtx): Re-enable sharing of CONST_VECTOR rtxes.  Use
need_copy_p to decide on copying vs. sharing of rtxes.

* function.c (reinit_struct_function): New.
(set_cfun, prepare_function_start): Call it.

* config/i386/i386.c (ix86_expand_split_stack_prologue): Allocate
split_stack_fn in the permanent RTL memory.
(ix86_expand_split_stack_prologue): Allocate split_stack_fn_large
in the permanent RTL memory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gc-improv@174568 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.gc-improv
gcc/config/i386/i386.c
gcc/function.c
gcc/rtl.c
gcc/varasm.c