This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r214598 - in /trunk/gcc: ChangeLog resource.c
- From: dmalcolm at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 27 Aug 2014 20:24:42 -0000
- Subject: r214598 - in /trunk/gcc: ChangeLog resource.c
Author: dmalcolm
Date: Wed Aug 27 20:24:41 2014
New Revision: 214598
URL: https://gcc.gnu.org/viewcvs?rev=214598&root=gcc&view=rev
Log:
resource.c: Use rtx_sequence
gcc/
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* resource.c (mark_referenced_resources): Strengthen local
"sequence" from rtx to rtx_sequence *, adding a checked cast, and
using methods of rtx_sequence to clarify the code.
(find_dead_or_set_registers): Within the switch statement, convert
a GET_CODE check to a dyn_cast, introducing local "seq". Within
the JUMP_P handling, introduce another local "seq", adding a
checked cast to rtx_sequence *. In both cases, use methods of
rtx_sequence to clarify the code.
(mark_set_resources): Within SEQUENCE case, introduce local "seq"
via a checked cast, and use methods of rtx_sequence to simplify
the code.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/resource.c