]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* genattr.c (main): Emit state_t even when not doing scheduling.
authorRichard Henderson <rth@redhat.com>
Mon, 27 Aug 2001 22:35:41 +0000 (15:35 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 27 Aug 2001 22:35:41 +0000 (15:35 -0700)
From-SVN: r45214

gcc/ChangeLog
gcc/genattr.c

index a517aae60d420b266fad1ac2b8f59e946899b60f..42e7883a94723e7b20acec47e3c4a24620201f37 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-27  Richard Henderson  <rth@redhat.com>
+
+       * genattr.c (main): Emit state_t even when not doing scheduling.
+
 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
            Richard Henderson  <rth@redhat.com>
 
index dd078992162273580042e42377aff44643965c92..0f4df9323783a0f45e5789d80675381e255e22f0 100644 (file)
@@ -448,6 +448,12 @@ main (argc, argv)
       printf ("extern void dfa_start PARAMS ((void));\n");
       printf ("extern void dfa_finish PARAMS ((void));\n");
     }
+  else
+    {
+      /* Otherwise we do no scheduling, but we need these typedefs
+        in order to avoid uglifying other code with more ifdefs.  */
+      printf ("typedef void *state_t;\n\n");
+    }
 
   /* Output flag masks for use by reorg.