diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-01-04 20:10:36 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-01-04 20:10:36 +0000 |
commit | 1fd4f141391f8f683be28c3353d6753bd24d6905 (patch) | |
tree | 02839c12e3a6015cefd3e7cb6bb642f39741b249 | |
parent | 519c98068bc2ab4d0eb0ac40e75efba02468ddac (diff) | |
download | gcc-1fd4f141391f8f683be28c3353d6753bd24d6905.zip gcc-1fd4f141391f8f683be28c3353d6753bd24d6905.tar.gz gcc-1fd4f141391f8f683be28c3353d6753bd24d6905.tar.bz2 |
* gencodes.c (output_predicate_decls): Remove empty initializer.
From-SVN: r38689
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gencodes.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c6992fc..87503ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/gencodes.c b/gcc/gencodes.c index a0d90a1..ca78782 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 } |