diff mbox

[sched] Cleanup and improve multipass_dfa_lookahead_guard

Message ID BFC1DE7E-CB2D-42C7-A68E-74E186A66D4B@linaro.org
State New
Headers show

Commit Message

Maxim Kuvyrkov May 23, 2014, 7:35 a.m. UTC
On May 23, 2014, at 7:23 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:

> ../../gcc/config/ia64/ia64.c: In function 'int ia64_first_cycle_multipass_dfa_lookahead_guard(rtx, int)':
> ../../gcc/config/ia64/ia64.c:7551:1: error: control reaches end of non-void function [-Werror=return-type]

Fixed, sorry about the breakage.  The patch is trivial.

Thank you,

--
Maxim Kuvyrkov
www.linaro.org


2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>

	Fix bootstrap error on ia64
	* config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
	Return default value.

Comments

Jeff Law May 23, 2014, 5:57 p.m. UTC | #1
On 05/23/14 01:35, Maxim Kuvyrkov wrote:
> On May 23, 2014, at 7:23 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>
>> ../../gcc/config/ia64/ia64.c: In function 'int ia64_first_cycle_multipass_dfa_lookahead_guard(rtx, int)':
>> ../../gcc/config/ia64/ia64.c:7551:1: error: control reaches end of non-void function [-Werror=return-type]
>
> Fixed, sorry about the breakage.  The patch is trivial.
>
> Thank you,
>
> --
> Maxim Kuvyrkov
> www.linaro.org
>
>
> 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
>
> 	Fix bootstrap error on ia64
> 	* config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
> 	Return default value.
If you haven't done so already, go ahead and check this in.

jeff
diff mbox

Patch

Index: gcc/config/ia64/ia64.c
===================================================================
--- gcc/config/ia64/ia64.c	(revision 210844)
+++ gcc/config/ia64/ia64.c	(working copy)
@@ -7548,6 +7548,8 @@  ia64_first_cycle_multipass_dfa_lookahead_guard
 	  || !is_load_p (insn)
 	  || mem_ops_in_group[current_cycle % 4] < ia64_max_memory_insns))
     return 0;
+
+  return 1;
 }
 
 /* The following variable value is pseudo-insn used by the DFA insn