aboutsummaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-04-01 23:30:25 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-04-01 23:30:25 +0000
commita406f5669bc4d370fe7e0c4f9072950f89cfd36b (patch)
tree800c0614ebfab133a3ab5aa61799f6bcbbd0d6ab /gcc/genemit.c
parent18c6ada9b2ee27a40db256f4c32779fc25872050 (diff)
downloadgcc-a406f5669bc4d370fe7e0c4f9072950f89cfd36b.zip
gcc-a406f5669bc4d370fe7e0c4f9072950f89cfd36b.tar.gz
gcc-a406f5669bc4d370fe7e0c4f9072950f89cfd36b.tar.bz2
re PR target/14040 (ARM cross compiler: error: could not split insn)
PR target/14040 * genemit.c (gen_split): Change prototype of generated code. * genrecog.c (write_action): Adjust prototype for and calls to gen_split_*. * gensupport.c (struct queue_elem): Add split field. (queue_pattern): Return a value. Clear the split field. (process_rtx): Maintain an association between an insn and the split generated from it for a define_insn_and_split. (process_one_cond_exec): Generate a new split for a define_insn_and_split. * config/arm/arm-protos.h (arm_split_constant): Add insn parameter. (emit_constant_insn): New function. (arm_gen_constant): Use it. * config/arm/arm.md: Adjust calls to arm_split_constant. From-SVN: r80335
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 00cf842..c31b1fb 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -599,8 +599,9 @@ gen_split (rtx split)
}
else
{
- printf ("extern rtx gen_split_%d (rtx *);\n", insn_code_number);
- printf ("rtx\ngen_%s_%d (rtx *operands%s)\n", name, insn_code_number, unused);
+ printf ("extern rtx gen_split_%d (rtx, rtx *);\n", insn_code_number);
+ printf ("rtx\ngen_split_%d (rtx curr_insn ATTRIBUTE_UNUSED, rtx *operands%s)\n",
+ insn_code_number, unused);
}
printf ("{\n");