From a11899b21b0a39145ed7baef271461910ed411fb Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 29 Aug 2014 03:12:01 +0000 Subject: [PATCH] re PR bootstrap/62300 (internal compiler error: in as_a, at is-a.h:192) PR bootstrap/62300 * function.c (assign_parm_setup_reg): Remove erroneous checked cast to rtx_insn * on result of gen_extend_insn in favor of introducing a new local rtx "pat". From-SVN: r214714 --- gcc/ChangeLog | 7 +++++++ gcc/function.c | 7 +++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f821e92151..ac5dc7c9c72 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-08-29 David Malcolm + + PR bootstrap/62300 + * function.c (assign_parm_setup_reg): Remove erroneous checked + cast to rtx_insn * on result of gen_extend_insn in favor of + introducing a new local rtx "pat". + 2014-08-29 Jan-Benedict Glaw * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework diff --git a/gcc/function.c b/gcc/function.c index dc9c06b3166..464c6cdaa57 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3039,10 +3039,9 @@ assign_parm_setup_reg (struct assign_parm_data_all *all, tree parm, } else t = op1; - insn = as_a ( - gen_extend_insn (op0, t, promoted_nominal_mode, - data->passed_mode, unsignedp)); - emit_insn (insn); + rtx pat = gen_extend_insn (op0, t, promoted_nominal_mode, + data->passed_mode, unsignedp); + emit_insn (pat); insns = get_insns (); moved = true; -- 2.30.2