From 0b42c8f88964203be2c55f86d7507908ab9ce553 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 14 May 2002 00:15:51 +0000 Subject: [PATCH] genattr.c (gen_attr): Don't emit a comma after the last enumerator. * genattr.c (gen_attr): Don't emit a comma after the last enumerator. From-SVN: r53440 --- gcc/ChangeLog | 5 +++++ gcc/genattr.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b32f16721db..e69a20568b3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-13 Zack Weinberg + + * genattr.c (gen_attr): Don't emit a comma after the last + enumerator. + 2002-05-13 Richard Henderson * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created diff --git a/gcc/genattr.c b/gcc/genattr.c index b688bd49bad8..591e0d7997ef 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);