This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Avoid explicit use of machine modes (11/n) conversions
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: zack at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 08 Oct 2003 04:05:26 -0400 (EDT)
- Subject: Re: Avoid explicit use of machine modes (11/n) conversions
- References: <87brstbxaz.fsf@egil.codesourcery.com>
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)