diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-02 16:29:32 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-02 16:29:32 +0000 |
commit | d0c809e14ba0a2911203898049d7a30468adc86b (patch) | |
tree | 113af7fdc2e163e99c91162b13799deeae6fdb8d /gcc/gencheck.c | |
parent | 4c47007a5147737df6bd83a6adc9201489301998 (diff) | |
download | gcc-d0c809e14ba0a2911203898049d7a30468adc86b.tar.gz |
* genattr.c, gencheck.c, gencodes.c, genconfig.c, genflags.c,
gengenrtl.c: Wrap generated header in multiple-include guard.
Improve error checking.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41006 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gencheck.c')
-rw-r--r-- | gcc/gencheck.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/gencheck.c b/gcc/gencheck.c index bfd8c366d66..c55048aa6f8 100644 --- a/gcc/gencheck.c +++ b/gcc/gencheck.c @@ -35,7 +35,7 @@ static void usage PARAMS ((void)); static void usage () { - fprintf (stderr,"Usage: gencheck\n"); + fputs ("Usage: gencheck\n", stderr); } extern int main PARAMS ((int, char **)); @@ -57,13 +57,17 @@ main (argc, argv) return (1); } - printf ("/* This file is generated using gencheck. Do not edit. */\n"); + puts ("/* This file is generated using gencheck. Do not edit. */\n"); + puts ("#ifndef GCC_TREE_CHECK_H"); + puts ("#define GCC_TREE_CHECK_H\n"); + for (i = 0; tree_codes[i]; i++) { printf ("#define %s_CHECK(t)\tTREE_CHECK (t, %s)\n", tree_codes[i], tree_codes[i]); } + puts ("\n#endif /* GCC_TREE_CHECK_H */"); return 0; } |