summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 22:35:41 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 22:35:41 +0000
commit74e8bf95de812bb4de24ea2c546a09ce44de778e (patch)
tree8e0100cc7514eeaa7a17f06b2350a123b9890ca0 /gcc
parenteac134652cffce0fe1fd00f8176502c70e9c15cb (diff)
downloadgcc-74e8bf95de812bb4de24ea2c546a09ce44de778e.tar.gz
* genattr.c (main): Emit state_t even when not doing scheduling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45214 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/genattr.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a517aae60d4..42e7883a947 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/genattr.c b/gcc/genattr.c
index dd078992162..0f4df932378 100644
--- a/gcc/genattr.c
+++ b/gcc/genattr.c
@@ -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.