summaryrefslogtreecommitdiff
path: root/gcc/gencodes.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-04 20:10:36 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-04 20:10:36 +0000
commitfcb7dff99a28bc189e7bbe6f00f2d4fbefb7734f (patch)
tree02839c12e3a6015cefd3e7cb6bb642f39741b249 /gcc/gencodes.c
parentabca50321910056d839672765eb514de3dc47fcf (diff)
downloadgcc-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.c10
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
}