* gencodes.c (output_predicate_decls): Remove empty initializer.
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 4 Jan 2001 20:10:36 +0000 (20:10 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Thu, 4 Jan 2001 20:10:36 +0000 (20:10 +0000)
From-SVN: r38689

gcc/ChangeLog
gcc/gencodes.c

index c6992fcb24fe8885eac42cff819e65d11a05101c..87503ba7a655ac72f989dd2dbfd7215d99ad5116 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-04  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gencodes.c (output_predicate_decls): Remove empty initializer.
+
 2001-01-04  Mark Mitchell  <mark@codesourcery.com>
 
        * tree.c (copy_node): Remove documentation about obstacks.
index a0d90a1fa18f48588362395b7a1a35891528faeb..ca78782ef28de38757ddc5110f241e0458632b4a 100644 (file)
@@ -57,16 +57,16 @@ output_predicate_decls ()
   static struct {
     const char *name;
     RTX_CODE codes[NUM_RTX_CODE];
-  } *p, predicate[] = {
+  } predicate[] = {
     PREDICATE_CODES
-    {NULL, {0}}
   };
-  
+  int i;
+
   putc ('\n', stdout);
   puts ("struct rtx_def;\n#include \"machmode.h\"\n");
-  for (p = predicate; p->name; p++)
+  for (i = 0; i < sizeof predicate / sizeof *predicate; i++)
     printf ("extern int %s PARAMS ((struct rtx_def *, enum machine_mode));\n",
-           p->name);
+           predicate[i].name);
   putc ('\n', stdout);
 #endif
 }