This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] Return type of get_ready_element
- From: David Malcolm <dmalcolm at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 04 Sep 2014 21:06:06 -0400
- Subject: [PATCH, committed] Return type of get_ready_element
- Authentication-results: sourceware.org; auth=none
The attached trivial patch strengthens a return type from rtx to
rtx_insn *,
and thus falls under the pre-approval granted by Jeff here:
https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01310.html
Bootstrapped on x86_64-unknown-linux-gnu (Fedora 20), and has been
rebuilt as part of a config-list.mk build for all working configurations
(albeit with other patches for the latter case).
Committed to trunk as r214929.
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog (revision 214928)
+++ gcc/ChangeLog (revision 214929)
@@ -1,3 +1,9 @@
+2014-09-05 David Malcolm <dmalcolm@redhat.com>
+
+ * 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 <segher@kernel.crashing.org>
PR target/63165
Index: gcc/haifa-sched.c
===================================================================
--- gcc/haifa-sched.c (revision 214928)
+++ gcc/haifa-sched.c (revision 214929)
@@ -8731,7 +8731,7 @@
/* Get number of ready's in the ready list. */
-rtx
+rtx_insn *
get_ready_element (int i)
{
return ready_element (&ready, i);
Index: gcc/sched-int.h
===================================================================
--- gcc/sched-int.h (revision 214928)
+++ gcc/sched-int.h (revision 214929)
@@ -1370,7 +1370,7 @@
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. */