From: David Malcolm Date: Fri, 5 Sep 2014 01:06:19 +0000 (+0000) Subject: Return type of get_ready_element X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a263466d2b0cd1490b4d20ceea8765417a9e2a8;p=gcc.git Return type of get_ready_element gcc/ 2014-09-05 David Malcolm * haifa-sched.c (get_ready_element): Strengthen return type from rtx to rtx_insn *. * sched-int.h (get_ready_element): Likewise. From-SVN: r214929 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9d37057c94d..706e989d88b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-09-05 David Malcolm + + * haifa-sched.c (get_ready_element): Strengthen return type from + rtx to rtx_insn *. + * sched-int.h (get_ready_element): Likewise. + 2014-09-04 Segher Boessenkool PR target/63165 diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 1ebfcdb3c8a..83ea5bd158f 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -8731,7 +8731,7 @@ number_in_ready (void) /* Get number of ready's in the ready list. */ -rtx +rtx_insn * get_ready_element (int i) { return ready_element (&ready, i); diff --git a/gcc/sched-int.h b/gcc/sched-int.h index bbf332a2576..76d4e96b569 100644 --- a/gcc/sched-int.h +++ b/gcc/sched-int.h @@ -1370,7 +1370,7 @@ extern void add_block (basic_block, basic_block); extern rtx_note *bb_note (basic_block); extern void concat_note_lists (rtx_insn *, rtx_insn **); extern rtx_insn *sched_emit_insn (rtx); -extern rtx get_ready_element (int); +extern rtx_insn *get_ready_element (int); extern int number_in_ready (void); /* Types and functions in sched-ebb.c. */