]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/m32c/m32c.c
function.h (struct emit_status): Delete x_first_insn, x_last_insn and sequence_stack.
authorAlan Modra <amodra@gmail.com>
Wed, 15 Apr 2015 06:05:44 +0000 (15:35 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 15 Apr 2015 06:05:44 +0000 (15:35 +0930)
commit614d5bd88def9761bdfce33815f5e83cc801dab0
treeef0b3b5fe19860d399f60a0610fc54c9edee6d90
parent241cbc7a5f4b39f57c350e8fc32d3a43999ba63b
function.h (struct emit_status): Delete x_first_insn, x_last_insn and sequence_stack.

* function.h (struct emit_status): Delete x_first_insn, x_last_insn
and sequence_stack.  Add seq.
(seq_stack): Delete.
* function.c (prepare_function_start): Don't access x_last_insn.
* emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
(get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
* emit_rtl.c (start_sequence, push_topmost_sequence,
pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
sequence accessors.
(get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
remove_insn): Likewise.  Simplify.
* config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
and pop_topmost_sequence.
(m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
debug insns.
* config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.

From-SVN: r222112
gcc/ChangeLog
gcc/config/m32c/m32c.c
gcc/config/rs6000/rs6000.c
gcc/emit-rtl.c
gcc/emit-rtl.h
gcc/function.c
gcc/function.h