diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-04 20:10:36 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-04 20:10:36 +0000 |
commit | fcb7dff99a28bc189e7bbe6f00f2d4fbefb7734f (patch) | |
tree | 02839c12e3a6015cefd3e7cb6bb642f39741b249 /gcc/gencodes.c | |
parent | abca50321910056d839672765eb514de3dc47fcf (diff) | |
download | gcc-fcb7dff99a28bc189e7bbe6f00f2d4fbefb7734f.tar.gz |
* gencodes.c (output_predicate_decls): Remove empty initializer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38689 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gencodes.c')
-rw-r--r-- | gcc/gencodes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/gencodes.c b/gcc/gencodes.c index a0d90a1fa18..ca78782ef28 100644 --- a/gcc/gencodes.c +++ b/gcc/gencodes.c @@ -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 } |