Avoid explicit use of machine modes (11/n) conversions
Kazu Hirata
kazu@cs.umass.edu
Wed Oct 8 08:05:00 GMT 2003
Hi Zack,
> * genopinit.c: Initialize conversion optabs, not the
> former insn code tables. Remove unnecessary casts.
> Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
On h8300, I get build errors while compiling insn-opinit.c, saying
that variables i and j are undeclared. I commited the following as
obvious.
Kazu Hirata
2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
* genopinit.c (main): Output code to declare undefined
variables.
Index: genopinit.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genopinit.c,v
retrieving revision 1.62
diff -u -r1.62 genopinit.c
--- genopinit.c 7 Oct 2003 07:25:32 -0000 1.62
+++ genopinit.c 8 Oct 2003 07:56:03 -0000
@@ -356,6 +356,11 @@
printf ("void\ninit_all_optabs (void)\n{\n");
+ puts ("\
+#ifdef FIXUNS_TRUNC_LIKE_FIX_TRUNC\n\
+ int i, j;\n\
+#endif\n");
+
/* Read the machine description. */
while (1)
More information about the Gcc-patches
mailing list