Segher Boessenkool <seg...@kernel.crashing.org> writes:

> gcc/
>       * combine.c (is_parallel_of_n_reg_sets): New function.
>       (can_split_parallel_of_n_reg_sets): New function.
>       (try_combine): If I2 is a PARALLEL of two SETs, split it into
>       two insns if possible.

This breaks bootstrap on m68k.

../../gcc/gcc/combine.c:2467:1: warning: ‘bool 
is_parallel_of_n_reg_sets(rtx_insn*, int)’ defined but not used 
[-Wunused-function]
 is_parallel_of_n_reg_sets (rtx_insn *insn, int n)
 ^
../../gcc/gcc/combine.c:2494:1: warning: ‘bool 
can_split_parallel_of_n_reg_sets(rtx_insn*, int)’ defined but not used 
[-Wunused-function]
 can_split_parallel_of_n_reg_sets (rtx_insn *insn, int n)
 ^

Tested on m68k-suse-linux and installed as obvious.

Andreas.

        * combine.c (is_parallel_of_n_reg_sets)
        (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.

diff --git a/gcc/combine.c b/gcc/combine.c
index e6deb41..39f9200 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -2461,6 +2461,7 @@ update_cfg_for_uncondjump (rtx_insn *insn)
     }
 }
 
+#ifndef HAVE_cc0
 /* Return whether INSN is a PARALLEL of exactly N register SETs followed
    by an arbitrary number of CLOBBERs.  */
 static bool
@@ -2513,6 +2514,7 @@ can_split_parallel_of_n_reg_sets (rtx_insn *insn, int n)
 
   return true;
 }
+#endif
 
 /* Try to combine the insns I0, I1 and I2 into I3.
    Here I0, I1 and I2 appear earlier than I3.
-- 
2.2.0


-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to