diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-14 00:15:51 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-14 00:15:51 +0000 |
commit | 8f0eab6fd775fe20d7736cf1d2e682eb90505304 (patch) | |
tree | a233a2470611a30fa04c3bac8083f96fe81342cf /gcc/genattr.c | |
parent | 5a7d90e3061cc7c60b03eb368248dc8b0dbc9d0e (diff) | |
download | gcc-8f0eab6fd775fe20d7736cf1d2e682eb90505304.tar.gz |
* genattr.c (gen_attr): Don't emit a comma after the last
enumerator.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53440 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index b688bd49bad..591e0d7997e 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -106,7 +106,8 @@ gen_attr (attr) putchar ('_'); while (tag != p) putchar (TOUPPER (*tag++)); - fputs (", ", stdout); + if (*p == ',') + fputs (", ", stdout); } fputs ("};\n", stdout); |