Commit fa0a20e3 by Kaz Kojima

sh.c (sh_recog_treg_set_expr): Return false during expand phase to avoid codegen…

sh.c (sh_recog_treg_set_expr): Return false during expand phase to avoid codegen differences with -g.

* config/sh/sh.c (sh_recog_treg_set_expr): Return false during
expand phase to avoid codegen differences with -g.

From-SVN: r226715
parent 41b122f3
2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/67002
* config/sh/sh.c (sh_recog_treg_set_expr): Return false when
currently_expanding_to_rtl is set.
2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
* configure.ac: Define LIBICONV_DEP with in-tree libiconv.
......
......@@ -14165,6 +14165,12 @@ sh_recog_treg_set_expr (rtx op, machine_mode mode)
if (!can_create_pseudo_p ())
return false;
/* expand_debug_locations may call this to compute rtx costs at
very early stage. In that case, don't make new insns here to
avoid codegen differences with -g. */
if (currently_expanding_to_rtl)
return false;
/* We are going to invoke recog in a re-entrant way and thus
have to capture its current state and restore it afterwards. */
recog_data_d prev_recog_data = recog_data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment