diff options
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-pretty-print.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 58797f0..639fd22 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> + + * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic + functions. + 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org> * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest diff --git a/gcc/c-family/c-pretty-print.c b/gcc/c-family/c-pretty-print.c index b8b8f66..745f0fd 100644 --- a/gcc/c-family/c-pretty-print.c +++ b/gcc/c-family/c-pretty-print.c @@ -521,6 +521,11 @@ pp_c_parameter_type_list (c_pretty_printer *pp, tree t) else pp->abstract_declarator (TREE_VALUE (parms)); } + if (!first && !parms) + { + pp_separate_with (pp, ','); + pp_c_ws_string (pp, "..."); + } } pp_c_right_paren (pp); } |